VirtualBox

Changeset 64476 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 28, 2016 3:40:12 PM (8 years ago)
Author:
vboxsync
Message:

DevPci: Cleaning up (fake) pci bios init.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r64475 r64476  
    16971697 * @param   uBusSecondary    The secondary bus number, i.e. the bus number behind the bridge.
    16981698 */
    1699 static void ich9pciInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary,
    1700                                       unsigned uBusSecondary)
     1699static void ich9pciBiosInitBridgeTopology(PDEVPCIROOT pPciRoot, PDEVPCIBUS pBus, unsigned uBusPrimary, unsigned uBusSecondary)
    17011700{
    17021701    PPDMPCIDEV pBridgeDev = &pBus->PciDev;
     
    17161715        PDEVPCIBUS pChildBus = PDMINS_2_DATA(pBridge->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS);
    17171716        pPciRoot->uPciBiosBus++;
    1718         ich9pciInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pPciRoot->uPciBiosBus);
     1717        ich9pciBiosInitBridgeTopology(pPciRoot, pChildBus, uBusSecondary, pPciRoot->uPciBiosBus);
    17191718    }
    17201719    PCIDevSetByte(pBridgeDev, VBOX_PCI_SUBORDINATE_BUS, pPciRoot->uPciBiosBus);
    1721     Log2(("ich9pciInitBridgeTopology: for bus %p: primary=%d secondary=%d subordinate=%d\n",
     1720    Log2(("ich9pciBiosInitBridgeTopology: for bus %p: primary=%d secondary=%d subordinate=%d\n",
    17221721          pBus,
    17231722          PDMPciDevGetByte(pBridgeDev, VBOX_PCI_PRIMARY_BUS),
     
    17281727
    17291728
     1729/**
     1730 * @interface_method_impl{PDMPCIBUSREG,pfnFakePCIBIOSR3}
     1731 */
    17301732static DECLCALLBACK(int) ich9pciFakePCIBIOS(PPDMDEVINS pDevIns)
    17311733{
    1732     PDEVPCIROOT pPciRoot   = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);
     1734    PDEVPCIROOT     pPciRoot   = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);
    17331735    PVM             pVM        = PDMDevHlpGetVM(pDevIns);
    17341736    uint32_t const  cbBelow4GB = MMR3PhysGetRamSizeBelow4GB(pVM);
     
    17431745    pPciRoot->uPciBiosMmio64 = cbAbove4GB + _4G;
    17441746
    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. */
    17461748    if (pPciRoot->u64PciConfigMMioAddress)
    17471749    {
     
    17491751        pPciRoot->uPciBiosMmio = pPciRoot->u64PciConfigMMioAddress + pPciRoot->u64PciConfigMMioLength;
    17501752    }
    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));
    17521755
    17531756    /*
     
    17551758     */
    17561759    PDEVPCIBUS pBus = &pPciRoot->PciBus;
    1757     ich9pciInitBridgeTopology(pPciRoot, pBus, 0, 0);
     1760    ich9pciBiosInitBridgeTopology(pPciRoot, pBus, 0, 0);
    17581761
    17591762    /*
    17601763     * Init the devices.
    17611764     */
    1762     for (int i = 0; i < 256; i++)
     1765    for (uint32_t i = 0; i < 256; i++)
    17631766        ich9pciBiosInitDevice(pPciRoot, 0, i);
    17641767
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette