Changeset 64476 in vbox for trunk/src/VBox
- Timestamp:
- Oct 28, 2016 3:40:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r64475 r64476 1697 1697 * @param uBusSecondary The secondary bus number, i.e. the bus number behind the bridge. 1698 1698 */ 1699 static void ich9pciInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary, 1700 unsigned uBusSecondary) 1699 static void ich9pciBiosInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary, unsigned uBusSecondary) 1701 1700 { 1702 1701 PPDMPCIDEV pBridgeDev = &pBus->PciDev; … … 1716 1715 PDEVPCIBUS pChildBus = PDMINS_2_DATA(pBridge->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS); 1717 1716 pPciRoot->uPciBiosBus++; 1718 ich9pci InitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pPciRoot->uPciBiosBus);1717 ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pPciRoot->uPciBiosBus); 1719 1718 } 1720 1719 PCIDevSetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS, pPciRoot->uPciBiosBus); 1721 Log2(("ich9pci InitBridgeTopology: for bus %p: primary=%d secondary=%d subordinate=%d\n",1720 Log2(("ich9pciBiosInitBridgeTopology: for bus %p: primary=%d secondary=%d subordinate=%d\n", 1722 1721 pBus, 1723 1722 PDMPciDevGetByte(pBridgeDev, VBOX_PCI_PRIMARY_BUS), … … 1728 1727 1729 1728 1729 /** 1730 * @interface_method_impl{PDMPCIBUSREG,pfnFakePCIBIOSR3} 1731 */ 1730 1732 static DECLCALLBACK(int) ich9pciFakePCIBIOS(PPDMDEVINS pDevIns) 1731 1733 { 1732 PDEVPCIROOT pPciRoot = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);1734 PDEVPCIROOT pPciRoot = PDMINS_2_DATA(pDevIns, PDEVPCIROOT); 1733 1735 PVM pVM = PDMDevHlpGetVM(pDevIns); 1734 1736 uint32_t const cbBelow4GB = MMR3PhysGetRamSizeBelow4GB(pVM); … … 1743 1745 pPciRoot->uPciBiosMmio64 = cbAbove4GB + _4G; 1744 1746 1745 /* NB: Assume that if MMIO range is enabled, it is at the bottom of the memory hole. */1747 /* NB: Assume that if PCI controller MMIO range is enabled, it is at the bottom of the memory hole. */ 1746 1748 if (pPciRoot->u64PciConfigMMioAddress) 1747 1749 { … … 1749 1751 pPciRoot->uPciBiosMmio = pPciRoot->u64PciConfigMMioAddress + pPciRoot->u64PciConfigMMioLength; 1750 1752 } 1751 Log(("cbBelow4GB: %lX, uPciBiosMmio: %lX, cbAbove4GB: %llX\n", cbBelow4GB, pPciRoot->uPciBiosMmio, cbAbove4GB)); 1753 Log(("cbBelow4GB: %#RX32, uPciBiosMmio: %#RX64, cbAbove4GB: %#RX64, uPciBiosMmio64=%#RX64\n", 1754 cbBelow4GB, pPciRoot->uPciBiosMmio, cbAbove4GB, pPciRoot->uPciBiosMmio64)); 1752 1755 1753 1756 /* … … 1755 1758 */ 1756 1759 PDEVPCIBUS pBus = &pPciRoot->PciBus; 1757 ich9pci InitBridgeTopology(pPciRoot, pBus, 0, 0);1760 ich9pciBiosInitBridgeTopology(pPciRoot, pBus, 0, 0); 1758 1761 1759 1762 /* 1760 1763 * Init the devices. 1761 1764 */ 1762 for ( int i = 0; i < 256; i++)1765 for (uint32_t i = 0; i < 256; i++) 1763 1766 ich9pciBiosInitDevice(pPciRoot, 0, i); 1764 1767
Note:
See TracChangeset
for help on using the changeset viewer.