1 #ifndef EDID_H 2 #define EDID_H 3 4 #include "hw/hw.h" 5 6 typedef struct qemu_edid_info { 7 const char *vendor; /* http://www.uefi.org/pnp_id_list */ 8 const char *name; 9 const char *serial; 10 uint32_t dpi; 11 uint32_t prefx; 12 uint32_t prefy; 13 uint32_t maxx; 14 uint32_t maxy; 15 } qemu_edid_info; 16 17 void qemu_edid_generate(uint8_t *edid, size_t size, 18 qemu_edid_info *info); 19 size_t qemu_edid_size(uint8_t *edid); 20 void qemu_edid_region_io(MemoryRegion *region, Object *owner, 21 uint8_t *edid, size_t size); 22 23 #define DEFINE_EDID_PROPERTIES(_state, _edid_info) \ 24 DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \ 25 DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0) 26 27 #endif /* EDID_H */ 28