提交 a527b545 编写于 作者: H Hervé Poussineau 提交者: Andreas Färber

isa: Add isa_bus_from_device() method

Signed-off-by: NHervé Poussineau <hpoussin@reactos.org>
Acked-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAndreas Färber <andreas.faerber@web.de>
上级 c9ae703d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册