[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 3/6] isa: add isa_bus_from_device() method
From: |
Hervé Poussineau |
Subject: |
[Qemu-ppc] [PATCH 3/6] isa: add isa_bus_from_device() method |
Date: |
Sat, 17 Mar 2012 15:39:43 +0100 |
Signed-off-by: Hervé Poussineau <address@hidden>
---
hw/isa.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/isa.h b/hw/isa.h
index 40373fb..f7bc4b5 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -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);
--
1.7.9.1
[Qemu-ppc] [PATCH 3/6] isa: add isa_bus_from_device() method,
Hervé Poussineau <=
[Qemu-ppc] [PATCH 2/6] prep: change default cpu to '7448', Hervé Poussineau, 2012/03/17
[Qemu-ppc] [PATCH 4/6] fdc: Parametrize ISA base, IRQ and DMA, Hervé Poussineau, 2012/03/17
[Qemu-ppc] [PATCH 5/6] prep: add pc87312 Super I/O emulation, Hervé Poussineau, 2012/03/17
[Qemu-ppc] [PATCH 6/6] prep: use pc87312 Super I/O chip instead of collection of random ISA devices, Hervé Poussineau, 2012/03/17