40 #include "../comedidev.h"
43 #define PCI_VENDOR_ID_DYNALOG 0x10b5
45 #define READ_TIMEOUT 50
54 static const char range_codes_pci1050_ai[] = { 0x00, 0x10, 0x30 };
81 for (n = 0; n < insn->
n; n++) {
96 "timeout reading analog input\n");
122 for (n = 0; n < insn->
n; n++) {
133 static int dyna_pci10xx_di_insn_bits(
struct comedi_device *dev,
153 static int dyna_pci10xx_do_insn_bits(
struct comedi_device *dev,
165 s->
state &= ~data[0];
166 s->
state |= (data[0] & data[1]);
182 static int dyna_pci10xx_attach_pci(
struct comedi_device *dev,
189 comedi_set_hw_dev(dev, &pcidev->
dev);
193 ret = alloc_private(dev,
sizeof(*devpriv));
218 s->
insn_read = dyna_pci10xx_insn_read_ai;
238 s->
insn_bits = dyna_pci10xx_di_insn_bits;
249 s->
insn_bits = dyna_pci10xx_do_insn_bits;
258 struct pci_dev *pcidev = comedi_to_pci_dev(dev);
270 .driver_name =
"dyna_pci10xx",
272 .attach_pci = dyna_pci10xx_attach_pci,
273 .detach = dyna_pci10xx_detach,
293 static struct pci_driver dyna_pci10xx_pci_driver = {
294 .name =
"dyna_pci10xx",
295 .id_table = dyna_pci10xx_pci_table,
296 .probe = dyna_pci10xx_pci_probe,