]> Git Repo - qemu.git/commitdiff
ppc_oldworld: configure screen size from qemu command line options
authorLaurent Vivier <[email protected]>
Sat, 8 Aug 2009 10:19:24 +0000 (10:19 +0000)
committerBlue Swirl <[email protected]>
Sat, 8 Aug 2009 10:19:24 +0000 (10:19 +0000)
This patch uses the FW_CFG interface to send user requested screen size
and depth to openbios.

Signed-off-by: Laurent Vivier <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
hw/ppc.h
hw/ppc_oldworld.c

index 2ec46803db915e78af2246f77d5647cbc83f1a9d..4084482e5b2a49de3dc27a95b3694cc6526ff98c 100644 (file)
--- a/hw/ppc.h
+++ b/hw/ppc.h
@@ -42,3 +42,6 @@ enum {
     ARCH_HEATHROW,
 };
 
+#define FW_CFG_PPC_WIDTH       (FW_CFG_ARCH_LOCAL + 0x00)
+#define FW_CFG_PPC_HEIGHT      (FW_CFG_ARCH_LOCAL + 0x01)
+#define FW_CFG_PPC_DEPTH       (FW_CFG_ARCH_LOCAL + 0x02)
index 06e014195ed6938810cc8ad7ffdb35fdc9ae4823..549ba0cde78933a90c6a10ad89df751b42cbc8bb 100644 (file)
@@ -381,6 +381,11 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
     fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_ADDR, initrd_base);
     fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_SIZE, initrd_size);
     fw_cfg_add_i16(fw_cfg, FW_CFG_BOOT_DEVICE, ppc_boot_device);
+
+    fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_WIDTH, graphic_width);
+    fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_HEIGHT, graphic_height);
+    fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_DEPTH, graphic_depth);
+
     qemu_register_boot_set(fw_cfg_boot_set, fw_cfg);
 }
 
This page took 0.029015 seconds and 4 git commands to generate.