42 #include "../comedidev.h"
49 #define PCL722_SIZE 32
50 #define PCL722_96_SIZE 16
70 static int subdev_8255_cb(
int dir,
int port,
int data,
unsigned long arg)
75 outb(data, iobase + port);
78 return inb(iobase + port);
82 static int subdev_8255mapped_cb(
int dir,
int port,
int data,
90 outb(port + movport, iobase);
91 outb(data, iobase + 1);
94 outb(port + movport, iobase);
95 return inb(iobase + 1);
104 unsigned int iorange;
105 int ret,
i, n_subdevices;
116 board->
name, iobase);
118 printk(
"I/O port conflict\n");
131 if (((1 << irq) & board->
IRQbits) == 0) {
133 ", IRQ %u is out of allowed range, "
134 "DISABLING IT", irq);
138 (irq, interrupt_pcl724, 0,
"pcl724", dev)) {
140 ", unable to allocate IRQ %u, "
141 "DISABLING IT", irq);
168 (
unsigned long)(dev->
iobase +
172 (
unsigned long)(dev->
iobase +
202 {
"pet48dio", 48, 2, 0x9eb8,
PET48_SIZE, 0, 1, },
206 .driver_name =
"pcl724",
208 .attach = pcl724_attach,
209 .detach = pcl724_detach,
210 .board_name = &boardtypes[0].
name,