aboutsummaryrefslogtreecommitdiff
path: root/src/devices/pci_device.c
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-07-17 02:15:46 +0000
committerEric Biederman <ebiederm@xmission.com>2003-07-17 02:15:46 +0000
commit5fb929e6e399ecf41aec9c6053a0340671534a63 (patch)
tree0afa015a4d621948782063319b08216bc1887159 /src/devices/pci_device.c
parent9b45b04d234e7371f8998fbd210ac5e039507724 (diff)
- pci_device.c fixes for generic pci bridges to zero the unused portion of bridge resources
- coherent_ht.c remove dead idle loop. - raminit.c Enable a 64MB mmio window just below 4GB git-svn-id: svn://svn.coreboot.org/coreboot/trunk@967 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/pci_device.c')
-rw-r--r--src/devices/pci_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c
index c4b1cbeb0c..25c39f8f9a 100644
--- a/src/devices/pci_device.c
+++ b/src/devices/pci_device.c
@@ -303,6 +303,8 @@ static void pci_set_resource(struct device *dev, struct resource *resource)
IORESOURCE_IO, IORESOURCE_IO);
pci_write_config8(dev, PCI_IO_BASE, base >> 8);
pci_write_config8(dev, PCI_IO_LIMIT, limit >> 8);
+ pci_write_config16(dev, PCI_IO_BASE_UPPER16, 0);
+ pci_write_config16(dev, PCI_IO_LIMIT_UPPER16, 0);
}
else if (resource->index == PCI_MEMORY_BASE) {
/* set the memory range
@@ -322,6 +324,8 @@ static void pci_set_resource(struct device *dev, struct resource *resource)
IORESOURCE_MEM | IORESOURCE_PREFETCH);
pci_write_config16(dev, PCI_PREF_MEMORY_BASE, base >> 16);
pci_write_config16(dev, PCI_PREF_MEMORY_LIMIT, limit >> 16);
+ pci_write_config32(dev, PCI_PREF_BASE_UPPER32, 0);
+ pci_write_config32(dev, PCI_PREF_LIMIT_UPPER32, 0);
}
else {
printk_err("ERROR: invalid resource->index %x\n",