1 #include "qemu/osdep.h"
2 #include "exec/memory.h"
3 #include "hw/display/edid.h"
5 static uint64_t edid_region_read(void *ptr
, hwaddr addr
, unsigned size
)
12 static void edid_region_write(void *ptr
, hwaddr addr
,
13 uint64_t val
, unsigned size
)
18 static const MemoryRegionOps edid_region_ops
= {
19 .read
= edid_region_read
,
20 .write
= edid_region_write
,
21 .valid
.min_access_size
= 1,
22 .valid
.max_access_size
= 4,
23 .impl
.min_access_size
= 1,
24 .impl
.max_access_size
= 1,
25 .endianness
= DEVICE_LITTLE_ENDIAN
,
28 void qemu_edid_region_io(MemoryRegion
*region
, Object
*owner
,
29 uint8_t *edid
, size_t size
)
31 memory_region_init_io(region
, owner
, &edid_region_ops
,