[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 5/7] sysbus: Add new platform bus helper devi
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v3 5/7] sysbus: Add new platform bus helper device |
Date: |
Fri, 26 Sep 2014 14:05:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
Il 24/09/2014 17:22, Alexander Graf ha scritto:
> + if (!memory_region_is_mapped(sbdev_mr)) {
> + /* Region is not mapped? */
> + return -1;
> + }
> +
> + parent_mr = object_property_get_link(OBJECT(sbdev_mr), "container",
> NULL);
> +
> + assert(parent_mr);
> + if (parent_mr != pbus_mr_obj) {
> + /* MMIO region is not mapped on platform bus */
> + return -1;
> + }
> +
> + return object_property_get_int(OBJECT(sbdev_mr), "addr", NULL);
I think this should try going through the parent recursively until
reaching NULL (which would fail) or pbus_mr_obj.
Paolo
[Qemu-devel] [PATCH v3 2/7] sysbus: Make devices spawnable via -device, Alexander Graf, 2014/09/24
[Qemu-devel] [PATCH v3 3/7] sysbus: Expose IRQ enumeration helpers, Alexander Graf, 2014/09/24
[Qemu-devel] [PATCH v3 7/7] e500: Add support for eTSEC in device tree, Alexander Graf, 2014/09/24
Re: [Qemu-devel] [PATCH v3 0/7] Dynamic sysbus device allocation support, Paolo Bonzini, 2014/09/24