40 #include "../comedidev.h"
66 data[0] = ((
unsigned int *)dev->
private)[chan];
72 #define DAC02_LSB(a) (2 * a)
73 #define DAC02_MSB(a) (2 * a + 1)
83 ((
unsigned int *)dev->
private)[chan] = data[0];
90 temp = (output << 4) & 0xf0;
92 temp = (output >> 4) & 0xff;
115 s->
state &= ~data[0];
116 s->
state |= (data[0] & data[1]);
117 if ((data[0] >> 0) & 0xff)
119 if ((data[0] >> 8) & 0xff)
121 if ((data[0] >> 16) & 0xff)
123 if ((data[0] >> 24) & 0xff)
141 board->
name, iobase);
154 "0x%lx to 0x%lx\n", iobase, iobase + iosize - 1);
163 if (alloc_private(dev,
sizeof(
unsigned int) * board->
n_chan) < 0)
197 .winsn = dac02_ao_winsn,
198 .rinsn = readback_insn,
206 .insnbits = pcl733_insn_bits,
214 .insnbits = pcl734_insn_bits,
220 .driver_name =
"poc",
222 .attach = poc_attach,
223 .detach = poc_detach,
224 .board_name = &boards[0].
name,
226 .offset =
sizeof(boards[0]),