unsigned int ns_min;
int n_aochan;
const struct comedi_lrange *ai_range_type;
- unsigned int IRQbits;
int ai_maxdata;
int ao_maxdata;
unsigned int has_dma:1;
.ns_min = 25000,
.n_aochan = 1,
.ai_range_type = &range_pcl818l_l_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818h_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818h_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818hg_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.ns_min = 10000,
.n_aochan = 2,
.ai_range_type = &range_pcl818h_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.ns_min = 16000,
.n_aochan = 2,
.ai_range_type = &range_unipolar5,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
.name = "pcm3718",
.ns_min = 10000,
.ai_range_type = &range_pcl818h_ai,
- .IRQbits = 0x00fc,
.ai_maxdata = 0xfff,
.ao_maxdata = 0xfff,
.has_dma = 1,
return -EIO;
}
- if ((1 << it->options[1]) & board->IRQbits) {
+ /* we can use IRQ 2-7 for async command support */
+ if (it->options[1] >= 2 && it->options[1] <= 7) {
ret = request_irq(it->options[1], interrupt_pcl818, 0,
dev->board_name, dev);
if (ret == 0)