summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-11-19 23:01:07 +0000
committerwdenk <wdenk>2002-11-19 23:01:07 +0000
commitb2184c314de0af9788ce505b413030d2114cfa4a (patch)
treefd167faf0174a2e7ec1bb775b78952478fab391a /drivers
parent0ae1175bb2ee24cce54df634761993b363ce888f (diff)
* Patch by Daniel Engström, 18 Nov 2002:
Fixes for x86 port (mostly strings issues) * Patch by Ken Chou, 18 Nov 2002: Fix for natsemi NIC cards (DP83815) * Patch by Pierre Aubert, 19 Nov 2002: fix a bug for the MII configuration, and some warnings
Diffstat (limited to 'drivers')
-rw-r--r--drivers/natsemi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/natsemi.c b/drivers/natsemi.c
index 5a8c5b4ecc1..0bed04dbbdf 100644
--- a/drivers/natsemi.c
+++ b/drivers/natsemi.c
@@ -306,8 +306,8 @@ natsemi_initialize(bd_t * bis)
break;
}
- pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase);
- iobase &= ~0x3; /* 1: unused and 0:I/O Space Indicator */
+ pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase);
+ iobase &= ~0xF; /* Masked out the low bits that are addresses. */
pci_write_config_dword(devno, PCI_COMMAND,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);