outl(devpriv->
ul_TTLPortConfiguration[b_Cpt /
4],
- devpriv->iobase + 32 + b_Cpt);
+ dev->iobase + 32 + b_Cpt);
}
}
}
/* Get the digital inpu status */
dw_Status =
- inl(devpriv->iobase + 8 + ((b_SelectedPort / 4) * 4));
+ inl(dev->iobase + 8 + ((b_SelectedPort / 4) * 4));
dw_Status = (dw_Status >> (8 * (b_SelectedPort % 4))) & 0xFF;
/* Save the port value */
for (b_Cpt = 0; b_Cpt < b_NumberOfPort; b_Cpt++) {
/* Read the 32-Bit port */
pls_ReadData[b_Cpt] =
- inl(devpriv->iobase + 8 +
+ inl(dev->iobase + 8 +
(b_Cpt * 4));
/* Mask all channels used als outputs */
for (b_Cpt = 0; b_Cpt < b_NumberOfPort; b_Cpt++) {
/* Read the 32-Bit port */
pls_ReadData[b_Cpt] =
- inl(devpriv->iobase + 20 +
+ inl(dev->iobase + 20 +
(b_Cpt * 4));
/* Mask all channels used als outputs */
if (i_ReturnValue >= 0) {
/* Get the digital output state */
dw_Status =
- inl(devpriv->iobase + 20 + ((b_SelectedPort / 4) * 4));
+ inl(dev->iobase + 20 + ((b_SelectedPort / 4) * 4));
/* Test if output memory not used */
if (devpriv->b_OutputMemoryStatus == ADDIDATA_DISABLE) {
}
outl(dw_Status,
- devpriv->iobase + 20 + ((b_SelectedPort / 4) * 4));
+ dev->iobase + 20 + ((b_SelectedPort / 4) * 4));
}
return i_ReturnValue;