21 #include "../comedidev.h"
32 #define devpriv ((struct fl512_private *) dev->private)
53 unsigned int lo_byte, hi_byte;
57 for (n = 0; n < insn->
n; n++) {
60 outb(chan, iobase + 2);
64 lo_byte =
inb(iobase + 2);
65 hi_byte =
inb(iobase + 3) & 0xf;
66 data[
n] = lo_byte + (hi_byte << 8);
80 unsigned long iobase = dev->
iobase;
82 for (n = 0; n < insn->
n; n++) {
84 outb(data[n] & 0x0ff, iobase + 4 + 2 * chan);
86 outb((data[n] & 0xf00) >> 8, iobase + 4 + 2 * chan);
87 inb(iobase + 4 + 2 * chan);
89 devpriv->ao_readback[chan] = data[
n];
105 for (n = 0; n < insn->
n; n++)
106 data[n] =
devpriv->ao_readback[chan];
186 .driver_name =
"fl512",
188 .attach = fl512_attach,
189 .detach = fl512_detach,