.ai_range_code = labpc_1200_ai_gain_bits,
.ai_range_is_unipolar = labpc_1200_is_unipolar,
.ai_scan_up = 1,
- .memory_mapped_io = 1,
+ .has_mmio = 1,
},
#endif
};
{
const struct labpc_boardinfo *board = comedi_board(dev);
- if (board->memory_mapped_io)
+ if (board->has_mmio)
return i8254_mm_load((void __iomem *)base_address, 0,
counter_number, count, mode);
else
}
dev->iobase = iobase;
- if (board->memory_mapped_io) {
+ if (board->has_mmio) {
devpriv->read_byte = labpc_readb;
devpriv->write_byte = labpc_writeb;
} else {
s = &dev->subdevices[2];
/* if board uses io memory we have to give a custom callback
* function to the 8255 driver */
- if (board->memory_mapped_io)
+ if (board->has_mmio)
subdev_8255_init(dev, s, labpc_dio_mem_callback,
(unsigned long)(dev->iobase + DIO_BASE_REG));
else