patch-2.4.15 linux/drivers/isdn/eicon/eicon_isa.c
Next file: linux/drivers/isdn/hysdn/boardergo.c
Previous file: linux/drivers/isdn/eicon/eicon_idi.c
Back to the patch index
Back to the overall index
- Lines: 68
- Date:
Fri Nov 9 13:41:41 2001
- Orig file:
v2.4.14/linux/drivers/isdn/eicon/eicon_isa.c
- Orig date:
Tue Oct 9 17:06:51 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/isdn/eicon/eicon_isa.c linux/drivers/isdn/eicon/eicon_isa.c
@@ -1,4 +1,4 @@
-/* $Id: eicon_isa.c,v 1.16.6.1 2001/09/23 22:24:37 kai Exp $
+/* $Id: eicon_isa.c,v 1.16.6.2 2001/11/06 20:58:29 kai Exp $
*
* ISDN low-level module for Eicon active ISDN-Cards.
* Hardware-specific code for old ISA cards.
@@ -20,7 +20,7 @@
#define release_shmem release_region
#define request_shmem request_region
-char *eicon_isa_revision = "$Revision: 1.16.6.1 $";
+char *eicon_isa_revision = "$Revision: 1.16.6.2 $";
#undef EICON_MCA_DEBUG
@@ -231,7 +231,7 @@
boot = &card->shmem->boot;
/* Delay 0.2 sec. */
- SLEEP(20);
+ SLEEP(HZ / 5);
/* Start CPU */
writeb(cbuf.boot_opt, &boot->ctrl);
@@ -244,10 +244,10 @@
#endif /* CONFIG_MCA */
/* Delay 0.2 sec. */
- SLEEP(20);
+ SLEEP(HZ / 5);
timeout = jiffies + (HZ * 22);
- while (timeout > jiffies) {
+ while (time_before(jiffies, timeout)) {
if (readb(&boot->ctrl) == 0)
break;
SLEEP(10);
@@ -362,8 +362,8 @@
while (tmp--) {
memcpy_toio(&boot->b, p, 256);
writeb(1, &boot->ctrl);
- timeout = jiffies + 10;
- while (timeout > jiffies) {
+ timeout = jiffies + HZ / 10;
+ while (time_before(jiffies, timeout)) {
if (readb(&boot->ctrl) == 0)
break;
SLEEP(2);
@@ -386,7 +386,7 @@
/* Start firmware, wait for signature */
writeb(2, &boot->ctrl);
timeout = jiffies + (5*HZ);
- while (timeout > jiffies) {
+ while (time_before(jiffies, timeout)) {
if (readw(&boot->signature) == 0x4447)
break;
SLEEP(2);
@@ -410,8 +410,8 @@
tmp = readb(&card->shmem->com.ReadyInt);
tmp ++;
writeb(tmp, &card->shmem->com.ReadyInt);
- timeout = jiffies + 20;
- while (timeout > jiffies) {
+ timeout = jiffies + HZ / 5;
+ while (time_before(jiffies, timeout)) {
if (card->irqprobe > 1)
break;
SLEEP(2);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)