linux/drivers/hwtracing/intel_th/pti.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Intel(R) Trace Hub PTI output driver
 *
 * Copyright (C) 2014-2016 Intel Corporation.
 */

#define pr_fmt(fmt)

#include <linux/types.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/sizes.h>
#include <linux/printk.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/io.h>

#include "intel_th.h"
#include "pti.h"

struct pti_device {};

/* map PTI widths to MODE settings of PTI_CTL register */
static const unsigned int pti_mode[] =;

static int pti_width_mode(unsigned int width)
{}

static ssize_t mode_show(struct device *dev, struct device_attribute *attr,
			 char *buf)
{}

static ssize_t mode_store(struct device *dev, struct device_attribute *attr,
			  const char *buf, size_t size)
{}

static DEVICE_ATTR_RW(mode);

static ssize_t
freerunning_clock_show(struct device *dev, struct device_attribute *attr,
		       char *buf)
{}

static ssize_t
freerunning_clock_store(struct device *dev, struct device_attribute *attr,
			const char *buf, size_t size)
{}

static DEVICE_ATTR_RW(freerunning_clock);

static ssize_t
clock_divider_show(struct device *dev, struct device_attribute *attr,
		   char *buf)
{}

static ssize_t
clock_divider_store(struct device *dev, struct device_attribute *attr,
		    const char *buf, size_t size)
{}

static DEVICE_ATTR_RW(clock_divider);

static struct attribute *pti_output_attrs[] =;

static const struct attribute_group pti_output_group =;

static int intel_th_pti_activate(struct intel_th_device *thdev)
{}

static void intel_th_pti_deactivate(struct intel_th_device *thdev)
{}

static void read_hw_config(struct pti_device *pti)
{}

static int intel_th_pti_probe(struct intel_th_device *thdev)
{}

static void intel_th_pti_remove(struct intel_th_device *thdev)
{}

static struct intel_th_driver intel_th_pti_driver =;

static const char * const lpp_dest_str[] =;

static ssize_t lpp_dest_show(struct device *dev, struct device_attribute *attr,
			     char *buf)
{}

static ssize_t lpp_dest_store(struct device *dev, struct device_attribute *attr,
			      const char *buf, size_t size)
{}

static DEVICE_ATTR_RW(lpp_dest);

static struct attribute *lpp_output_attrs[] =;

static const struct attribute_group lpp_output_group =;

static struct intel_th_driver intel_th_lpp_driver =;

static int __init intel_th_pti_lpp_init(void)
{}

module_init();

static void __exit intel_th_pti_lpp_exit(void)
{}

module_exit(intel_th_pti_lpp_exit);

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();