edbc4b24bb
"EMU" actually is "Emulex Corporation", so not a good idea to use that by default. Lets use the Red Hat vendor id instead, which is in line with the pci ids which are allocated from Red Hat vendor ids too. Vendor list is available from http://www.uefi.org/pnp_id_list Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20181005091934.12143-1-kraxel@redhat.com
28 lines
788 B
C
28 lines
788 B
C
#ifndef EDID_H
|
|
#define EDID_H
|
|
|
|
#include "hw/hw.h"
|
|
|
|
typedef struct qemu_edid_info {
|
|
const char *vendor; /* http://www.uefi.org/pnp_id_list */
|
|
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);
|
|
void qemu_edid_region_io(MemoryRegion *region, Object *owner,
|
|
uint8_t *edid, size_t size);
|
|
|
|
#define DEFINE_EDID_PROPERTIES(_state, _edid_info) \
|
|
DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \
|
|
DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0)
|
|
|
|
#endif /* EDID_H */
|