57 static unsigned int ui_InterruptStatus;
90 unsigned int ui_TmpValue;
92 unsigned int ul_Command1 = 0;
93 unsigned int ul_Command2 = 0;
100 ul_Command1 = ul_Command1 | data[2];
101 ul_Command2 = ul_Command2 | data[3];
116 ul_Command1 = ul_Command1 & 0xFFFF0000;
117 ul_Command2 = ul_Command2 & 0xFFFF0000;
150 unsigned int ui_TmpValue = 0;
151 unsigned int ui_Channel;
153 if (ui_Channel <= 31) {
159 *data = (ui_TmpValue >> ui_Channel) & 0x1;
191 unsigned int ui_PortValue = data[0];
192 unsigned int ui_Mask = 0;
193 unsigned int ui_NoOfChannels;
198 switch (ui_NoOfChannels) {
201 *data = (*data >> (2 * ui_PortValue)) & ui_Mask;
205 *data = (*data >> (4 * ui_PortValue)) & ui_Mask;
209 *data = (*data >> (8 * ui_PortValue)) & ui_Mask;
213 *data = (*data >> (16 * ui_PortValue)) & ui_Mask;
225 *data = ui_InterruptStatus;
248 static void v_APCI1032_Interrupt(
int irq,
void *
d)
252 unsigned int ui_Temp;
259 ui_InterruptStatus = ui_InterruptStatus & 0X0000FFFF;