Changeset 101574 in vbox
- Timestamp:
- Oct 24, 2023 8:27:38 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp
r101515 r101574 365 365 366 366 /* Add the resources. */ 367 PCFGMNODE pResources = NULL; /* /Devices/ efi-armv8/Config/Resources */368 PCFGMNODE pRes = NULL; /* /Devices/ efi-armv8/Config/Resources/<Resource> */367 PCFGMNODE pResources = NULL; /* /Devices/platform/Config/Resources */ 368 PCFGMNODE pRes = NULL; /* /Devices/platform/Config/Resources/<Resource> */ 369 369 InsertConfigString(pCfg, "ResourceNamespace", "resources"); 370 370 InsertConfigNode(pCfg, "Resources", &pResources); … … 397 397 InsertConfigString(pRes, "ResourceId", "VBoxArmV8Desc"); 398 398 399 vrc = RTFdtNodeAddF(hFdt, "platform-bus@%RX32", 0x0c000000); VRC(); 400 vrc = RTFdtNodePropertyAddU32( hFdt, "interrupt-parent", idPHandleIntCtrl); VRC(); 401 vrc = RTFdtNodePropertyAddCellsU32(hFdt, "ranges", 4, 0, 0, 0x0c000000, 0x02000000); VRC(); 402 vrc = RTFdtNodePropertyAddU32( hFdt, "#address-cells", 1); VRC(); 403 vrc = RTFdtNodePropertyAddU32( hFdt, "#size-cells", 1); VRC(); 404 vrc = RTFdtNodePropertyAddStringList(hFdt, "compatible", 2, 405 "qemu,platform", "simple-bus"); VRC(); 406 vrc = RTFdtNodeFinalize(hFdt); VRC(); 407 399 /* 400 * Configure the interrupt controller. 401 */ 408 402 InsertConfigNode(pDevices, "gic", &pDev); 409 403 InsertConfigNode(pDev, "0", &pInst); … … 438 432 vrc = RTFdtNodeFinalize(hFdt); VRC(); 439 433 440 441 InsertConfigNode(pDevices, "qemu-fw-cfg", &pDev);442 InsertConfigNode(pDev, "0", &pInst);443 InsertConfigNode(pInst, "Config", &pCfg);444 InsertConfigInteger(pCfg, "MmioSize", 4096);445 InsertConfigInteger(pCfg, "MmioBase", 0x09020000);446 InsertConfigInteger(pCfg, "DmaEnabled", 1);447 InsertConfigInteger(pCfg, "QemuRamfbSupport", enmGraphicsController == GraphicsControllerType_QemuRamFB ? 1 : 0);448 434 if (enmGraphicsController == GraphicsControllerType_QemuRamFB) 449 435 { 436 InsertConfigNode(pDevices, "qemu-fw-cfg", &pDev); 437 InsertConfigNode(pDev, "0", &pInst); 438 InsertConfigNode(pInst, "Config", &pCfg); 439 InsertConfigInteger(pCfg, "MmioSize", 4096); 440 InsertConfigInteger(pCfg, "MmioBase", 0x09020000); 441 InsertConfigInteger(pCfg, "DmaEnabled", 1); 442 InsertConfigInteger(pCfg, "QemuRamfbSupport", 1); 450 443 InsertConfigNode(pInst, "LUN#0", &pLunL0); 451 444 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 445 446 vrc = RTFdtNodeAddF(hFdt, "fw-cfg@%RX32", 0x09020000); VRC(); 447 vrc = RTFdtNodePropertyAddEmpty( hFdt, "dma-coherent"); VRC(); 448 vrc = RTFdtNodePropertyAddCellsU32(hFdt, "reg", 4, 0, 0x09020000, 0, 0x18); VRC(); 449 vrc = RTFdtNodePropertyAddString( hFdt, "compatible", "qemu,fw-cfg-mmio"); VRC(); 450 vrc = RTFdtNodeFinalize(hFdt); VRC(); 452 451 } 453 454 vrc = RTFdtNodeAddF(hFdt, "fw-cfg@%RX32", 0x09020000); VRC();455 vrc = RTFdtNodePropertyAddEmpty( hFdt, "dma-coherent"); VRC();456 vrc = RTFdtNodePropertyAddCellsU32(hFdt, "reg", 4, 0, 0x09020000, 0, 0x18); VRC();457 vrc = RTFdtNodePropertyAddString( hFdt, "compatible", "qemu,fw-cfg-mmio"); VRC();458 vrc = RTFdtNodeFinalize(hFdt); VRC();459 460 452 461 453 InsertConfigNode(pDevices, "flash-cfi", &pDev);
Note:
See TracChangeset
for help on using the changeset viewer.