From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8unO-0000Rc-32 for qemu-devel@nongnu.org; Sat, 17 Mar 2012 10:39:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8unM-0003rI-C2 for qemu-devel@nongnu.org; Sat, 17 Mar 2012 10:39:49 -0400 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 17 Mar 2012 15:39:43 +0100 Message-Id: <1331995186-18507-4-git-send-email-hpoussin@reactos.org> In-Reply-To: <1331995186-18507-1-git-send-email-hpoussin@reactos.org> References: <1331995186-18507-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 3/6] isa: add isa_bus_from_device() method List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, =?UTF-8?q?Herv=C3=A9=20Poussineau?= Signed-off-by: Herv=C3=A9 Poussineau --- 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); =20 +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; =20 void isa_mmio_setup(MemoryRegion *mr, target_phys_addr_t size); --=20 1.7.9.1