mirror of https://github.com/ipxe/ipxe.git
[via-rhine] Fix erroneous uses of memory I/O instead of port I/O
parent
31c6df5365
commit
a71b4df1c9
|
@ -1179,9 +1179,9 @@ rhine_disable ( struct nic *nic ) {
|
||||||
|
|
||||||
printf ("rhine disable\n");
|
printf ("rhine disable\n");
|
||||||
/* Switch to loopback mode to avoid hardware races. */
|
/* Switch to loopback mode to avoid hardware races. */
|
||||||
writeb(0x60 | 0x01, byTCR);
|
outb(0x60 | 0x01, byTCR);
|
||||||
/* Stop the chip's Tx and Rx processes. */
|
/* 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);
|
outw (0, byIMR0);
|
||||||
}
|
}
|
||||||
/* Beware of PCI posted writes */
|
/* 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
|
static int
|
||||||
rhine_poll (struct nic *nic, int retreive)
|
rhine_poll (struct nic *nic, int retreive)
|
||||||
|
|
Loading…
Reference in New Issue