Changeset 101200 in vbox for trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp
- Timestamp:
- Sep 20, 2023 2:14:26 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp
r101191 r101200 413 413 414 414 /* 415 * VGA. 416 */ 417 ComPtr<IGraphicsAdapter> pGraphicsAdapter; 418 hrc = pMachine->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam()); H(); 419 GraphicsControllerType_T enmGraphicsController; 420 hrc = pGraphicsAdapter->COMGETTER(GraphicsControllerType)(&enmGraphicsController); H(); 421 422 /* 415 423 * Devices 416 424 */ … … 482 490 InsertConfigInteger(pCfg, "MmioBase", 0x09020000); 483 491 InsertConfigInteger(pCfg, "DmaEnabled", 1); 484 InsertConfigInteger(pCfg, "QemuRamfbSupport", 0); 485 InsertConfigNode(pInst, "LUN#0", &pLunL0); 486 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 492 InsertConfigInteger(pCfg, "QemuRamfbSupport", enmGraphicsController == GraphicsControllerType_QemuRamFB ? 1 : 0); 493 if (enmGraphicsController == GraphicsControllerType_QemuRamFB) 494 { 495 InsertConfigNode(pInst, "LUN#0", &pLunL0); 496 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 497 } 487 498 488 499 vrc = RTFdtNodeAddF(hFdt, "fw-cfg@%RX32", 0x09020000); VRC(); … … 637 648 vrc = RTFdtNodeFinalize(hFdt); VRC(); 638 649 639 InsertConfigNode(pDevices, "vga", &pDev); 640 InsertConfigNode(pDev, "0", &pInst); 641 InsertConfigInteger(pInst, "Trusted", 1); 642 InsertConfigInteger(pInst, "PCIBusNo", 0); 643 InsertConfigInteger(pInst, "PCIDeviceNo", 2); 644 InsertConfigInteger(pInst, "PCIFunctionNo", 0); 645 InsertConfigNode(pInst, "Config", &pCfg); 646 InsertConfigInteger(pCfg, "VRamSize", 32 * _1M); 647 InsertConfigInteger(pCfg, "MonitorCount", 1); 648 i_attachStatusDriver(pInst, DeviceType_Graphics3D); 649 InsertConfigInteger(pCfg, "VMSVGAEnabled", true); 650 InsertConfigInteger(pCfg, "VMSVGAPciBarLayout", true); 651 InsertConfigInteger(pCfg, "VMSVGAPciId", true); 652 InsertConfigInteger(pCfg, "VMSVGA3dEnabled", false); 653 InsertConfigInteger(pCfg, "VmSvga3", true); 654 InsertConfigInteger(pCfg, "VmSvgaExposeLegacyVga", false); 655 656 /* Attach the display. */ 657 InsertConfigNode(pInst, "LUN#0", &pLunL0); 658 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 659 InsertConfigNode(pLunL0, "Config", &pCfg); 660 650 if ( enmGraphicsController != GraphicsControllerType_QemuRamFB 651 && enmGraphicsController != GraphicsControllerType_Null) 652 { 653 InsertConfigNode(pDevices, "vga", &pDev); 654 InsertConfigNode(pDev, "0", &pInst); 655 InsertConfigInteger(pInst, "Trusted", 1); 656 InsertConfigInteger(pInst, "PCIBusNo", 0); 657 InsertConfigInteger(pInst, "PCIDeviceNo", 2); 658 InsertConfigInteger(pInst, "PCIFunctionNo", 0); 659 InsertConfigNode(pInst, "Config", &pCfg); 660 InsertConfigInteger(pCfg, "VRamSize", 32 * _1M); 661 InsertConfigInteger(pCfg, "MonitorCount", 1); 662 i_attachStatusDriver(pInst, DeviceType_Graphics3D); 663 InsertConfigInteger(pCfg, "VMSVGAEnabled", true); 664 InsertConfigInteger(pCfg, "VMSVGAPciBarLayout", true); 665 InsertConfigInteger(pCfg, "VMSVGAPciId", true); 666 InsertConfigInteger(pCfg, "VMSVGA3dEnabled", false); 667 InsertConfigInteger(pCfg, "VmSvga3", true); 668 InsertConfigInteger(pCfg, "VmSvgaExposeLegacyVga", false); 669 670 /* Attach the display. */ 671 InsertConfigNode(pInst, "LUN#0", &pLunL0); 672 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 673 InsertConfigNode(pLunL0, "Config", &pCfg); 674 } 661 675 662 676 InsertConfigNode(pDevices, "VMMDev", &pDev);
Note:
See TracChangeset
for help on using the changeset viewer.