diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2012-03-17 15:39:43 +0100 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2012-04-28 20:51:54 +0200 |
commit | a527b5452eb6bb7ee00c940c450e592f0b448042 (patch) | |
tree | b4af6e2d2a0b3515eabbbee644ffae9db7e31520 /hw/isa.h | |
parent | c9ae703dd16f7ada889e88127a5e60527a62a005 (diff) | |
download | qemu-a527b5452eb6bb7ee00c940c450e592f0b448042.tar.gz qemu-a527b5452eb6bb7ee00c940c450e592f0b448042.tar.bz2 qemu-a527b5452eb6bb7ee00c940c450e592f0b448042.zip |
isa: Add isa_bus_from_device() method
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'hw/isa.h')
-rw-r--r-- | hw/isa.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -76,6 +76,11 @@ void isa_register_portio_list(ISADevice *dev, uint16_t start, const MemoryRegionPortio *portio, void *opaque, const char *name); +static inline ISABus *isa_bus_from_device(ISADevice *d) +{ + return DO_UPCAST(ISABus, qbus, d->qdev.parent_bus); +} + extern target_phys_addr_t isa_mem_base; void isa_mmio_setup(MemoryRegion *mr, target_phys_addr_t size); |