Changeset 11232 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 8, 2008 2:27:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r11231 r11232 1434 1434 static DECLCALLBACK(int) pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle) 1435 1435 { 1436 PPCIGLOBALS pGlobals = DEVINS_2_PCIGLOBALS(pDevIns); 1437 PPCIBUS pBus = PDMINS_2_DATA(pDevIns, PPCIBUS); 1438 PDMPCIBUSREG PciBusReg; 1439 int rc; 1436 int rc; 1440 1437 Assert(iInstance == 0); 1441 1438 … … 1471 1468 * Init data and register the PCI bus. 1472 1469 */ 1470 PPCIGLOBALS pGlobals = DEVINS_2_PCIGLOBALS(pDevIns); 1473 1471 pGlobals->pci_mem_base = 0; 1474 1472 pGlobals->pci_bios_io_addr = 0xc000; … … 1478 1476 memset(&pGlobals->pci_apic_irq_levels, 0, sizeof(pGlobals->pci_apic_irq_levels)); 1479 1477 1478 PPCIBUS pBus = PDMINS_2_DATA(pDevIns, PPCIBUS); 1480 1479 pBus->pDevInsR3 = pDevIns; 1481 1480 pBus->pDevInsR0 = PDMDEVINS_2_R0PTR(pDevIns); 1482 1481 pBus->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns); 1483 1482 1483 PDMPCIBUSREG PciBusReg; 1484 1484 PciBusReg.u32Version = PDM_PCIBUSREG_VERSION; 1485 1485 PciBusReg.pfnRegisterR3 = pciRegister;
Note:
See TracChangeset
for help on using the changeset viewer.