diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:19:53 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:47 +0200 |
commit | db10ca9057b11222408f708d5d99a3888eca4feb (patch) | |
tree | 7900437ac9fa0a1fd3d85073bccc988c588cd7c8 /include/exec/ioport.h | |
parent | 3cd2cf4375993494bcf6195c1637a3d009aa6fae (diff) |
piolist: add owner argument to initialization functions and pass devices
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/ioport.h')
-rw-r--r-- | include/exec/ioport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/exec/ioport.h b/include/exec/ioport.h index 6fb237d03e..bdd4e964eb 100644 --- a/include/exec/ioport.h +++ b/include/exec/ioport.h @@ -25,6 +25,7 @@ #define IOPORT_H #include "qemu-common.h" +#include "qom/object.h" #include "exec/memory.h" typedef uint32_t pio_addr_t; @@ -53,6 +54,7 @@ uint32_t cpu_inl(pio_addr_t addr); typedef struct PortioList { const struct MemoryRegionPortio *ports; + Object *owner; struct MemoryRegion *address_space; unsigned nr; struct MemoryRegion **regions; @@ -60,7 +62,7 @@ typedef struct PortioList { const char *name; } PortioList; -void portio_list_init(PortioList *piolist, +void portio_list_init(PortioList *piolist, Object *owner, const struct MemoryRegionPortio *callbacks, void *opaque, const char *name); void portio_list_destroy(PortioList *piolist); |