Changeset 64700 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 17, 2016 6:32:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r64699 r64700 1690 1690 * Initializes bridges registers used for routing. 1691 1691 * 1692 * @returns nothing.1692 * @returns Max subordinate bus number. 1693 1693 * @param pPciRoot Global device instance data used to generate unique bus numbers. 1694 1694 * @param pBus The PCI bus to initialize. … … 1696 1696 * @param uBusSecondary The secondary bus number, i.e. the bus number behind the bridge. 1697 1697 */ 1698 static voidich9pciBiosInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary, unsigned uBusSecondary)1698 static uint8_t ich9pciBiosInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary, unsigned uBusSecondary) 1699 1699 { 1700 1700 PPDMPCIDEV pBridgeDev = &pBus->PciDev; … … 1707 1707 } 1708 1708 1709 uint 32_t uMaxSubNum = 0;1709 uint8_t uMaxSubNum = 0; 1710 1710 for (uint32_t iBridge = 0; iBridge < pBus->cBridges; iBridge++) 1711 1711 { … … 1714 1714 ("Device is not a PCI bridge but on the list of PCI bridges\n")); 1715 1715 PDEVPCIBUS pChildBus = PDMINS_2_DATA(pBridge->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS); 1716 ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pChildBus->iBus);1717 uMaxSubNum = RT_MAX(uMaxSubNum, pChildBus->iBus);1716 uint8_t uMaxChildSubBus = ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pChildBus->iBus); 1717 uMaxSubNum = RT_MAX(uMaxSubNum, RT_MAX(uMaxChildSubBus, pChildBus->iBus)); 1718 1718 } 1719 1719 PCIDevSetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS, uMaxSubNum); … … 1724 1724 PDMPciDevGetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS) 1725 1725 )); 1726 1727 return uMaxSubNum; 1726 1728 } 1727 1729
Note:
See TracChangeset
for help on using the changeset viewer.