2 * comedi/drivers/adv_pci_dio.c
4 * Author: Michal Dobes <dobes@tesnet.cz>
6 * Hardware driver for Advantech PCI DIO cards.
11 * Description: Advantech PCI-1730, PCI-1733, PCI-1734, PCI-1735U,
12 * PCI-1736UP, PCI-1739U, PCI-1750, PCI-1751, PCI-1752,
13 * PCI-1753/E, PCI-1754, PCI-1756, PCI-1762
14 * Devices: [Advantech] PCI-1730 (adv_pci_dio), PCI-1733,
15 * PCI-1734, PCI-1735U, PCI-1736UP, PCI-1739U, PCI-1750,
16 * PCI-1751, PCI-1752, PCI-1753,
17 * PCI-1753+PCI-1753E, PCI-1754, PCI-1756,
19 * Author: Michal Dobes <dobes@tesnet.cz>
20 * Updated: Mon, 09 Jan 2012 12:40:46 +0000
23 * Configuration Options: not applicable, uses PCI auto config
26 #include <linux/module.h>
27 #include <linux/delay.h>
29 #include "../comedi_pci.h"
32 #include "comedi_8254.h"
34 /* hardware types of the cards */
36 TYPE_PCI1730
, TYPE_PCI1733
, TYPE_PCI1734
, TYPE_PCI1735
, TYPE_PCI1736
,
41 TYPE_PCI1753
, TYPE_PCI1753E
,
42 TYPE_PCI1754
, TYPE_PCI1756
,
46 /* which I/O instructions to use */
51 #define MAX_DI_SUBDEVS 2 /* max number of DI subdevices per card */
52 #define MAX_DO_SUBDEVS 2 /* max number of DO subdevices per card */
53 #define MAX_DIO_SUBDEVG 2 /* max number of DIO subdevices group per
56 /* Register offset definitions */
57 /* Advantech PCI-1730/3/4 */
58 #define PCI1730_IDI 0 /* R: Isolated digital input 0-15 */
59 #define PCI1730_IDO 0 /* W: Isolated digital output 0-15 */
60 #define PCI1730_DI 2 /* R: Digital input 0-15 */
61 #define PCI1730_DO 2 /* W: Digital output 0-15 */
62 #define PCI1733_IDI 0 /* R: Isolated digital input 0-31 */
63 #define PCI1730_3_INT_EN 0x08 /* R/W: enable/disable interrupts */
64 #define PCI1730_3_INT_RF 0x0c /* R/W: set falling/raising edge for
66 #define PCI1730_3_INT_CLR 0x10 /* R/W: clear interrupts */
67 #define PCI1734_IDO 0 /* W: Isolated digital output 0-31 */
68 #define PCI173x_BOARDID 4 /* R: Board I/D switch for 1730/3/4 */
70 /* Advantech PCI-1735U */
71 #define PCI1735_DI 0 /* R: Digital input 0-31 */
72 #define PCI1735_DO 0 /* W: Digital output 0-31 */
73 #define PCI1735_C8254 4 /* R/W: 8254 counter */
74 #define PCI1735_BOARDID 8 /* R: Board I/D switch for 1735U */
76 /* Advantech PCI-1736UP */
77 #define PCI1736_IDI 0 /* R: Isolated digital input 0-15 */
78 #define PCI1736_IDO 0 /* W: Isolated digital output 0-15 */
79 #define PCI1736_3_INT_EN 0x08 /* R/W: enable/disable interrupts */
80 #define PCI1736_3_INT_RF 0x0c /* R/W: set falling/raising edge for
82 #define PCI1736_3_INT_CLR 0x10 /* R/W: clear interrupts */
83 #define PCI1736_BOARDID 4 /* R: Board I/D switch for 1736UP */
85 /* Advantech PCI-1739U */
86 #define PCI1739_DIO 0 /* R/W: begin of 8255 registers block */
87 #define PCI1739_ICR 32 /* W: Interrupt control register */
88 #define PCI1739_ISR 32 /* R: Interrupt status register */
89 #define PCI1739_BOARDID 8 /* R: Board I/D switch for 1739U */
91 /* Advantech PCI-1750 */
92 #define PCI1750_IDI 0 /* R: Isolated digital input 0-15 */
93 #define PCI1750_IDO 0 /* W: Isolated digital output 0-15 */
94 #define PCI1750_ICR 32 /* W: Interrupt control register */
95 #define PCI1750_ISR 32 /* R: Interrupt status register */
97 /* Advantech PCI-1751/3/3E */
98 #define PCI1751_DIO 0 /* R/W: begin of 8255 registers block */
99 #define PCI1751_CNT 24 /* R/W: begin of 8254 registers block */
100 #define PCI1751_ICR 32 /* W: Interrupt control register */
101 #define PCI1751_ISR 32 /* R: Interrupt status register */
102 #define PCI1753_DIO 0 /* R/W: begin of 8255 registers block */
103 #define PCI1753_ICR0 16 /* R/W: Interrupt control register group 0 */
104 #define PCI1753_ICR1 17 /* R/W: Interrupt control register group 1 */
105 #define PCI1753_ICR2 18 /* R/W: Interrupt control register group 2 */
106 #define PCI1753_ICR3 19 /* R/W: Interrupt control register group 3 */
107 #define PCI1753E_DIO 32 /* R/W: begin of 8255 registers block */
108 #define PCI1753E_ICR0 48 /* R/W: Interrupt control register group 0 */
109 #define PCI1753E_ICR1 49 /* R/W: Interrupt control register group 1 */
110 #define PCI1753E_ICR2 50 /* R/W: Interrupt control register group 2 */
111 #define PCI1753E_ICR3 51 /* R/W: Interrupt control register group 3 */
113 /* Advantech PCI-1752/4/6 */
114 #define PCI1752_IDO 0 /* R/W: Digital output 0-31 */
115 #define PCI1752_IDO2 4 /* R/W: Digital output 32-63 */
116 #define PCI1754_IDI 0 /* R: Digital input 0-31 */
117 #define PCI1754_IDI2 4 /* R: Digital input 32-64 */
118 #define PCI1756_IDI 0 /* R: Digital input 0-31 */
119 #define PCI1756_IDO 4 /* R/W: Digital output 0-31 */
120 #define PCI1754_6_ICR0 0x08 /* R/W: Interrupt control register group 0 */
121 #define PCI1754_6_ICR1 0x0a /* R/W: Interrupt control register group 1 */
122 #define PCI1754_ICR2 0x0c /* R/W: Interrupt control register group 2 */
123 #define PCI1754_ICR3 0x0e /* R/W: Interrupt control register group 3 */
124 #define PCI1752_6_CFC 0x12 /* R/W: set/read channel freeze function */
125 #define PCI175x_BOARDID 0x10 /* R: Board I/D switch for 1752/4/6 */
127 /* Advantech PCI-1762 registers */
128 #define PCI1762_RO 0 /* R/W: Relays status/output */
129 #define PCI1762_IDI 2 /* R: Isolated input status */
130 #define PCI1762_BOARDID 4 /* R: Board I/D switch */
131 #define PCI1762_ICR 6 /* W: Interrupt control register */
132 #define PCI1762_ISR 6 /* R: Interrupt status register */
134 struct diosubd_data
{
135 int chans
; /* num of chans */
136 int addr
; /* PCI address ofset */
137 int regs
; /* number of registers to read or 8255
139 unsigned int specflags
; /* addon subdevice flags */
142 struct dio_boardtype
{
143 const char *name
; /* board name */
144 enum hw_cards_id cardtype
;
146 struct diosubd_data sdi
[MAX_DI_SUBDEVS
]; /* DI chans */
147 struct diosubd_data sdo
[MAX_DO_SUBDEVS
]; /* DO chans */
148 struct diosubd_data sdio
[MAX_DIO_SUBDEVG
]; /* DIO 8255 chans */
149 struct diosubd_data boardid
; /* card supports board ID switch */
150 unsigned long timer_regbase
;
151 enum hw_io_access io_access
;
154 static const struct dio_boardtype boardtypes
[] = {
157 .cardtype
= TYPE_PCI1730
,
159 .sdi
[0] = { 16, PCI1730_DI
, 2, 0, },
160 .sdi
[1] = { 16, PCI1730_IDI
, 2, 0, },
161 .sdo
[0] = { 16, PCI1730_DO
, 2, 0, },
162 .sdo
[1] = { 16, PCI1730_IDO
, 2, 0, },
163 .boardid
= { 4, PCI173x_BOARDID
, 1, SDF_INTERNAL
, },
168 .cardtype
= TYPE_PCI1733
,
170 .sdi
[1] = { 32, PCI1733_IDI
, 4, 0, },
171 .boardid
= { 4, PCI173x_BOARDID
, 1, SDF_INTERNAL
, },
176 .cardtype
= TYPE_PCI1734
,
178 .sdo
[1] = { 32, PCI1734_IDO
, 4, 0, },
179 .boardid
= { 4, PCI173x_BOARDID
, 1, SDF_INTERNAL
, },
184 .cardtype
= TYPE_PCI1735
,
186 .sdi
[0] = { 32, PCI1735_DI
, 4, 0, },
187 .sdo
[0] = { 32, PCI1735_DO
, 4, 0, },
188 .boardid
= { 4, PCI1735_BOARDID
, 1, SDF_INTERNAL
, },
189 .timer_regbase
= PCI1735_C8254
,
194 .cardtype
= TYPE_PCI1736
,
196 .sdi
[1] = { 16, PCI1736_IDI
, 2, 0, },
197 .sdo
[1] = { 16, PCI1736_IDO
, 2, 0, },
198 .boardid
= { 4, PCI1736_BOARDID
, 1, SDF_INTERNAL
, },
203 .cardtype
= TYPE_PCI1739
,
205 .sdio
[0] = { 48, PCI1739_DIO
, 2, 0, },
210 .cardtype
= TYPE_PCI1750
,
212 .sdi
[1] = { 16, PCI1750_IDI
, 2, 0, },
213 .sdo
[1] = { 16, PCI1750_IDO
, 2, 0, },
218 .cardtype
= TYPE_PCI1751
,
220 .sdio
[0] = { 48, PCI1751_DIO
, 2, 0, },
221 .timer_regbase
= PCI1751_CNT
,
226 .cardtype
= TYPE_PCI1752
,
228 .sdo
[0] = { 32, PCI1752_IDO
, 2, 0, },
229 .sdo
[1] = { 32, PCI1752_IDO2
, 2, 0, },
230 .boardid
= { 4, PCI175x_BOARDID
, 1, SDF_INTERNAL
, },
235 .cardtype
= TYPE_PCI1753
,
237 .sdio
[0] = { 96, PCI1753_DIO
, 4, 0, },
242 .cardtype
= TYPE_PCI1753E
,
244 .sdio
[0] = { 96, PCI1753_DIO
, 4, 0, },
245 .sdio
[1] = { 96, PCI1753E_DIO
, 4, 0, },
250 .cardtype
= TYPE_PCI1754
,
252 .sdi
[0] = { 32, PCI1754_IDI
, 2, 0, },
253 .sdi
[1] = { 32, PCI1754_IDI2
, 2, 0, },
254 .boardid
= { 4, PCI175x_BOARDID
, 1, SDF_INTERNAL
, },
259 .cardtype
= TYPE_PCI1756
,
261 .sdi
[1] = { 32, PCI1756_IDI
, 2, 0, },
262 .sdo
[1] = { 32, PCI1756_IDO
, 2, 0, },
263 .boardid
= { 4, PCI175x_BOARDID
, 1, SDF_INTERNAL
, },
268 .cardtype
= TYPE_PCI1762
,
270 .sdi
[1] = { 16, PCI1762_IDI
, 1, 0, },
271 .sdo
[1] = { 16, PCI1762_RO
, 1, 0, },
272 .boardid
= { 4, PCI1762_BOARDID
, 1, SDF_INTERNAL
, },
277 static int pci_dio_insn_bits_di_b(struct comedi_device
*dev
,
278 struct comedi_subdevice
*s
,
279 struct comedi_insn
*insn
, unsigned int *data
)
281 const struct diosubd_data
*d
= (const struct diosubd_data
*)s
->private;
285 for (i
= 0; i
< d
->regs
; i
++)
286 data
[1] |= inb(dev
->iobase
+ d
->addr
+ i
) << (8 * i
);
291 static int pci_dio_insn_bits_di_w(struct comedi_device
*dev
,
292 struct comedi_subdevice
*s
,
293 struct comedi_insn
*insn
, unsigned int *data
)
295 const struct diosubd_data
*d
= (const struct diosubd_data
*)s
->private;
299 for (i
= 0; i
< d
->regs
; i
++)
300 data
[1] |= inw(dev
->iobase
+ d
->addr
+ 2 * i
) << (16 * i
);
305 static int pci_dio_insn_bits_do_b(struct comedi_device
*dev
,
306 struct comedi_subdevice
*s
,
307 struct comedi_insn
*insn
,
310 const struct diosubd_data
*d
= (const struct diosubd_data
*)s
->private;
313 if (comedi_dio_update_state(s
, data
)) {
314 for (i
= 0; i
< d
->regs
; i
++)
315 outb((s
->state
>> (8 * i
)) & 0xff,
316 dev
->iobase
+ d
->addr
+ i
);
324 static int pci_dio_insn_bits_do_w(struct comedi_device
*dev
,
325 struct comedi_subdevice
*s
,
326 struct comedi_insn
*insn
,
329 const struct diosubd_data
*d
= (const struct diosubd_data
*)s
->private;
332 if (comedi_dio_update_state(s
, data
)) {
333 for (i
= 0; i
< d
->regs
; i
++)
334 outw((s
->state
>> (16 * i
)) & 0xffff,
335 dev
->iobase
+ d
->addr
+ 2 * i
);
343 static int pci_dio_reset(struct comedi_device
*dev
)
345 const struct dio_boardtype
*board
= dev
->board_ptr
;
347 switch (board
->cardtype
) {
349 outb(0, dev
->iobase
+ PCI1730_DO
); /* clear outputs */
350 outb(0, dev
->iobase
+ PCI1730_DO
+ 1);
351 outb(0, dev
->iobase
+ PCI1730_IDO
);
352 outb(0, dev
->iobase
+ PCI1730_IDO
+ 1);
355 /* disable interrupts */
356 outb(0, dev
->iobase
+ PCI1730_3_INT_EN
);
357 /* clear interrupts */
358 outb(0x0f, dev
->iobase
+ PCI1730_3_INT_CLR
);
359 /* set rising edge trigger */
360 outb(0, dev
->iobase
+ PCI1730_3_INT_RF
);
363 outb(0, dev
->iobase
+ PCI1734_IDO
); /* clear outputs */
364 outb(0, dev
->iobase
+ PCI1734_IDO
+ 1);
365 outb(0, dev
->iobase
+ PCI1734_IDO
+ 2);
366 outb(0, dev
->iobase
+ PCI1734_IDO
+ 3);
369 outb(0, dev
->iobase
+ PCI1735_DO
); /* clear outputs */
370 outb(0, dev
->iobase
+ PCI1735_DO
+ 1);
371 outb(0, dev
->iobase
+ PCI1735_DO
+ 2);
372 outb(0, dev
->iobase
+ PCI1735_DO
+ 3);
376 outb(0, dev
->iobase
+ PCI1736_IDO
);
377 outb(0, dev
->iobase
+ PCI1736_IDO
+ 1);
378 /* disable interrupts */
379 outb(0, dev
->iobase
+ PCI1736_3_INT_EN
);
380 /* clear interrupts */
381 outb(0x0f, dev
->iobase
+ PCI1736_3_INT_CLR
);
382 /* set rising edge trigger */
383 outb(0, dev
->iobase
+ PCI1736_3_INT_RF
);
387 /* disable & clear interrupts */
388 outb(0x88, dev
->iobase
+ PCI1739_ICR
);
393 /* disable & clear interrupts */
394 outb(0x88, dev
->iobase
+ PCI1750_ICR
);
397 outw(0, dev
->iobase
+ PCI1752_6_CFC
); /* disable channel freeze
399 outw(0, dev
->iobase
+ PCI1752_IDO
); /* clear outputs */
400 outw(0, dev
->iobase
+ PCI1752_IDO
+ 2);
401 outw(0, dev
->iobase
+ PCI1752_IDO2
);
402 outw(0, dev
->iobase
+ PCI1752_IDO2
+ 2);
405 outb(0x88, dev
->iobase
+ PCI1753E_ICR0
); /* disable & clear
407 outb(0x80, dev
->iobase
+ PCI1753E_ICR1
);
408 outb(0x80, dev
->iobase
+ PCI1753E_ICR2
);
409 outb(0x80, dev
->iobase
+ PCI1753E_ICR3
);
412 outb(0x88, dev
->iobase
+ PCI1753_ICR0
); /* disable & clear
414 outb(0x80, dev
->iobase
+ PCI1753_ICR1
);
415 outb(0x80, dev
->iobase
+ PCI1753_ICR2
);
416 outb(0x80, dev
->iobase
+ PCI1753_ICR3
);
419 outw(0x08, dev
->iobase
+ PCI1754_6_ICR0
); /* disable and clear
421 outw(0x08, dev
->iobase
+ PCI1754_6_ICR1
);
422 outw(0x08, dev
->iobase
+ PCI1754_ICR2
);
423 outw(0x08, dev
->iobase
+ PCI1754_ICR3
);
426 outw(0, dev
->iobase
+ PCI1752_6_CFC
); /* disable channel freeze
428 outw(0x08, dev
->iobase
+ PCI1754_6_ICR0
); /* disable and clear
430 outw(0x08, dev
->iobase
+ PCI1754_6_ICR1
);
431 outw(0, dev
->iobase
+ PCI1756_IDO
); /* clear outputs */
432 outw(0, dev
->iobase
+ PCI1756_IDO
+ 2);
435 outw(0x0101, dev
->iobase
+ PCI1762_ICR
); /* disable & clear
443 static int pci_dio_add_di(struct comedi_device
*dev
,
444 struct comedi_subdevice
*s
,
445 const struct diosubd_data
*d
)
447 const struct dio_boardtype
*board
= dev
->board_ptr
;
449 s
->type
= COMEDI_SUBD_DI
;
450 s
->subdev_flags
= SDF_READABLE
| d
->specflags
;
452 s
->subdev_flags
|= SDF_LSAMPL
;
453 s
->n_chan
= d
->chans
;
455 s
->len_chanlist
= d
->chans
;
456 s
->range_table
= &range_digital
;
457 switch (board
->io_access
) {
459 s
->insn_bits
= pci_dio_insn_bits_di_b
;
462 s
->insn_bits
= pci_dio_insn_bits_di_w
;
465 s
->private = (void *)d
;
470 static int pci_dio_add_do(struct comedi_device
*dev
,
471 struct comedi_subdevice
*s
,
472 const struct diosubd_data
*d
)
474 const struct dio_boardtype
*board
= dev
->board_ptr
;
476 s
->type
= COMEDI_SUBD_DO
;
477 s
->subdev_flags
= SDF_WRITABLE
;
479 s
->subdev_flags
|= SDF_LSAMPL
;
480 s
->n_chan
= d
->chans
;
482 s
->len_chanlist
= d
->chans
;
483 s
->range_table
= &range_digital
;
485 switch (board
->io_access
) {
487 s
->insn_bits
= pci_dio_insn_bits_do_b
;
490 s
->insn_bits
= pci_dio_insn_bits_do_w
;
493 s
->private = (void *)d
;
498 static unsigned long pci_dio_override_cardtype(struct pci_dev
*pcidev
,
499 unsigned long cardtype
)
502 * Change cardtype from TYPE_PCI1753 to TYPE_PCI1753E if expansion
503 * board available. Need to enable PCI device and request the main
504 * registers PCI BAR temporarily to perform the test.
506 if (cardtype
!= TYPE_PCI1753
)
508 if (pci_enable_device(pcidev
) < 0)
510 if (pci_request_region(pcidev
, 2, "adv_pci_dio") == 0) {
512 * This test is based on Advantech's "advdaq" driver source
513 * (which declares its module licence as "GPL" although the
514 * driver source does not include a "COPYING" file).
516 unsigned long reg
= pci_resource_start(pcidev
, 2) + 53;
519 if ((inb(reg
) & 0x07) == 0x02) {
521 if ((inb(reg
) & 0x07) == 0x05)
522 cardtype
= TYPE_PCI1753E
;
524 pci_release_region(pcidev
, 2);
526 pci_disable_device(pcidev
);
530 static int pci_dio_auto_attach(struct comedi_device
*dev
,
531 unsigned long context
)
533 struct pci_dev
*pcidev
= comedi_to_pci_dev(dev
);
534 const struct dio_boardtype
*board
= NULL
;
535 struct comedi_subdevice
*s
;
536 int ret
, subdev
, i
, j
;
538 if (context
< ARRAY_SIZE(boardtypes
))
539 board
= &boardtypes
[context
];
542 dev
->board_ptr
= board
;
543 dev
->board_name
= board
->name
;
545 ret
= comedi_pci_enable(dev
);
548 if (board
->cardtype
== TYPE_PCI1736
)
549 dev
->iobase
= pci_resource_start(pcidev
, 0);
551 dev
->iobase
= pci_resource_start(pcidev
, 2);
553 ret
= comedi_alloc_subdevices(dev
, board
->nsubdevs
);
558 for (i
= 0; i
< MAX_DI_SUBDEVS
; i
++)
559 if (board
->sdi
[i
].chans
) {
560 s
= &dev
->subdevices
[subdev
];
561 pci_dio_add_di(dev
, s
, &board
->sdi
[i
]);
565 for (i
= 0; i
< MAX_DO_SUBDEVS
; i
++)
566 if (board
->sdo
[i
].chans
) {
567 s
= &dev
->subdevices
[subdev
];
568 pci_dio_add_do(dev
, s
, &board
->sdo
[i
]);
572 for (i
= 0; i
< MAX_DIO_SUBDEVG
; i
++)
573 for (j
= 0; j
< board
->sdio
[i
].regs
; j
++) {
574 s
= &dev
->subdevices
[subdev
];
575 ret
= subdev_8255_init(dev
, s
, NULL
,
576 board
->sdio
[i
].addr
+
583 if (board
->boardid
.chans
) {
584 s
= &dev
->subdevices
[subdev
];
585 s
->type
= COMEDI_SUBD_DI
;
586 pci_dio_add_di(dev
, s
, &board
->boardid
);
590 if (board
->timer_regbase
) {
591 s
= &dev
->subdevices
[subdev
];
593 dev
->pacer
= comedi_8254_init(dev
->iobase
+
594 board
->timer_regbase
,
599 comedi_8254_subdevice_init(s
, dev
->pacer
);
609 static void pci_dio_detach(struct comedi_device
*dev
)
613 comedi_pci_detach(dev
);
616 static struct comedi_driver adv_pci_dio_driver
= {
617 .driver_name
= "adv_pci_dio",
618 .module
= THIS_MODULE
,
619 .auto_attach
= pci_dio_auto_attach
,
620 .detach
= pci_dio_detach
,
623 static int adv_pci_dio_pci_probe(struct pci_dev
*dev
,
624 const struct pci_device_id
*id
)
626 unsigned long cardtype
;
628 cardtype
= pci_dio_override_cardtype(dev
, id
->driver_data
);
629 return comedi_pci_auto_config(dev
, &adv_pci_dio_driver
, cardtype
);
632 static const struct pci_device_id adv_pci_dio_pci_table
[] = {
633 { PCI_VDEVICE(ADVANTECH
, 0x1730), TYPE_PCI1730
},
634 { PCI_VDEVICE(ADVANTECH
, 0x1733), TYPE_PCI1733
},
635 { PCI_VDEVICE(ADVANTECH
, 0x1734), TYPE_PCI1734
},
636 { PCI_VDEVICE(ADVANTECH
, 0x1735), TYPE_PCI1735
},
637 { PCI_VDEVICE(ADVANTECH
, 0x1736), TYPE_PCI1736
},
638 { PCI_VDEVICE(ADVANTECH
, 0x1739), TYPE_PCI1739
},
639 { PCI_VDEVICE(ADVANTECH
, 0x1750), TYPE_PCI1750
},
640 { PCI_VDEVICE(ADVANTECH
, 0x1751), TYPE_PCI1751
},
641 { PCI_VDEVICE(ADVANTECH
, 0x1752), TYPE_PCI1752
},
642 { PCI_VDEVICE(ADVANTECH
, 0x1753), TYPE_PCI1753
},
643 { PCI_VDEVICE(ADVANTECH
, 0x1754), TYPE_PCI1754
},
644 { PCI_VDEVICE(ADVANTECH
, 0x1756), TYPE_PCI1756
},
645 { PCI_VDEVICE(ADVANTECH
, 0x1762), TYPE_PCI1762
},
648 MODULE_DEVICE_TABLE(pci
, adv_pci_dio_pci_table
);
650 static struct pci_driver adv_pci_dio_pci_driver
= {
651 .name
= "adv_pci_dio",
652 .id_table
= adv_pci_dio_pci_table
,
653 .probe
= adv_pci_dio_pci_probe
,
654 .remove
= comedi_pci_auto_unconfig
,
656 module_comedi_pci_driver(adv_pci_dio_driver
, adv_pci_dio_pci_driver
);
658 MODULE_AUTHOR("Comedi http://www.comedi.org");
659 MODULE_DESCRIPTION("Comedi low-level driver");
660 MODULE_LICENSE("GPL");