aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-09-25 09:56:43 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-09-27 08:07:51 +0200
commite7992fc5a002003ae865685ad4635b952c1ca9bf (patch)
tree4c814ddd0f854ea605de4b3911575f9a068d1383 /include/hw
parent72d277a70e8b2d4eb1b3667ab934fb1fecf41410 (diff)
display/edid: add qemu_edid_size()
Helper function to figure the size of a edid blob, by checking how many extensions are present. Both the base edid blob and the extensions are 128 bytes in size. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180925075646.25114-3-kraxel@redhat.com
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/display/edid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/display/edid.h b/include/hw/display/edid.h
index 63b60015c3..96910ada0f 100644
--- a/include/hw/display/edid.h
+++ b/include/hw/display/edid.h
@@ -14,5 +14,6 @@ typedef struct qemu_edid_info {
void qemu_edid_generate(uint8_t *edid, size_t size,
qemu_edid_info *info);
+size_t qemu_edid_size(uint8_t *edid);
#endif /* EDID_H */