#ifndef VM_BUS_H # define VM_BUS_H 1 # include # include typedef int (*BusRead)(uint32_t addr, void *data, size_t sz); typedef int (*BusWrite)(uint32_t addr, const void *data, size_t sz); typedef struct { BusRead read; BusWrite write; } Bus; #endif /* !VM_BUS_H */