mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Sparc64: configure screen size from QEMU command line options
Configure the screen size from QEMU command line options using FW_CFG interface, like r538 for PPC. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@539 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -165,9 +165,9 @@ extern void outsw(u32 reg, const void *addr, unsigned long count);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_QEMU)
|
||||
#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)
|
||||
#define FW_CFG_ARCH_WIDTH (FW_CFG_ARCH_LOCAL + 0x00)
|
||||
#define FW_CFG_ARCH_HEIGHT (FW_CFG_ARCH_LOCAL + 0x01)
|
||||
#define FW_CFG_ARCH_DEPTH (FW_CFG_ARCH_LOCAL + 0x02)
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_IO_H */
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
#include "asm/types.h"
|
||||
|
||||
#define NO_QEMU_PROTOS
|
||||
#include "openbios/fw_cfg.h"
|
||||
|
||||
extern unsigned long va_shift; // Set in entry.S
|
||||
// Defined in ldscript
|
||||
extern char _start, _data, _stack, _estack, _end, _vmem, _evmem, _iomem;
|
||||
@@ -213,4 +216,11 @@ extern void outl(u32 reg, u32 val);
|
||||
extern void outsw(u32 reg, const void *addr, unsigned long count);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_QEMU)
|
||||
#define FW_CFG_ARCH_WIDTH (FW_CFG_ARCH_LOCAL + 0x00)
|
||||
#define FW_CFG_ARCH_HEIGHT (FW_CFG_ARCH_LOCAL + 0x01)
|
||||
#define FW_CFG_ARCH_DEPTH (FW_CFG_ARCH_LOCAL + 0x02)
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_IO_H */
|
||||
|
||||
Reference in New Issue
Block a user