Changeset 10372 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 8, 2008 2:14:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r9809 r10372 319 319 320 320 /* 321 * ACPI322 */323 BOOL fACPI;324 hrc = biosSettings->COMGETTER(ACPIEnabled)(&fACPI); H();325 if (fACPI)326 {327 rc = CFGMR3InsertNode(pDevices, "acpi", &pDev); RC_CHECK();328 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK();329 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK();330 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK();331 rc = CFGMR3InsertInteger(pCfg, "RamSize", cRamMBs * _1M); RC_CHECK();332 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK();333 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 7); RC_CHECK();334 Assert(!afPciDeviceNo[7]);335 afPciDeviceNo[7] = true;336 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK();337 338 rc = CFGMR3InsertNode(pInst, "LUN#0", &pLunL0); RC_CHECK();339 rc = CFGMR3InsertString(pLunL0, "Driver", "ACPIHost"); RC_CHECK();340 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK();341 }342 343 /*344 321 * DMA 345 322 */ … … 392 369 ComPtr<IFloppyDrive> floppyDrive; 393 370 hrc = pMachine->COMGETTER(FloppyDrive)(floppyDrive.asOutParam()); H(); 394 BOOL fF loppyEnabled;395 hrc = floppyDrive->COMGETTER(Enabled)(&fF loppyEnabled);H();396 if (fF loppyEnabled)371 BOOL fFdcEnabled; 372 hrc = floppyDrive->COMGETTER(Enabled)(&fFdcEnabled); H(); 373 if (fFdcEnabled) 397 374 { 398 375 rc = CFGMR3InsertNode(pDevices, "i82078", &pDev); RC_CHECK(); … … 456 433 } 457 434 } 435 } 436 437 /* 438 * ACPI 439 */ 440 BOOL fACPI; 441 hrc = biosSettings->COMGETTER(ACPIEnabled)(&fACPI); H(); 442 if (fACPI) 443 { 444 rc = CFGMR3InsertNode(pDevices, "acpi", &pDev); RC_CHECK(); 445 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); 446 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 447 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 448 rc = CFGMR3InsertInteger(pCfg, "RamSize", cRamMBs * _1M); RC_CHECK(); 449 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK(); 450 rc = CFGMR3InsertInteger(pCfg, "FdcEnabled", fFdcEnabled); RC_CHECK(); 451 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 7); RC_CHECK(); 452 Assert(!afPciDeviceNo[7]); 453 afPciDeviceNo[7] = true; 454 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 455 456 rc = CFGMR3InsertNode(pInst, "LUN#0", &pLunL0); RC_CHECK(); 457 rc = CFGMR3InsertString(pLunL0, "Driver", "ACPIHost"); RC_CHECK(); 458 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 458 459 } 459 460
Note:
See TracChangeset
for help on using the changeset viewer.