31 #include "../comedidev.h"
38 #define PCM3724_SIZE 16
59 #define CR_B_MODE 0x04
62 #define CR_A_MODE(a) ((a)<<5)
79 static int subdev_8255_cb(
int dir,
int port,
int data,
unsigned long arg)
86 outb(data, iobase + port);
89 inbres =
inb(iobase + port);
126 unsigned long port_8255_cfg;
141 buffer_config = compute_buffer(0, 0, s_dio1);
142 buffer_config = compute_buffer(buffer_config, 1, s_dio2);
153 outb(config, port_8255_cfg);
173 if (priv->
dio_1 & 0xff0000)
176 if (priv->
dio_1 & 0xff00)
179 if (priv->
dio_1 & 0xff)
182 if (priv->
dio_2 & 0xff0000)
185 if (priv->
dio_2 & 0xff00)
188 if (priv->
dio_2 & 0xff)
196 static int subdev_3724_insn_config(
struct comedi_device *dev,
206 else if (mask & 0x00ff00)
208 else if (mask & 0x0f0000)
228 do_3724_config(dev, s, insn->
chanspec);
239 unsigned int iorange;
240 int ret,
i, n_subdevices;
253 board->
name, iobase);
255 printk(
"I/O port conflict\n");
299 .driver_name =
"pcm3724",
301 .attach = pcm3724_attach,
302 .detach = pcm3724_detach,
303 .board_name = &boardtypes[0].
name,