aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-06-10 18:05:06 +0300
committerGerd Hoffmann <kraxel@redhat.com>2012-06-22 10:49:45 +0200
commit13d1fd44c46629aad672f192abbf02238c6cbf36 (patch)
treefac6154a7602eb4ee39063ea693a3d55fc34504a /hw/qxl.h
parent4a1e244eb65c646bdd938d9d137ace42d76c95a7 (diff)
downloadqemu-13d1fd44c46629aad672f192abbf02238c6cbf36.zip
qemu-13d1fd44c46629aad672f192abbf02238c6cbf36.tar.gz
qemu-13d1fd44c46629aad672f192abbf02238c6cbf36.tar.bz2
qxl: add vgamem_size_mb and vgamem_size
In preperation for supporting a larger framebuffer for multiple monitors on a single card, add a property to qxl vgamem_size_mb, and corresponding byte sized vgamem_size, and use instead of VGA_RAM_SIZE. [ kraxel: simplify property handling, add sanity checks ] [ kraxel: fix mode copying ] Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qxl.h b/hw/qxl.h
index a4ab7cc..172baf6 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -84,6 +84,7 @@ typedef struct PCIQXLDevice {
QXLReleaseInfo *last_release;
uint32_t last_release_offset;
uint32_t oom_running;
+ uint32_t vgamem_size;
/* rom pci bar */
QXLRom shadow_rom;
@@ -105,6 +106,7 @@ typedef struct PCIQXLDevice {
uint32_t ram_size_mb;
uint32_t vram_size_mb;
uint32_t vram32_size_mb;
+ uint32_t vgamem_size_mb;
/* qxl_render_update state */
int render_update_cookie_num;