57 #include "../comedidev.h"
62 #define PCI_DEVICE_ID_PCI7230 0x7230
63 #define PCI_DEVICE_ID_PCI7233 0x7233
64 #define PCI_DEVICE_ID_PCI7234 0x7234
65 #define PCI_DEVICE_ID_PCI7432 0x7432
66 #define PCI_DEVICE_ID_PCI7433 0x7433
67 #define PCI_DEVICE_ID_PCI7434 0x7434
72 #define PCI7X3X_DIO_REG 0x00
73 #define PCI743X_DIO_REG 0x04
85 .name =
"adl_pci7230",
91 .name =
"adl_pci7233",
96 .name =
"adl_pci7234",
101 .name =
"adl_pci7432",
107 .name =
"adl_pci7433",
112 .name =
"adl_pci7434",
125 unsigned int mask = data[0];
126 unsigned int bits = data[1];
145 static int adl_pci7x3x_di_insn_bits(
struct comedi_device *dev,
157 static const void *adl_pci7x3x_find_boardinfo(
struct comedi_device *dev,
163 for (i = 0; i <
ARRAY_SIZE(adl_pci7x3x_boards); i++) {
164 board = &adl_pci7x3x_boards[
i];
180 comedi_set_hw_dev(dev, &pcidev->
dev);
182 board = adl_pci7x3x_find_boardinfo(dev, pcidev);
285 struct pci_dev *pcidev = comedi_to_pci_dev(dev);
294 .driver_name =
"adl_pci7x3x",
296 .attach_pci = adl_pci7x3x_attach_pci,
297 .detach = adl_pci7x3x_detach,
322 static struct pci_driver adl_pci7x3x_pci_driver = {
323 .name =
"adl_pci7x3x",
324 .id_table = adl_pci7x3x_pci_table,
325 .probe = adl_pci7x3x_pci_probe,