[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/7] display/edid: add DEFINE_EDID_PROPERTIES
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 4/7] display/edid: add DEFINE_EDID_PROPERTIES |
Date: |
Thu, 27 Sep 2018 09:12:44 +0200 |
Add a define for edid monitor properties.
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden
---
include/hw/display/edid.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/hw/display/edid.h b/include/hw/display/edid.h
index b7fe56a958..bd51d26916 100644
--- a/include/hw/display/edid.h
+++ b/include/hw/display/edid.h
@@ -20,4 +20,8 @@ size_t qemu_edid_size(uint8_t *edid);
void qemu_edid_region_io(MemoryRegion *region, Object *owner,
uint8_t *edid, size_t size);
+#define DEFINE_EDID_PROPERTIES(_state, _edid_info) \
+ DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \
+ DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0)
+
#endif /* EDID_H */
--
2.9.3
- [Qemu-devel] [PULL 0/7] Vga 20180927 patches, Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 6/7] qxl: use guest_monitor_config for local renderer., Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 4/7] display/edid: add DEFINE_EDID_PROPERTIES,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 2/7] display/edid: add qemu_edid_size(), Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 3/7] display/edid: add region helper., Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 7/7] qxl: support mono cursors with inverted colors, Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 1/7] display/edid: add edid generator to qemu., Gerd Hoffmann, 2018/09/27
- [Qemu-devel] [PULL 5/7] display/stdvga: add edid support., Gerd Hoffmann, 2018/09/27