MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / display / edid.h
blob5b1de57f24f90fed72320d93e5d243bd33436378
1 #ifndef EDID_H
2 #define EDID_H
4 typedef struct qemu_edid_info {
5 const char *vendor; /* http://www.uefi.org/pnp_id_list */
6 const char *name;
7 const char *serial;
8 uint32_t dpi;
9 uint32_t prefx;
10 uint32_t prefy;
11 uint32_t maxx;
12 uint32_t maxy;
13 } qemu_edid_info;
15 void qemu_edid_generate(uint8_t *edid, size_t size,
16 qemu_edid_info *info);
17 size_t qemu_edid_size(uint8_t *edid);
18 void qemu_edid_region_io(MemoryRegion *region, Object *owner,
19 uint8_t *edid, size_t size);
21 #define DEFINE_EDID_PROPERTIES(_state, _edid_info) \
22 DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \
23 DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0), \
24 DEFINE_PROP_UINT32("xmax", _state, _edid_info.maxx, 0), \
25 DEFINE_PROP_UINT32("ymax", _state, _edid_info.maxy, 0)
27 #endif /* EDID_H */