pci_read using wrong device
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1789 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
abc4a11a9a
commit
e5c0ca30a2
|
@ -41,15 +41,15 @@ static void pci_domain_set_resources(device_t dev)
|
||||||
unsigned long start, end, size;
|
unsigned long start, end, size;
|
||||||
|
|
||||||
/* Find the memory setup */
|
/* Find the memory setup */
|
||||||
memstart1 = pci_read_config32(dev, 0x80);
|
memstart1 = pci_read_config32(mc_dev, 0x80);
|
||||||
memstart2 = pci_read_config32(dev, 0x84);
|
memstart2 = pci_read_config32(mc_dev, 0x84);
|
||||||
extmemstart1 = pci_read_config32(dev, 0x88);
|
extmemstart1 = pci_read_config32(mc_dev, 0x88);
|
||||||
extmemstart1 = pci_read_config32(dev, 0x8c);
|
extmemstart1 = pci_read_config32(mc_dev, 0x8c);
|
||||||
memend1 = pci_read_config32(dev, 0x90);
|
memend1 = pci_read_config32(mc_dev, 0x90);
|
||||||
memend2 = pci_read_config32(dev, 0x94);
|
memend2 = pci_read_config32(mc_dev, 0x94);
|
||||||
extmemend1 = pci_read_config32(dev, 0x98);
|
extmemend1 = pci_read_config32(mc_dev, 0x98);
|
||||||
extmemend2 = pci_read_config32(dev, 0x9c);
|
extmemend2 = pci_read_config32(mc_dev, 0x9c);
|
||||||
bank_enable = pci_read_config32(dev, 0xa0);
|
bank_enable = pci_read_config32(mc_dev, 0xa0);
|
||||||
|
|
||||||
/* Report the memory regions */
|
/* Report the memory regions */
|
||||||
idx = 10;
|
idx = 10;
|
||||||
|
|
Loading…
Reference in New Issue