mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
committed by
Andreas Färber
parent
c9ae703dd1
commit
a527b5452e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user