summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorStefan Hajnoczi2008-06-12 16:21:42 +0200
committerMichael Brown2008-06-12 16:21:42 +0200
commita71b4df1c9aa414b574e4d18eb12be8615a109fa (patch)
tree77fcdea5902e689fda0d13ac0a36f29396f96fe0 /src/drivers
parent[cleanup] Remove long-obsolete gpxe/async.h header file (diff)
downloadipxe-a71b4df1c9aa414b574e4d18eb12be8615a109fa.tar.gz
ipxe-a71b4df1c9aa414b574e4d18eb12be8615a109fa.tar.xz
ipxe-a71b4df1c9aa414b574e4d18eb12be8615a109fa.zip
[via-rhine] Fix erroneous uses of memory I/O instead of port I/O
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/via-rhine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/via-rhine.c b/src/drivers/net/via-rhine.c
index 81350091..fb43a924 100644
--- a/src/drivers/net/via-rhine.c
+++ b/src/drivers/net/via-rhine.c
@@ -1179,9 +1179,9 @@ rhine_disable ( struct nic *nic ) {
printf ("rhine disable\n");
/* Switch to loopback mode to avoid hardware races. */
- writeb(0x60 | 0x01, byTCR);
+ outb(0x60 | 0x01, byTCR);
/* Stop the chip's Tx and Rx processes. */
- writew(CR_STOP, byCR0);
+ outw(CR_STOP, byCR0);
}
/**************************************************************************
@@ -1279,7 +1279,7 @@ rhine_reset (struct nic *nic)
outw (0, byIMR0);
}
/* Beware of PCI posted writes */
-#define IOSYNC do { readb(nic->ioaddr + StationAddr); } while (0)
+#define IOSYNC do { inb(nic->ioaddr + StationAddr); } while (0)
static int
rhine_poll (struct nic *nic, int retreive)