#define boardACL8216 8 /* and ICP DAS A-826PG */
#define boardA821 9 /* PGH, PGL, PGL/NDA versions */
-#define PCLx1x_IORANGE 16
-
#define PCL812_CTR0 0
#define PCL812_CTR1 1
#define PCL812_CTR2 2
const struct comedi_lrange *rangelist_ao;
unsigned int IRQbits;
unsigned char DMAbits;
- unsigned char io_range;
unsigned char haveMPC508;
};
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "pcl812pg",
.board_type = boardPCL812PG,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "acl8112pg",
.board_type = boardPCL812PG,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "acl8112dg",
.board_type = boardACL8112,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
.haveMPC508 = 1,
}, {
.name = "acl8112hg",
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
.haveMPC508 = 1,
}, {
.name = "a821pgl",
.rangelist_ai = &range_pcl813b_ai,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0x000c,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a821pglnda",
.board_type = boardA821,
.i8254_osc_base = I8254_OSC_BASE_2MHZ,
.rangelist_ai = &range_pcl813b_ai,
.IRQbits = 0x000c,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a821pgh",
.board_type = boardA821,
.rangelist_ai = &range_a821pgh_ai,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0x000c,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a822pgl",
.board_type = boardACL8112,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a822pgh",
.board_type = boardACL8112,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a823pgl",
.board_type = boardACL8112,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "a823pgh",
.board_type = boardACL8112,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "pcl813",
.board_type = boardPCL813,
.n_aichan = 32,
.ai_maxdata = 0x0fff,
.rangelist_ai = &range_pcl813b_ai,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "pcl813b",
.board_type = boardPCL813B,
.n_aichan = 32,
.ai_maxdata = 0x0fff,
.rangelist_ai = &range_pcl813b_ai,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "acl8113",
.board_type = boardACL8113,
.n_aichan = 32,
.ai_maxdata = 0x0fff,
.rangelist_ai = &range_acl8113_1_ai,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "iso813",
.board_type = boardISO813,
.n_aichan = 32,
.ai_maxdata = 0x0fff,
.rangelist_ai = &range_iso813_1_ai,
- .io_range = PCLx1x_IORANGE,
}, {
.name = "acl8216",
.board_type = boardACL8216,
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
.haveMPC508 = 1,
}, {
.name = "a826pg",
.rangelist_ao = &range_unipolar5,
.IRQbits = 0xdcfc,
.DMAbits = 0x0a,
- .io_range = PCLx1x_IORANGE,
},
};
struct comedi_subdevice *s;
int n_subdevices;
- ret = comedi_request_region(dev, it->options[0], board->io_range);
+ ret = comedi_request_region(dev, it->options[0], 0x10);
if (ret)
return ret;