diff options
author | Mark Cave-Ayland | 2021-10-08 00:12:48 +0200 |
---|---|---|
committer | Laurent Vivier | 2021-10-08 13:31:03 +0200 |
commit | 4317c518618adcd5d41637c849be17e94cecf003 (patch) | |
tree | 2a493d478cbe6672666903dfee5b552e5bc69905 /include/hw | |
parent | macfb: implement mode sense to allow display type to be detected (diff) | |
download | qemu-4317c518618adcd5d41637c849be17e94cecf003.tar.gz qemu-4317c518618adcd5d41637c849be17e94cecf003.tar.xz qemu-4317c518618adcd5d41637c849be17e94cecf003.zip |
macfb: add qdev property to specify display type
Since the available resolutions and colour depths are determined by the attached
display type, add a qdev property to allow the display type to be specified.
The main resolutions of interest are high resolution 1152x870 with 8-bit colour
and SVGA resolution up to 800x600 with 24-bit colour so update the q800 machine
to allow high resolution mode if specified and otherwise fall back to SVGA.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211007221253.29024-9-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/display/macfb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/display/macfb.h b/include/hw/display/macfb.h index febf4ce0e8..e95a97ebdc 100644 --- a/include/hw/display/macfb.h +++ b/include/hw/display/macfb.h @@ -46,6 +46,7 @@ typedef struct MacfbState { uint8_t color_palette[256 * 3]; uint32_t width, height; /* in pixels */ uint8_t depth; + uint8_t type; uint32_t sense; } MacfbState; |