xref: /openbmc/qemu/include/hw/i386/vmport.h (revision d8f23d61)
1 #ifndef HW_VMPORT_H
2 #define HW_VMPORT_H
3 
4 #include "hw/isa/isa.h"
5 
6 #define TYPE_VMPORT "vmport"
7 typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);
8 
9 static inline void vmport_init(ISABus *bus)
10 {
11     isa_create_simple(bus, TYPE_VMPORT);
12 }
13 
14 void vmport_register(unsigned char command, VMPortReadFunc *func, void *opaque);
15 
16 #endif
17