diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-25 09:56:45 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-27 08:07:51 +0200 |
commit | 06510b899fbb43a709ddb5ba04610efa7fbef13b (patch) | |
tree | efc682be26d0855137f382ea12039d2b873fa76c /include/hw/display | |
parent | 97917e9e02e04bbb5f3b14c0f2b58913ef5f09d2 (diff) |
display/edid: add DEFINE_EDID_PROPERTIES
Add a define for edid monitor properties.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180925075646.25114-5-kraxel@redhat.com
Diffstat (limited to 'include/hw/display')
-rw-r--r-- | include/hw/display/edid.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |