VirtualBox

Changeset 11232 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 8, 2008 2:27:38 AM (16 years ago)
Author:
vboxsync
Message:

DevPCI: Cosmetics.

File:
1 edited

Legend:

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

    r11231 r11232  
    14341434static DECLCALLBACK(int)   pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
    14351435{
    1436     PPCIGLOBALS     pGlobals = DEVINS_2_PCIGLOBALS(pDevIns);
    1437     PPCIBUS         pBus = PDMINS_2_DATA(pDevIns, PPCIBUS);
    1438     PDMPCIBUSREG    PciBusReg;
    1439     int             rc;
     1436    int rc;
    14401437    Assert(iInstance == 0);
    14411438
     
    14711468     * Init data and register the PCI bus.
    14721469     */
     1470    PPCIGLOBALS pGlobals = DEVINS_2_PCIGLOBALS(pDevIns);
    14731471    pGlobals->pci_mem_base        = 0;
    14741472    pGlobals->pci_bios_io_addr    = 0xc000;
     
    14781476    memset(&pGlobals->pci_apic_irq_levels, 0, sizeof(pGlobals->pci_apic_irq_levels));
    14791477
     1478    PPCIBUS pBus = PDMINS_2_DATA(pDevIns, PPCIBUS);
    14801479    pBus->pDevInsR3 = pDevIns;
    14811480    pBus->pDevInsR0 = PDMDEVINS_2_R0PTR(pDevIns);
    14821481    pBus->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
    14831482
     1483    PDMPCIBUSREG PciBusReg;
    14841484    PciBusReg.u32Version              = PDM_PCIBUSREG_VERSION;
    14851485    PciBusReg.pfnRegisterR3           = pciRegister;
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