enum dio200_model model;
enum dio200_layout_idx layout;
unsigned char mainbar;
+ unsigned char mainshift;
unsigned int mainsize;
};
static unsigned char dio200_read8(struct comedi_device *dev,
unsigned int offset)
{
+ const struct dio200_board *thisboard = comedi_board(dev);
struct dio200_private *devpriv = dev->private;
+ offset <<= thisboard->mainshift;
if (devpriv->io.regtype == io_regtype)
return inb(devpriv->io.u.iobase + offset);
else
static void dio200_write8(struct comedi_device *dev, unsigned int offset,
unsigned char val)
{
+ const struct dio200_board *thisboard = comedi_board(dev);
struct dio200_private *devpriv = dev->private;
+ offset <<= thisboard->mainshift;
if (devpriv->io.regtype == io_regtype)
outb(val, devpriv->io.u.iobase + offset);
else