#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/cisreg.h>
#include <pcmcia/ds.h>
#include <linux/usb/sl811.h>
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
#define INFO(args...) …
local_info_t;
static void sl811_cs_release(struct pcmcia_device * link);
static void release_platform_dev(struct device * dev)
{ … }
static struct sl811_platform_data platform_data = …;
static struct resource resources[] = …;
extern struct platform_driver sl811h_driver;
static struct platform_device platform_dev = …;
static int sl811_hc_init(struct device *parent, resource_size_t base_addr,
int irq)
{ … }
static void sl811_cs_detach(struct pcmcia_device *link)
{ … }
static void sl811_cs_release(struct pcmcia_device * link)
{ … }
static int sl811_cs_config_check(struct pcmcia_device *p_dev, void *priv_data)
{ … }
static int sl811_cs_config(struct pcmcia_device *link)
{ … }
static int sl811_cs_probe(struct pcmcia_device *link)
{ … }
static const struct pcmcia_device_id sl811_ids[] = …;
MODULE_DEVICE_TABLE(pcmcia, sl811_ids);
static struct pcmcia_driver sl811_cs_driver = …;
module_pcmcia_driver(…);