patch-2.4.0-test2 linux/drivers/block/smart1,2.h
Next file: linux/drivers/block/swim3.c
Previous file: linux/drivers/block/rd.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Jun 23 21:04:36 2000
- Orig file:
v2.4.0-test1/linux/drivers/block/smart1,2.h
- Orig date:
Mon Jul 5 19:52:52 1999
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/block/smart1,2.h linux/drivers/block/smart1,2.h
@@ -62,13 +62,14 @@
}
/*
- * For this card fifo is full if reading this port returns 0!
+ * For older cards FIFO Full = 0.
+ * On this card 0 means there is room, anything else FIFO Full.
*
*/
static unsigned long smart4_fifo_full(ctlr_info_t *h)
{
- return (~readl(h->vaddr + S42XX_REQUEST_PORT_OFFSET));
+ return (!readl(h->vaddr + S42XX_REQUEST_PORT_OFFSET));
}
/* This type of controller returns -1 if the fifo is empty,
@@ -81,7 +82,7 @@
= readl(h->vaddr + S42XX_REPLY_PORT_OFFSET);
/* Fifo is empty */
- if( register_value == -1)
+ if( register_value == 0xffffffff)
return 0;
/* Need to let it know we got the reply */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)