mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00

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
19 lines
421 B
C
19 lines
421 B
C
#ifndef EDID_H
|
|
#define EDID_H
|
|
|
|
typedef struct qemu_edid_info {
|
|
const char *vendor;
|
|
const char *name;
|
|
const char *serial;
|
|
uint32_t dpi;
|
|
uint32_t prefx;
|
|
uint32_t prefy;
|
|
uint32_t maxx;
|
|
uint32_t maxy;
|
|
} 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 */
|