hw/hw.h used to include headers hardware emulation "usually" needs. The previous commits removed all but one of them, to good effect. Only qom/object.h is left. Remove that one, too. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190812052359.30071-18-armbru@redhat.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			924 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			924 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef EDID_H
 | |
| #define EDID_H
 | |
| 
 | |
| #include "qom/object.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),    \
 | |
|     DEFINE_PROP_UINT32("xmax", _state, _edid_info.maxx, 0),     \
 | |
|     DEFINE_PROP_UINT32("ymax", _state, _edid_info.maxy, 0)
 | |
| 
 | |
| #endif /* EDID_H */
 |