49 #include "../comedidev.h"
52 #include <linux/pci.h>
53 #include <linux/slab.h>
87 static struct pcmcia_device *cur_dev;
95 struct pcmcia_device *
link = cur_dev;
109 iobase = link->resource[0]->start;
112 "bug! board does not have PCMCIA bustype\n");
120 .driver_name =
"das08_cs",
122 .attach = das08_cs_attach,
124 .board_name = &das08_cs_boards[0].
name,
129 static int das08_pcmcia_config_loop(
struct pcmcia_device *p_dev,
132 if (p_dev->config_index == 0)
138 static int das08_pcmcia_attach(
struct pcmcia_device *link)
142 link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
144 ret = pcmcia_loop_config(link, das08_pcmcia_config_loop,
NULL);
163 static void das08_pcmcia_detach(
struct pcmcia_device *link)
170 PCMCIA_DEVICE_MANF_CARD(0x01c5, 0x4001),
175 static struct pcmcia_driver das08_cs_driver = {
178 .probe = das08_pcmcia_attach,
179 .remove = das08_pcmcia_detach,
180 .id_table = das08_cs_id_table,
183 static int __init das08_cs_init_module(
void)
202 static void __exit das08_cs_exit_module(
void)