diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2021-10-07 23:12:48 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-10-08 13:31:03 +0200 |
commit | 4317c518618adcd5d41637c849be17e94cecf003 (patch) | |
tree | 2a493d478cbe6672666903dfee5b552e5bc69905 /include | |
parent | e6108b96363bda0704ca69e5dfdb4b07dc589336 (diff) | |
download | qemu-4317c518618adcd5d41637c849be17e94cecf003.zip qemu-4317c518618adcd5d41637c849be17e94cecf003.tar.gz qemu-4317c518618adcd5d41637c849be17e94cecf003.tar.bz2 |
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')
-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 febf4ce..e95a97e 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; |