Commit 11975225 authored by Chase Southwood's avatar Chase Southwood Committed by Greg Kroah-Hartman

Staging: comedi: addi-data: cleanup comments in hwdrv_apci1564.c

hwdrv_apci1564.c had a lot of commented out conditional statements that
were often identical to other un-commented out statements nearby, so it
should be safe to just delete all of these commented out lines.  This
patch also converts the remaining comments to the preferred kernel style
for comments.
Signed-off-by: default avatarChase Southwood <chase.southwood@yahoo.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a9f48883
...@@ -138,9 +138,8 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev, ...@@ -138,9 +138,8 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev,
struct addi_private *devpriv = dev->private; struct addi_private *devpriv = dev->private;
devpriv->tsk_Current = current; devpriv->tsk_Current = current;
/*******************************/
/* Set the digital input logic */ /* Set the digital input logic */
/*******************************/
if (data[0] == ADDIDATA_ENABLE) { if (data[0] == ADDIDATA_ENABLE) {
data[2] = data[2] << 4; data[2] = data[2] << 4;
data[3] = data[3] << 4; data[3] = data[3] << 4;
...@@ -154,13 +153,13 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev, ...@@ -154,13 +153,13 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev,
outl(0x4, outl(0x4,
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP +
APCI1564_DIGITAL_IP_IRQ); APCI1564_DIGITAL_IP_IRQ);
} /* if (data[1] == ADDIDATA_OR) */ }
else { else {
outl(0x6, outl(0x6,
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP +
APCI1564_DIGITAL_IP_IRQ); APCI1564_DIGITAL_IP_IRQ);
} /* else if (data[1] == ADDIDATA_OR) */ }
} /* if (data[0] == ADDIDATA_ENABLE) */ }
else { else {
outl(0x0, outl(0x0,
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP +
...@@ -171,7 +170,7 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev, ...@@ -171,7 +170,7 @@ static int i_APCI1564_ConfigDigitalInput(struct comedi_device *dev,
outl(0x0, outl(0x0,
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP +
APCI1564_DIGITAL_IP_IRQ); APCI1564_DIGITAL_IP_IRQ);
} /* else if (data[0] == ADDIDATA_ENABLE) */ }
return insn->n; return insn->n;
} }
...@@ -225,25 +224,25 @@ static int i_APCI1564_ConfigDigitalOutput(struct comedi_device *dev, ...@@ -225,25 +224,25 @@ static int i_APCI1564_ConfigDigitalOutput(struct comedi_device *dev,
comedi_error(dev, comedi_error(dev,
"Not a valid Data !!! ,Data should be 1 or 0\n"); "Not a valid Data !!! ,Data should be 1 or 0\n");
return -EINVAL; return -EINVAL;
} /* if ((data[0]!=0) && (data[0]!=1)) */ }
if (data[0]) { if (data[0]) {
devpriv->b_OutputMemoryStatus = ADDIDATA_ENABLE; devpriv->b_OutputMemoryStatus = ADDIDATA_ENABLE;
} /* if (data[0]) */ }
else { else {
devpriv->b_OutputMemoryStatus = ADDIDATA_DISABLE; devpriv->b_OutputMemoryStatus = ADDIDATA_DISABLE;
} /* else if (data[0]) */ }
if (data[1] == ADDIDATA_ENABLE) { if (data[1] == ADDIDATA_ENABLE) {
ul_Command = ul_Command | 0x1; ul_Command = ul_Command | 0x1;
} /* if (data[1] == ADDIDATA_ENABLE) */ }
else { else {
ul_Command = ul_Command & 0xFFFFFFFE; ul_Command = ul_Command & 0xFFFFFFFE;
} /* else if (data[1] == ADDIDATA_ENABLE) */ }
if (data[2] == ADDIDATA_ENABLE) { if (data[2] == ADDIDATA_ENABLE) {
ul_Command = ul_Command | 0x2; ul_Command = ul_Command | 0x2;
} /* if (data[2] == ADDIDATA_ENABLE) */ }
else { else {
ul_Command = ul_Command & 0xFFFFFFFD; ul_Command = ul_Command & 0xFFFFFFFD;
} /* else if (data[2] == ADDIDATA_ENABLE) */ }
outl(ul_Command, outl(ul_Command,
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_OP + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_OP +
APCI1564_DIGITAL_OP_INTERRUPT); APCI1564_DIGITAL_OP_INTERRUPT);
...@@ -323,7 +322,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -323,7 +322,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
outl(data[3], outl(data[3],
devpriv->i_IobaseAmcc + APCI1564_DIGITAL_OP_WATCHDOG + devpriv->i_IobaseAmcc + APCI1564_DIGITAL_OP_WATCHDOG +
APCI1564_TCW_RELOAD_VALUE); APCI1564_TCW_RELOAD_VALUE);
} /* if (data[0]==ADDIDATA_WATCHDOG) */ }
else if (data[0] == ADDIDATA_TIMER) { else if (data[0] == ADDIDATA_TIMER) {
/* First Stop The Timer */ /* First Stop The Timer */
ul_Command1 = ul_Command1 =
...@@ -357,13 +356,12 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -357,13 +356,12 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
outl(0x0, outl(0x0,
devpriv->iobase + APCI1564_COUNTER4 + devpriv->iobase + APCI1564_COUNTER4 +
APCI1564_TCW_IRQ); APCI1564_TCW_IRQ);
} /* if (data[1]==1) */ }
else { else {
outl(0x0, devpriv->i_IobaseAmcc + APCI1564_TIMER + APCI1564_TCW_PROG); /* disable Timer interrupt */ outl(0x0, devpriv->i_IobaseAmcc + APCI1564_TIMER + APCI1564_TCW_PROG); /* disable Timer interrupt */
} /* else if (data[1]==1) */ }
/* Loading Timebase */ /* Loading Timebase */
outl(data[2], outl(data[2],
devpriv->i_IobaseAmcc + APCI1564_TIMER + devpriv->i_IobaseAmcc + APCI1564_TIMER +
APCI1564_TCW_TIMEBASE); APCI1564_TCW_TIMEBASE);
...@@ -379,7 +377,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -379,7 +377,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
ul_Command1 = ul_Command1 =
(ul_Command1 & 0xFFF719E2UL) | 2UL << 13UL | 0x10UL; (ul_Command1 & 0xFFF719E2UL) | 2UL << 13UL | 0x10UL;
outl(ul_Command1, devpriv->i_IobaseAmcc + APCI1564_TIMER + APCI1564_TCW_PROG); /* mode 2 */ outl(ul_Command1, devpriv->i_IobaseAmcc + APCI1564_TIMER + APCI1564_TCW_PROG); /* mode 2 */
} /* else if (data[0]==ADDIDATA_TIMER) */ }
else if (data[0] == ADDIDATA_COUNTER) { else if (data[0] == ADDIDATA_COUNTER) {
devpriv->b_TimerSelectMode = ADDIDATA_COUNTER; devpriv->b_TimerSelectMode = ADDIDATA_COUNTER;
devpriv->b_ModeSelectRegister = data[5]; devpriv->b_ModeSelectRegister = data[5];
...@@ -391,14 +389,11 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -391,14 +389,11 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
ul_Command1 = ul_Command1 & 0xFFFFF9FEUL; ul_Command1 = ul_Command1 & 0xFFFFF9FEUL;
outl(ul_Command1, devpriv->iobase + ((data[5] - 1) * 0x20) + APCI1564_TCW_PROG); /* Stop The Timer */ outl(ul_Command1, devpriv->iobase + ((data[5] - 1) * 0x20) + APCI1564_TCW_PROG); /* Stop The Timer */
/************************/
/* Set the reload value */ /* Set the reload value */
/************************/
outl(data[3], outl(data[3],
devpriv->iobase + ((data[5] - 1) * 0x20) + devpriv->iobase + ((data[5] - 1) * 0x20) +
APCI1564_TCW_RELOAD_VALUE); APCI1564_TCW_RELOAD_VALUE);
/******************************/
/* Set the mode : */ /* Set the mode : */
/* - Disable the hardware */ /* - Disable the hardware */
/* - Disable the counter mode */ /* - Disable the counter mode */
...@@ -406,7 +401,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -406,7 +401,7 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
/* - Disable the reset */ /* - Disable the reset */
/* - Disable the timer mode */ /* - Disable the timer mode */
/* - Enable the counter mode */ /* - Enable the counter mode */
/******************************/
ul_Command1 = ul_Command1 =
(ul_Command1 & 0xFFFC19E2UL) | 0x80000UL | (ul_Command1 & 0xFFFC19E2UL) | 0x80000UL |
(unsigned int) ((unsigned int) data[4] << 16UL); (unsigned int) ((unsigned int) data[4] << 16UL);
...@@ -420,17 +415,15 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev, ...@@ -420,17 +415,15 @@ static int i_APCI1564_ConfigTimerCounterWatchdog(struct comedi_device *dev,
devpriv->iobase + ((data[5] - 1) * 0x20) + devpriv->iobase + ((data[5] - 1) * 0x20) +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
/*****************************/
/* Set the Up/Down selection */ /* Set the Up/Down selection */
/*****************************/
ul_Command1 = (ul_Command1 & 0xFFFBF9FFUL) | (data[6] << 18); ul_Command1 = (ul_Command1 & 0xFFFBF9FFUL) | (data[6] << 18);
outl(ul_Command1, outl(ul_Command1,
devpriv->iobase + ((data[5] - 1) * 0x20) + devpriv->iobase + ((data[5] - 1) * 0x20) +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} /* else if (data[0]==ADDIDATA_COUNTER) */ }
else { else {
printk(" Invalid subdevice."); printk(" Invalid subdevice.");
} /* else if (data[0]==ADDIDATA_WATCHDOG) */ }
return insn->n; return insn->n;
} }
...@@ -489,8 +482,8 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -489,8 +482,8 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
default: default:
printk("\nSpecified functionality does not exist\n"); printk("\nSpecified functionality does not exist\n");
return -EINVAL; return -EINVAL;
} /* switch (data[1]) */ }
} /* if (devpriv->b_TimerSelectMode==ADDIDATA_WATCHDOG) */ }
if (devpriv->b_TimerSelectMode == ADDIDATA_TIMER) { if (devpriv->b_TimerSelectMode == ADDIDATA_TIMER) {
if (data[1] == 1) { if (data[1] == 1) {
ul_Command1 = ul_Command1 =
...@@ -502,7 +495,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -502,7 +495,7 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
outl(ul_Command1, outl(ul_Command1,
devpriv->i_IobaseAmcc + APCI1564_TIMER + devpriv->i_IobaseAmcc + APCI1564_TIMER +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} /* if (data[1]==1) */ }
else if (data[1] == 0) { else if (data[1] == 0) {
/* Stop The Timer */ /* Stop The Timer */
...@@ -513,8 +506,8 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -513,8 +506,8 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
outl(ul_Command1, outl(ul_Command1,
devpriv->i_IobaseAmcc + APCI1564_TIMER + devpriv->i_IobaseAmcc + APCI1564_TIMER +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} /* else if(data[1]==0) */ }
} /* if (devpriv->b_TimerSelectMode==ADDIDATA_TIMER) */ }
if (devpriv->b_TimerSelectMode == ADDIDATA_COUNTER) { if (devpriv->b_TimerSelectMode == ADDIDATA_COUNTER) {
ul_Command1 = ul_Command1 =
inl(devpriv->iobase + ((devpriv->b_ModeSelectRegister - inl(devpriv->iobase + ((devpriv->b_ModeSelectRegister -
...@@ -522,16 +515,16 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d ...@@ -522,16 +515,16 @@ static int i_APCI1564_StartStopWriteTimerCounterWatchdog(struct comedi_device *d
if (data[1] == 1) { if (data[1] == 1) {
/* Start the Counter subdevice */ /* Start the Counter subdevice */
ul_Command1 = (ul_Command1 & 0xFFFFF9FFUL) | 0x1UL; ul_Command1 = (ul_Command1 & 0xFFFFF9FFUL) | 0x1UL;
} /* if (data[1] == 1) */ }
else if (data[1] == 0) { else if (data[1] == 0) {
/* Stops the Counter subdevice */ /* Stops the Counter subdevice */
ul_Command1 = 0; ul_Command1 = 0;
} /* else if (data[1] == 0) */ }
else if (data[1] == 2) { else if (data[1] == 2) {
/* Clears the Counter subdevice */ /* Clears the Counter subdevice */
ul_Command1 = (ul_Command1 & 0xFFFFF9FFUL) | 0x400; ul_Command1 = (ul_Command1 & 0xFFFFF9FFUL) | 0x400;
} /* else if (data[1] == 3) */ }
outl(ul_Command1, outl(ul_Command1,
devpriv->iobase + ((devpriv->b_ModeSelectRegister - devpriv->iobase + ((devpriv->b_ModeSelectRegister -
1) * 0x20) + APCI1564_TCW_PROG); 1) * 0x20) + APCI1564_TCW_PROG);
...@@ -577,7 +570,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, ...@@ -577,7 +570,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev,
data[1] = data[1] =
inl(devpriv->i_IobaseAmcc + inl(devpriv->i_IobaseAmcc +
APCI1564_DIGITAL_OP_WATCHDOG); APCI1564_DIGITAL_OP_WATCHDOG);
} /* if (devpriv->b_TimerSelectMode==ADDIDATA_WATCHDOG) */ }
else if (devpriv->b_TimerSelectMode == ADDIDATA_TIMER) { else if (devpriv->b_TimerSelectMode == ADDIDATA_TIMER) {
/* Stores the status of the Timer */ /* Stores the status of the Timer */
data[0] = data[0] =
...@@ -586,7 +579,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, ...@@ -586,7 +579,7 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev,
/* Stores the Actual value of the Timer */ /* Stores the Actual value of the Timer */
data[1] = inl(devpriv->i_IobaseAmcc + APCI1564_TIMER); data[1] = inl(devpriv->i_IobaseAmcc + APCI1564_TIMER);
} /* else if (devpriv->b_TimerSelectMode==ADDIDATA_TIMER) */ }
else if (devpriv->b_TimerSelectMode == ADDIDATA_COUNTER) { else if (devpriv->b_TimerSelectMode == ADDIDATA_COUNTER) {
/* Read the Counter Actual Value. */ /* Read the Counter Actual Value. */
data[0] = data[0] =
...@@ -597,31 +590,23 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev, ...@@ -597,31 +590,23 @@ static int i_APCI1564_ReadTimerCounterWatchdog(struct comedi_device *dev,
inl(devpriv->iobase + ((devpriv->b_ModeSelectRegister - inl(devpriv->iobase + ((devpriv->b_ModeSelectRegister -
1) * 0x20) + APCI1564_TCW_TRIG_STATUS); 1) * 0x20) + APCI1564_TCW_TRIG_STATUS);
/***********************************/
/* Get the software trigger status */ /* Get the software trigger status */
/***********************************/
data[1] = (unsigned char) ((ul_Command1 >> 1) & 1); data[1] = (unsigned char) ((ul_Command1 >> 1) & 1);
/***********************************/
/* Get the hardware trigger status */ /* Get the hardware trigger status */
/***********************************/
data[2] = (unsigned char) ((ul_Command1 >> 2) & 1); data[2] = (unsigned char) ((ul_Command1 >> 2) & 1);
/*********************************/
/* Get the software clear status */ /* Get the software clear status */
/*********************************/
data[3] = (unsigned char) ((ul_Command1 >> 3) & 1); data[3] = (unsigned char) ((ul_Command1 >> 3) & 1);
/***************************/
/* Get the overflow status */ /* Get the overflow status */
/***************************/
data[4] = (unsigned char) ((ul_Command1 >> 0) & 1); data[4] = (unsigned char) ((ul_Command1 >> 0) & 1);
} /* else if (devpriv->b_TimerSelectMode==ADDIDATA_COUNTER) */ }
else if ((devpriv->b_TimerSelectMode != ADDIDATA_TIMER) else if ((devpriv->b_TimerSelectMode != ADDIDATA_TIMER)
&& (devpriv->b_TimerSelectMode != ADDIDATA_WATCHDOG) && (devpriv->b_TimerSelectMode != ADDIDATA_WATCHDOG)
&& (devpriv->b_TimerSelectMode != ADDIDATA_COUNTER)) { && (devpriv->b_TimerSelectMode != ADDIDATA_COUNTER)) {
printk("\n Invalid Subdevice !!!\n"); printk("\n Invalid Subdevice !!!\n");
} /* else if ((devpriv->b_TimerSelectMode!=ADDIDATA_TIMER) && (devpriv->b_TimerSelectMode!=ADDIDATA_WATCHDOG)&& (devpriv->b_TimerSelectMode!=ADDIDATA_COUNTER)) */ }
return insn->n; return insn->n;
} }
...@@ -695,7 +680,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -695,7 +680,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
if (ui_DI == 0 && ui_DO == 0 && ui_Timer == 0 && ui_C1 == 0 if (ui_DI == 0 && ui_DO == 0 && ui_Timer == 0 && ui_C1 == 0
&& ui_C2 == 0 && ui_C3 == 0 && ui_C4 == 0) { && ui_C2 == 0 && ui_C3 == 0 && ui_C4 == 0) {
printk("\nInterrupt from unknown source\n"); printk("\nInterrupt from unknown source\n");
} /* if(ui_DI==0 && ui_DO==0 && ui_Timer==0 && ui_C1==0 && ui_C2==0 && ui_C3==0 && ui_C4==0) */ }
if (ui_DI == 1) { if (ui_DI == 1) {
ui_DI = inl(devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP + ui_DI = inl(devpriv->i_IobaseAmcc + APCI1564_DIGITAL_IP +
...@@ -724,8 +709,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -724,8 +709,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
/* Sends signal to user space */ /* Sends signal to user space */
send_sig(SIGIO, devpriv->tsk_Current, 0); send_sig(SIGIO, devpriv->tsk_Current, 0);
}
} /* if (ui_DO) */
if (ui_Timer == 1) { if (ui_Timer == 1) {
devpriv->b_TimerSelectMode = ADDIDATA_TIMER; devpriv->b_TimerSelectMode = ADDIDATA_TIMER;
...@@ -748,8 +732,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -748,8 +732,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
devpriv->i_IobaseAmcc + APCI1564_TIMER + devpriv->i_IobaseAmcc + APCI1564_TIMER +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} }
}/* if (ui_Timer == 1) */ }
if (ui_C1 == 1) { if (ui_C1 == 1) {
devpriv->b_TimerSelectMode = ADDIDATA_COUNTER; devpriv->b_TimerSelectMode = ADDIDATA_COUNTER;
...@@ -771,7 +754,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -771,7 +754,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
devpriv->iobase + APCI1564_COUNTER1 + devpriv->iobase + APCI1564_COUNTER1 +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} }
} /* if (ui_C1 == 1) */ }
if (ui_C2 == 1) { if (ui_C2 == 1) {
devpriv->b_TimerSelectMode = ADDIDATA_COUNTER; devpriv->b_TimerSelectMode = ADDIDATA_COUNTER;
...@@ -793,7 +776,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -793,7 +776,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
devpriv->iobase + APCI1564_COUNTER2 + devpriv->iobase + APCI1564_COUNTER2 +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} }
} /* if ((ui_C2 == 1) */ }
if (ui_C3 == 1) { if (ui_C3 == 1) {
devpriv->b_TimerSelectMode = ADDIDATA_COUNTER; devpriv->b_TimerSelectMode = ADDIDATA_COUNTER;
...@@ -815,7 +798,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -815,7 +798,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
devpriv->iobase + APCI1564_COUNTER3 + devpriv->iobase + APCI1564_COUNTER3 +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} }
} /* if ((ui_C3 == 1) */ }
if (ui_C4 == 1) { if (ui_C4 == 1) {
devpriv->b_TimerSelectMode = ADDIDATA_COUNTER; devpriv->b_TimerSelectMode = ADDIDATA_COUNTER;
...@@ -837,7 +820,7 @@ static void v_APCI1564_Interrupt(int irq, void *d) ...@@ -837,7 +820,7 @@ static void v_APCI1564_Interrupt(int irq, void *d)
devpriv->iobase + APCI1564_COUNTER4 + devpriv->iobase + APCI1564_COUNTER4 +
APCI1564_TCW_PROG); APCI1564_TCW_PROG);
} }
} /* if (ui_C4 == 1) */ }
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment