[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/6] isa: add isa_bus_from_device() method
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 3/6] isa: add isa_bus_from_device() method |
Date: |
Sat, 14 Apr 2012 13:39:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0 |
Am 17.03.2012 15:39, schrieb Hervé Poussineau:
> 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);
Looks fairly trivial to me and builds fine.
Gerd, can you ack? I'll apply it to the PReP tree then.
Andreas
- Re: [Qemu-devel] [PATCH 3/6] isa: add isa_bus_from_device() method,
Andreas Färber <=