Fix build with new yank feature by adding stubs
[qemu/kevin.git] / hw / display / edid-region.c
blob675429dc18bb7244e1f04f89fdfcfe57cc63b7ec
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)
7 uint8_t *edid = ptr;
9 return edid[addr];
12 static void edid_region_write(void *ptr, hwaddr addr,
13 uint64_t val, unsigned size)
15 /* read only */
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,
32 edid, "edid", size);