From b2184c314de0af9788ce505b413030d2114cfa4a Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 19 Nov 2002 23:01:07 +0000 Subject: =?UTF-8?q?*=20Patch=20by=20Daniel=20Engstr=F6m,=2018=20Nov=202002?= =?UTF-8?q?:=20=20=20Fixes=20for=20x86=20port=20(mostly=20strings=20issues?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- drivers/natsemi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/natsemi.c b/drivers/natsemi.c index 5a8c5b4..0bed04d 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); -- cgit v1.1