#include <linux/tifm.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/idr.h>
#include <linux/module.h>
#define DRIVER_NAME …
#define DRIVER_VERSION …
static struct workqueue_struct *workqueue;
static DEFINE_IDR(tifm_adapter_idr);
static DEFINE_SPINLOCK(tifm_adapter_lock);
static const char *tifm_media_type_name(unsigned char type, unsigned char nt)
{ … }
static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id)
{ … }
static int tifm_bus_match(struct device *dev, const struct device_driver *drv)
{ … }
static int tifm_uevent(const struct device *dev, struct kobj_uevent_env *env)
{ … }
static int tifm_device_probe(struct device *dev)
{ … }
static void tifm_dummy_event(struct tifm_dev *sock)
{ … }
static void tifm_device_remove(struct device *dev)
{ … }
#ifdef CONFIG_PM
static int tifm_device_suspend(struct device *dev, pm_message_t state)
{ … }
static int tifm_device_resume(struct device *dev)
{ … }
#else
#define tifm_device_suspend …
#define tifm_device_resume …
#endif
static ssize_t type_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(type);
static struct attribute *tifm_dev_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static const struct bus_type tifm_bus_type = …;
static void tifm_free(struct device *dev)
{ … }
static const struct class tifm_adapter_class = …;
struct tifm_adapter *tifm_alloc_adapter(unsigned int num_sockets,
struct device *dev)
{ … }
EXPORT_SYMBOL(…);
int tifm_add_adapter(struct tifm_adapter *fm)
{ … }
EXPORT_SYMBOL(…);
void tifm_remove_adapter(struct tifm_adapter *fm)
{ … }
EXPORT_SYMBOL(…);
void tifm_free_adapter(struct tifm_adapter *fm)
{ … }
EXPORT_SYMBOL(…);
void tifm_free_device(struct device *dev)
{ … }
EXPORT_SYMBOL(…);
struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm, unsigned int id,
unsigned char type)
{ … }
EXPORT_SYMBOL(…);
void tifm_eject(struct tifm_dev *sock)
{ … }
EXPORT_SYMBOL(…);
int tifm_has_ms_pif(struct tifm_dev *sock)
{ … }
EXPORT_SYMBOL(…);
int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
int direction)
{ … }
EXPORT_SYMBOL(…);
void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
int direction)
{ … }
EXPORT_SYMBOL(…);
void tifm_queue_work(struct work_struct *work)
{ … }
EXPORT_SYMBOL(…);
int tifm_register_driver(struct tifm_driver *drv)
{ … }
EXPORT_SYMBOL(…);
void tifm_unregister_driver(struct tifm_driver *drv)
{ … }
EXPORT_SYMBOL(…);
static int __init tifm_init(void)
{ … }
static void __exit tifm_exit(void)
{ … }
subsys_initcall(tifm_init);
module_exit(tifm_exit);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_VERSION(…);