projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97917e9
)
display/edid: add DEFINE_EDID_PROPERTIES
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 25 Sep 2018 07:56:45 +0000
(09:56 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 27 Sep 2018 06:07:51 +0000
(08:07 +0200)
Add a define for edid monitor properties.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id:
20180925075646
.25114-5-kraxel@redhat.com
include/hw/display/edid.h
patch
|
blob
|
history
diff --git
a/include/hw/display/edid.h
b/include/hw/display/edid.h
index b7fe56a958553a2ef5e2855e522a811b2ce6e387..bd51d26916a1ce8a41c39440942b4a615d9ab486 100644
(file)
--- 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 */