54 #include "../comedidev.h"
56 #include <linux/pci.h>
58 #define SDEV_NO ((int)(s - dev->subdevices))
61 #define LSB(x) ((unsigned char)((x) & 0xff))
62 #define MSB(x) ((unsigned char)((((unsigned short)(x))>>8) & 0xff))
63 #define LSB_PORT(chan) (dev->iobase + (chan)*2)
64 #define MSB_PORT(chan) (LSB_PORT(chan)+1)
89 #define devpriv ((struct pcmda12_private *)(dev->private))
95 for (i = 0; i <
CHANS; ++
i) {
112 for (i = 0; i < insn->
n; ++
i) {
124 devpriv->ao_readback[chan] = data[
i];
126 if (!
devpriv->simultaneous_xfer_mode)
152 for (i = 0; i < insn->
n; i++) {
153 if (
devpriv->simultaneous_xfer_mode)
156 data[
i] =
devpriv->ao_readback[chan];
172 "comedi%d: %s: io: %lx %s ", dev->
minor, dev->
driver->driver_name,
173 iobase, it->
options[1] ?
"simultaneous xfer mode enabled" :
"");
176 printk(
"I/O port conflict\n");
228 .driver_name =
"pcmda12",
230 .attach = pcmda12_attach,
231 .detach = pcmda12_detach,
232 .board_name = &pcmda12_boards[0].
name,