diff options
author | Liran Alon <liran.alon@oracle.com> | 2020-03-12 18:54:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-10 12:09:45 -0400 |
commit | d8f23d619c495bc64977c00e92f3af4ff2c54046 (patch) | |
tree | 5e908e44fd293a411c04eab591dc1f934df71c49 /include/hw/i386 | |
parent | f8bdc550370f9a652a00db891f9b7640d83c0c43 (diff) | |
download | qemu-d8f23d619c495bc64977c00e92f3af4ff2c54046.zip qemu-d8f23d619c495bc64977c00e92f3af4ff2c54046.tar.gz qemu-d8f23d619c495bc64977c00e92f3af4ff2c54046.tar.bz2 |
hw/i386/vmport: Introduce vmport.h
No functional change. This is mere refactoring.
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200312165431.82118-8-liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/i386')
-rw-r--r-- | include/hw/i386/vmport.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hw/i386/vmport.h b/include/hw/i386/vmport.h new file mode 100644 index 0000000..efbe3e0 --- /dev/null +++ b/include/hw/i386/vmport.h @@ -0,0 +1,16 @@ +#ifndef HW_VMPORT_H +#define HW_VMPORT_H + +#include "hw/isa/isa.h" + +#define TYPE_VMPORT "vmport" +typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address); + +static inline void vmport_init(ISABus *bus) +{ + isa_create_simple(bus, TYPE_VMPORT); +} + +void vmport_register(unsigned char command, VMPortReadFunc *func, void *opaque); + +#endif |