mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 11:43:46 +00:00

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>
17 lines
342 B
C
17 lines
342 B
C
#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
|