#define pr_fmt(fmt) …
#include <linux/types.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/stm.h>
#include "intel_th.h"
#include "sth.h"
struct sth_device { … };
static struct intel_th_channel __iomem *
sth_channel(struct sth_device *sth, unsigned int master, unsigned int channel)
{ … }
static void sth_iowrite(void __iomem *dest, const unsigned char *payload,
unsigned int size)
{ … }
static ssize_t notrace sth_stm_packet(struct stm_data *stm_data,
unsigned int master,
unsigned int channel,
unsigned int packet,
unsigned int flags,
unsigned int size,
const unsigned char *payload)
{ … }
static phys_addr_t
sth_stm_mmio_addr(struct stm_data *stm_data, unsigned int master,
unsigned int channel, unsigned int nr_chans)
{ … }
static int sth_stm_link(struct stm_data *stm_data, unsigned int master,
unsigned int channel)
{ … }
static int intel_th_sw_init(struct sth_device *sth)
{ … }
static int intel_th_sth_probe(struct intel_th_device *thdev)
{ … }
static void intel_th_sth_remove(struct intel_th_device *thdev)
{ … }
static struct intel_th_driver intel_th_sth_driver = …;
module_driver(…);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;