monitor/hmp: move hmp_drive_mirror and hmp_drive_backup to block-hmp-cmds.c
[qemu/ar7.git] / include / hw / display / edid.h
blobff99dc0a052b9f5e98f4a349ec2ede6545c2632c
1 #ifndef EDID_H
2 #define EDID_H
4 #include "qom/object.h"
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;
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);
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 DEFINE_PROP_UINT32("xmax", _state, _edid_info.maxx, 0), \
27 DEFINE_PROP_UINT32("ymax", _state, _edid_info.maxy, 0)
29 #endif /* EDID_H */