1 // SPDX-License-Identifier: GPL-2.0+
4 * Comedi driver for National Instruments PCI-65xx static dio boards
6 * Copyright (C) 2006 Jon Grierson <jd@renko.co.uk>
7 * Copyright (C) 2006 Frank Mori Hess <fmhess@users.sourceforge.net>
9 * COMEDI - Linux Control and Measurement Device Interface
10 * Copyright (C) 1999,2002,2003 David A. Schleef <ds@schleef.org>
15 * Description: National Instruments 65xx static dio boards
16 * Author: Jon Grierson <jd@renko.co.uk>,
17 * Frank Mori Hess <fmhess@users.sourceforge.net>
19 * Devices: [National Instruments] PCI-6509 (pci-6509), PXI-6509 (pxi-6509),
20 * PCI-6510 (pci-6510), PCI-6511 (pci-6511), PXI-6511 (pxi-6511),
21 * PCI-6512 (pci-6512), PXI-6512 (pxi-6512), PCI-6513 (pci-6513),
22 * PXI-6513 (pxi-6513), PCI-6514 (pci-6514), PXI-6514 (pxi-6514),
23 * PCI-6515 (pxi-6515), PXI-6515 (pxi-6515), PCI-6516 (pci-6516),
24 * PCI-6517 (pci-6517), PCI-6518 (pci-6518), PCI-6519 (pci-6519),
25 * PCI-6520 (pci-6520), PCI-6521 (pci-6521), PXI-6521 (pxi-6521),
26 * PCI-6528 (pci-6528), PXI-6528 (pxi-6528)
27 * Updated: Mon, 21 Jul 2014 12:49:58 +0000
29 * Configuration Options: not applicable, uses PCI auto config
31 * Based on the PCI-6527 driver by ds.
32 * The interrupt subdevice (subdevice 3) is probably broken for all
33 * boards except maybe the 6514.
35 * This driver previously inverted the outputs on PCI-6513 through to
36 * PCI-6519 and on PXI-6513 through to PXI-6515. It no longer inverts
37 * outputs on those cards by default as it didn't make much sense. If
38 * you require the outputs to be inverted on those cards for legacy
39 * reasons, set the module parameter "legacy_invert_outputs=true" when
40 * loading the module, or set "ni_65xx.legacy_invert_outputs=true" on
41 * the kernel command line if the driver is built in to the kernel.
45 * Manuals (available from ftp://ftp.natinst.com/support/manuals)
47 * 370106b.pdf 6514 Register Level Programmer Manual
50 #include <linux/module.h>
51 #include <linux/interrupt.h>
53 #include "../comedi_pci.h"
56 * PCI BAR1 Register Map
59 /* Non-recurring Registers (8-bit except where noted) */
60 #define NI_65XX_ID_REG 0x00
61 #define NI_65XX_CLR_REG 0x01
62 #define NI_65XX_CLR_WDOG_INT BIT(6)
63 #define NI_65XX_CLR_WDOG_PING BIT(5)
64 #define NI_65XX_CLR_WDOG_EXP BIT(4)
65 #define NI_65XX_CLR_EDGE_INT BIT(3)
66 #define NI_65XX_CLR_OVERFLOW_INT BIT(2)
67 #define NI_65XX_STATUS_REG 0x02
68 #define NI_65XX_STATUS_WDOG_INT BIT(5)
69 #define NI_65XX_STATUS_FALL_EDGE BIT(4)
70 #define NI_65XX_STATUS_RISE_EDGE BIT(3)
71 #define NI_65XX_STATUS_INT BIT(2)
72 #define NI_65XX_STATUS_OVERFLOW_INT BIT(1)
73 #define NI_65XX_STATUS_EDGE_INT BIT(0)
74 #define NI_65XX_CTRL_REG 0x03
75 #define NI_65XX_CTRL_WDOG_ENA BIT(5)
76 #define NI_65XX_CTRL_FALL_EDGE_ENA BIT(4)
77 #define NI_65XX_CTRL_RISE_EDGE_ENA BIT(3)
78 #define NI_65XX_CTRL_INT_ENA BIT(2)
79 #define NI_65XX_CTRL_OVERFLOW_ENA BIT(1)
80 #define NI_65XX_CTRL_EDGE_ENA BIT(0)
81 #define NI_65XX_REV_REG 0x04 /* 32-bit */
82 #define NI_65XX_FILTER_REG 0x08 /* 32-bit */
83 #define NI_65XX_RTSI_ROUTE_REG 0x0c /* 16-bit */
84 #define NI_65XX_RTSI_EDGE_REG 0x0e /* 16-bit */
85 #define NI_65XX_RTSI_WDOG_REG 0x10 /* 16-bit */
86 #define NI_65XX_RTSI_TRIG_REG 0x12 /* 16-bit */
87 #define NI_65XX_AUTO_CLK_SEL_REG 0x14 /* PXI-6528 only */
88 #define NI_65XX_AUTO_CLK_SEL_STATUS BIT(1)
89 #define NI_65XX_AUTO_CLK_SEL_DISABLE BIT(0)
90 #define NI_65XX_WDOG_CTRL_REG 0x15
91 #define NI_65XX_WDOG_CTRL_ENA BIT(0)
92 #define NI_65XX_RTSI_CFG_REG 0x16
93 #define NI_65XX_RTSI_CFG_RISE_SENSE BIT(2)
94 #define NI_65XX_RTSI_CFG_FALL_SENSE BIT(1)
95 #define NI_65XX_RTSI_CFG_SYNC_DETECT BIT(0)
96 #define NI_65XX_WDOG_STATUS_REG 0x17
97 #define NI_65XX_WDOG_STATUS_EXP BIT(0)
98 #define NI_65XX_WDOG_INTERVAL_REG 0x18 /* 32-bit */
100 /* Recurring port registers (8-bit) */
101 #define NI_65XX_PORT(x) ((x) * 0x10)
102 #define NI_65XX_IO_DATA_REG(x) (0x40 + NI_65XX_PORT(x))
103 #define NI_65XX_IO_SEL_REG(x) (0x41 + NI_65XX_PORT(x))
104 #define NI_65XX_IO_SEL_OUTPUT 0
105 #define NI_65XX_IO_SEL_INPUT BIT(0)
106 #define NI_65XX_RISE_EDGE_ENA_REG(x) (0x42 + NI_65XX_PORT(x))
107 #define NI_65XX_FALL_EDGE_ENA_REG(x) (0x43 + NI_65XX_PORT(x))
108 #define NI_65XX_FILTER_ENA(x) (0x44 + NI_65XX_PORT(x))
109 #define NI_65XX_WDOG_HIZ_REG(x) (0x46 + NI_65XX_PORT(x))
110 #define NI_65XX_WDOG_ENA(x) (0x47 + NI_65XX_PORT(x))
111 #define NI_65XX_WDOG_HI_LO_REG(x) (0x48 + NI_65XX_PORT(x))
112 #define NI_65XX_RTSI_ENA(x) (0x49 + NI_65XX_PORT(x))
114 #define NI_65XX_PORT_TO_CHAN(x) ((x) * 8)
115 #define NI_65XX_CHAN_TO_PORT(x) ((x) / 8)
116 #define NI_65XX_CHAN_TO_MASK(x) (1 << ((x) % 8))
118 enum ni_65xx_boardid {
143 struct ni_65xx_board {
145 unsigned int num_dio_ports;
146 unsigned int num_di_ports;
147 unsigned int num_do_ports;
148 unsigned int legacy_invert:1;
151 static const struct ni_65xx_board ni_65xx_boards[] = {
263 static bool ni_65xx_legacy_invert_outputs;
264 module_param_named(legacy_invert_outputs, ni_65xx_legacy_invert_outputs,
266 MODULE_PARM_DESC(legacy_invert_outputs,
267 "invert outputs of PCI/PXI-6513/6514/6515/6516/6517/6518/6519 for compatibility with old user code");
269 static unsigned int ni_65xx_num_ports(struct comedi_device *dev)
271 const struct ni_65xx_board *board = dev->board_ptr;
273 return board->num_dio_ports + board->num_di_ports + board->num_do_ports;
276 static void ni_65xx_disable_input_filters(struct comedi_device *dev)
278 unsigned int num_ports = ni_65xx_num_ports(dev);
281 /* disable input filtering on all ports */
282 for (i = 0; i < num_ports; ++i)
283 writeb(0x00, dev->mmio + NI_65XX_FILTER_ENA(i));
285 /* set filter interval to 0 (32bit reg) */
286 writel(0x00000000, dev->mmio + NI_65XX_FILTER_REG);
289 /* updates edge detection for base_chan to base_chan+31 */
290 static void ni_65xx_update_edge_detection(struct comedi_device *dev,
291 unsigned int base_chan,
293 unsigned int falling)
295 unsigned int num_ports = ni_65xx_num_ports(dev);
298 if (base_chan >= NI_65XX_PORT_TO_CHAN(num_ports))
301 for (port = NI_65XX_CHAN_TO_PORT(base_chan); port < num_ports; port++) {
302 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan);
303 unsigned int port_mask, port_rising, port_falling;
309 port_mask = ~0U >> bitshift;
310 port_rising = rising >> bitshift;
311 port_falling = falling >> bitshift;
313 port_mask = ~0U << -bitshift;
314 port_rising = rising << -bitshift;
315 port_falling = falling << -bitshift;
317 if (port_mask & 0xff) {
318 if (~port_mask & 0xff) {
321 NI_65XX_RISE_EDGE_ENA_REG(port)) &
325 NI_65XX_FALL_EDGE_ENA_REG(port)) &
328 writeb(port_rising & 0xff,
329 dev->mmio + NI_65XX_RISE_EDGE_ENA_REG(port));
330 writeb(port_falling & 0xff,
331 dev->mmio + NI_65XX_FALL_EDGE_ENA_REG(port));
336 static void ni_65xx_disable_edge_detection(struct comedi_device *dev)
338 /* clear edge detection for channels 0 to 31 */
339 ni_65xx_update_edge_detection(dev, 0, 0, 0);
340 /* clear edge detection for channels 32 to 63 */
341 ni_65xx_update_edge_detection(dev, 32, 0, 0);
342 /* clear edge detection for channels 64 to 95 */
343 ni_65xx_update_edge_detection(dev, 64, 0, 0);
346 static int ni_65xx_dio_insn_config(struct comedi_device *dev,
347 struct comedi_subdevice *s,
348 struct comedi_insn *insn,
351 unsigned long base_port = (unsigned long)s->private;
352 unsigned int chan = CR_CHAN(insn->chanspec);
353 unsigned int chan_mask = NI_65XX_CHAN_TO_MASK(chan);
354 unsigned int port = base_port + NI_65XX_CHAN_TO_PORT(chan);
355 unsigned int interval;
359 case INSN_CONFIG_FILTER:
361 * The deglitch filter interval is specified in nanoseconds.
362 * The hardware supports intervals in 200ns increments. Round
363 * the user values up and return the actual interval.
365 interval = (data[1] + 100) / 200;
366 if (interval > 0xfffff)
368 data[1] = interval * 200;
371 * Enable/disable the channel for deglitch filtering. Note
372 * that the filter interval is never set to '0'. This is done
373 * because other channels might still be enabled for filtering.
375 val = readb(dev->mmio + NI_65XX_FILTER_ENA(port));
377 writel(interval, dev->mmio + NI_65XX_FILTER_REG);
382 writeb(val, dev->mmio + NI_65XX_FILTER_ENA(port));
385 case INSN_CONFIG_DIO_OUTPUT:
386 if (s->type != COMEDI_SUBD_DIO)
388 writeb(NI_65XX_IO_SEL_OUTPUT,
389 dev->mmio + NI_65XX_IO_SEL_REG(port));
392 case INSN_CONFIG_DIO_INPUT:
393 if (s->type != COMEDI_SUBD_DIO)
395 writeb(NI_65XX_IO_SEL_INPUT,
396 dev->mmio + NI_65XX_IO_SEL_REG(port));
399 case INSN_CONFIG_DIO_QUERY:
400 if (s->type != COMEDI_SUBD_DIO)
402 val = readb(dev->mmio + NI_65XX_IO_SEL_REG(port));
403 data[1] = (val == NI_65XX_IO_SEL_INPUT) ? COMEDI_INPUT
414 static int ni_65xx_dio_insn_bits(struct comedi_device *dev,
415 struct comedi_subdevice *s,
416 struct comedi_insn *insn,
419 unsigned long base_port = (unsigned long)s->private;
420 unsigned int base_chan = CR_CHAN(insn->chanspec);
421 int last_port_offset = NI_65XX_CHAN_TO_PORT(s->n_chan - 1);
422 unsigned int read_bits = 0;
425 for (port_offset = NI_65XX_CHAN_TO_PORT(base_chan);
426 port_offset <= last_port_offset; port_offset++) {
427 unsigned int port = base_port + port_offset;
428 int base_port_channel = NI_65XX_PORT_TO_CHAN(port_offset);
429 unsigned int port_mask, port_data, bits;
430 int bitshift = base_port_channel - base_chan;
437 port_mask >>= bitshift;
438 port_data >>= bitshift;
440 port_mask <<= -bitshift;
441 port_data <<= -bitshift;
446 /* update the outputs */
448 bits = readb(dev->mmio + NI_65XX_IO_DATA_REG(port));
449 bits ^= s->io_bits; /* invert if necessary */
451 bits |= (port_data & port_mask);
452 bits ^= s->io_bits; /* invert back */
453 writeb(bits, dev->mmio + NI_65XX_IO_DATA_REG(port));
456 /* read back the actual state */
457 bits = readb(dev->mmio + NI_65XX_IO_DATA_REG(port));
458 bits ^= s->io_bits; /* invert if necessary */
470 static irqreturn_t ni_65xx_interrupt(int irq, void *d)
472 struct comedi_device *dev = d;
473 struct comedi_subdevice *s = dev->read_subdev;
476 status = readb(dev->mmio + NI_65XX_STATUS_REG);
477 if ((status & NI_65XX_STATUS_INT) == 0)
479 if ((status & NI_65XX_STATUS_EDGE_INT) == 0)
482 writeb(NI_65XX_CLR_EDGE_INT | NI_65XX_CLR_OVERFLOW_INT,
483 dev->mmio + NI_65XX_CLR_REG);
485 comedi_buf_write_samples(s, &s->state, 1);
486 comedi_handle_events(dev, s);
491 static int ni_65xx_intr_cmdtest(struct comedi_device *dev,
492 struct comedi_subdevice *s,
493 struct comedi_cmd *cmd)
497 /* Step 1 : check if triggers are trivially valid */
499 err |= comedi_check_trigger_src(&cmd->start_src, TRIG_NOW);
500 err |= comedi_check_trigger_src(&cmd->scan_begin_src, TRIG_OTHER);
501 err |= comedi_check_trigger_src(&cmd->convert_src, TRIG_FOLLOW);
502 err |= comedi_check_trigger_src(&cmd->scan_end_src, TRIG_COUNT);
503 err |= comedi_check_trigger_src(&cmd->stop_src, TRIG_COUNT);
508 /* Step 2a : make sure trigger sources are unique */
509 /* Step 2b : and mutually compatible */
511 /* Step 3: check if arguments are trivially valid */
513 err |= comedi_check_trigger_arg_is(&cmd->start_arg, 0);
514 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0);
515 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0);
516 err |= comedi_check_trigger_arg_is(&cmd->scan_end_arg,
518 err |= comedi_check_trigger_arg_is(&cmd->stop_arg, 0);
523 /* Step 4: fix up any arguments */
525 /* Step 5: check channel list if it exists */
530 static int ni_65xx_intr_cmd(struct comedi_device *dev,
531 struct comedi_subdevice *s)
533 writeb(NI_65XX_CLR_EDGE_INT | NI_65XX_CLR_OVERFLOW_INT,
534 dev->mmio + NI_65XX_CLR_REG);
535 writeb(NI_65XX_CTRL_FALL_EDGE_ENA | NI_65XX_CTRL_RISE_EDGE_ENA |
536 NI_65XX_CTRL_INT_ENA | NI_65XX_CTRL_EDGE_ENA,
537 dev->mmio + NI_65XX_CTRL_REG);
542 static int ni_65xx_intr_cancel(struct comedi_device *dev,
543 struct comedi_subdevice *s)
545 writeb(0x00, dev->mmio + NI_65XX_CTRL_REG);
550 static int ni_65xx_intr_insn_bits(struct comedi_device *dev,
551 struct comedi_subdevice *s,
552 struct comedi_insn *insn,
559 static int ni_65xx_intr_insn_config(struct comedi_device *dev,
560 struct comedi_subdevice *s,
561 struct comedi_insn *insn,
565 case INSN_CONFIG_CHANGE_NOTIFY:
566 /* add instruction to check_insn_config_length() */
570 /* update edge detection for channels 0 to 31 */
571 ni_65xx_update_edge_detection(dev, 0, data[1], data[2]);
572 /* clear edge detection for channels 32 to 63 */
573 ni_65xx_update_edge_detection(dev, 32, 0, 0);
574 /* clear edge detection for channels 64 to 95 */
575 ni_65xx_update_edge_detection(dev, 64, 0, 0);
577 case INSN_CONFIG_DIGITAL_TRIG:
578 /* check trigger number */
581 /* check digital trigger operation */
583 case COMEDI_DIGITAL_TRIG_DISABLE:
584 ni_65xx_disable_edge_detection(dev);
586 case COMEDI_DIGITAL_TRIG_ENABLE_EDGES:
588 * update edge detection for channels data[3]
591 ni_65xx_update_edge_detection(dev, data[3],
605 /* ripped from mite.h and mite_setup2() to avoid mite dependency */
606 #define MITE_IODWBSR 0xc0 /* IO Device Window Base Size Register */
607 #define WENAB BIT(7) /* window enable */
609 static int ni_65xx_mite_init(struct pci_dev *pcidev)
611 void __iomem *mite_base;
614 /* ioremap the MITE registers (BAR 0) temporarily */
615 mite_base = pci_ioremap_bar(pcidev, 0);
619 /* set data window to main registers (BAR 1) */
620 main_phys_addr = pci_resource_start(pcidev, 1);
621 writel(main_phys_addr | WENAB, mite_base + MITE_IODWBSR);
623 /* finished with MITE registers */
628 static int ni_65xx_auto_attach(struct comedi_device *dev,
629 unsigned long context)
631 struct pci_dev *pcidev = comedi_to_pci_dev(dev);
632 const struct ni_65xx_board *board = NULL;
633 struct comedi_subdevice *s;
637 if (context < ARRAY_SIZE(ni_65xx_boards))
638 board = &ni_65xx_boards[context];
641 dev->board_ptr = board;
642 dev->board_name = board->name;
644 ret = comedi_pci_enable(dev);
648 ret = ni_65xx_mite_init(pcidev);
652 dev->mmio = pci_ioremap_bar(pcidev, 1);
656 writeb(NI_65XX_CLR_EDGE_INT | NI_65XX_CLR_OVERFLOW_INT,
657 dev->mmio + NI_65XX_CLR_REG);
658 writeb(0x00, dev->mmio + NI_65XX_CTRL_REG);
661 ret = request_irq(pcidev->irq, ni_65xx_interrupt, IRQF_SHARED,
662 dev->board_name, dev);
664 dev->irq = pcidev->irq;
667 dev_info(dev->class_dev, "board: %s, ID=0x%02x", dev->board_name,
668 readb(dev->mmio + NI_65XX_ID_REG));
670 ret = comedi_alloc_subdevices(dev, 4);
674 s = &dev->subdevices[0];
675 if (board->num_di_ports) {
676 s->type = COMEDI_SUBD_DI;
677 s->subdev_flags = SDF_READABLE;
678 s->n_chan = NI_65XX_PORT_TO_CHAN(board->num_di_ports);
680 s->range_table = &range_digital;
681 s->insn_bits = ni_65xx_dio_insn_bits;
682 s->insn_config = ni_65xx_dio_insn_config;
684 /* the input ports always start at port 0 */
685 s->private = (void *)0;
687 s->type = COMEDI_SUBD_UNUSED;
690 s = &dev->subdevices[1];
691 if (board->num_do_ports) {
692 s->type = COMEDI_SUBD_DO;
693 s->subdev_flags = SDF_WRITABLE;
694 s->n_chan = NI_65XX_PORT_TO_CHAN(board->num_do_ports);
696 s->range_table = &range_digital;
697 s->insn_bits = ni_65xx_dio_insn_bits;
699 /* the output ports always start after the input ports */
700 s->private = (void *)(unsigned long)board->num_di_ports;
703 * Use the io_bits to handle the inverted outputs. Inverted
704 * outputs are only supported if the "legacy_invert_outputs"
705 * module parameter is set to "true".
707 if (ni_65xx_legacy_invert_outputs && board->legacy_invert)
710 /* reset all output ports to comedi '0' */
711 for (i = 0; i < board->num_do_ports; ++i) {
712 writeb(s->io_bits, /* inverted if necessary */
714 NI_65XX_IO_DATA_REG(board->num_di_ports + i));
717 s->type = COMEDI_SUBD_UNUSED;
720 s = &dev->subdevices[2];
721 if (board->num_dio_ports) {
722 s->type = COMEDI_SUBD_DIO;
723 s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
724 s->n_chan = NI_65XX_PORT_TO_CHAN(board->num_dio_ports);
726 s->range_table = &range_digital;
727 s->insn_bits = ni_65xx_dio_insn_bits;
728 s->insn_config = ni_65xx_dio_insn_config;
730 /* the input/output ports always start at port 0 */
731 s->private = (void *)0;
733 /* configure all ports for input */
734 for (i = 0; i < board->num_dio_ports; ++i) {
735 writeb(NI_65XX_IO_SEL_INPUT,
736 dev->mmio + NI_65XX_IO_SEL_REG(i));
739 s->type = COMEDI_SUBD_UNUSED;
742 s = &dev->subdevices[3];
743 s->type = COMEDI_SUBD_DI;
744 s->subdev_flags = SDF_READABLE;
747 s->range_table = &range_digital;
748 s->insn_bits = ni_65xx_intr_insn_bits;
750 dev->read_subdev = s;
751 s->subdev_flags |= SDF_CMD_READ;
753 s->insn_config = ni_65xx_intr_insn_config;
754 s->do_cmdtest = ni_65xx_intr_cmdtest;
755 s->do_cmd = ni_65xx_intr_cmd;
756 s->cancel = ni_65xx_intr_cancel;
759 ni_65xx_disable_input_filters(dev);
760 ni_65xx_disable_edge_detection(dev);
765 static void ni_65xx_detach(struct comedi_device *dev)
768 writeb(0x00, dev->mmio + NI_65XX_CTRL_REG);
769 comedi_pci_detach(dev);
772 static struct comedi_driver ni_65xx_driver = {
773 .driver_name = "ni_65xx",
774 .module = THIS_MODULE,
775 .auto_attach = ni_65xx_auto_attach,
776 .detach = ni_65xx_detach,
779 static int ni_65xx_pci_probe(struct pci_dev *dev,
780 const struct pci_device_id *id)
782 return comedi_pci_auto_config(dev, &ni_65xx_driver, id->driver_data);
785 static const struct pci_device_id ni_65xx_pci_table[] = {
786 { PCI_VDEVICE(NI, 0x1710), BOARD_PXI6509 },
787 { PCI_VDEVICE(NI, 0x7085), BOARD_PCI6509 },
788 { PCI_VDEVICE(NI, 0x7086), BOARD_PXI6528 },
789 { PCI_VDEVICE(NI, 0x7087), BOARD_PCI6515 },
790 { PCI_VDEVICE(NI, 0x7088), BOARD_PCI6514 },
791 { PCI_VDEVICE(NI, 0x70a9), BOARD_PCI6528 },
792 { PCI_VDEVICE(NI, 0x70c3), BOARD_PCI6511 },
793 { PCI_VDEVICE(NI, 0x70c8), BOARD_PCI6513 },
794 { PCI_VDEVICE(NI, 0x70c9), BOARD_PXI6515 },
795 { PCI_VDEVICE(NI, 0x70cc), BOARD_PCI6512 },
796 { PCI_VDEVICE(NI, 0x70cd), BOARD_PXI6514 },
797 { PCI_VDEVICE(NI, 0x70d1), BOARD_PXI6513 },
798 { PCI_VDEVICE(NI, 0x70d2), BOARD_PXI6512 },
799 { PCI_VDEVICE(NI, 0x70d3), BOARD_PXI6511 },
800 { PCI_VDEVICE(NI, 0x7124), BOARD_PCI6510 },
801 { PCI_VDEVICE(NI, 0x7125), BOARD_PCI6516 },
802 { PCI_VDEVICE(NI, 0x7126), BOARD_PCI6517 },
803 { PCI_VDEVICE(NI, 0x7127), BOARD_PCI6518 },
804 { PCI_VDEVICE(NI, 0x7128), BOARD_PCI6519 },
805 { PCI_VDEVICE(NI, 0x718b), BOARD_PCI6521 },
806 { PCI_VDEVICE(NI, 0x718c), BOARD_PXI6521 },
807 { PCI_VDEVICE(NI, 0x71c5), BOARD_PCI6520 },
810 MODULE_DEVICE_TABLE(pci, ni_65xx_pci_table);
812 static struct pci_driver ni_65xx_pci_driver = {
814 .id_table = ni_65xx_pci_table,
815 .probe = ni_65xx_pci_probe,
816 .remove = comedi_pci_auto_unconfig,
818 module_comedi_pci_driver(ni_65xx_driver, ni_65xx_pci_driver);
820 MODULE_AUTHOR("Comedi https://www.comedi.org");
821 MODULE_DESCRIPTION("Comedi driver for NI PCI-65xx static dio boards");
822 MODULE_LICENSE("GPL");