From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xv96U-0004Tn-JO for qemu-devel@nongnu.org; Sun, 30 Nov 2014 13:20:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xv96L-00043o-SL for qemu-devel@nongnu.org; Sun, 30 Nov 2014 13:20:14 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:61811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xv96L-00042w-My for qemu-devel@nongnu.org; Sun, 30 Nov 2014 13:20:05 -0500 Received: by mail-wi0-f175.google.com with SMTP id l15so22540887wiw.14 for ; Sun, 30 Nov 2014 10:20:05 -0800 (PST) From: Eric Auger Date: Sun, 30 Nov 2014 18:19:28 +0000 Message-Id: <1417371570-11789-5-git-send-email-eric.auger@linaro.org> In-Reply-To: <1417371570-11789-1-git-send-email-eric.auger@linaro.org> References: <1417371570-11789-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [PATCH v5 4/6] hw/arm: add a new modify_dtb_opaque field in arm_boot_info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, agraf@suse.de, pbonzini@redhat.com, kim.phillips@freescale.com, a.rigo@virtualopensystems.com, manish.jaggi@caviumnetworks.com, joel.schopp@amd.com, zhaoshenglong@huawei.com, ard.biesheuvel@linaro.org Cc: peter.maydell@linaro.org, patches@linaro.org, eric.auger@linaro.org, will.deacon@arm.com, stuart.yoder@freescale.com, Bharat.Bhushan@freescale.com, alex.williamson@redhat.com, a.motakis@virtualopensystems.com, kvmarm@lists.cs.columbia.edu This field can be used by any modify_dtb() function to pass additional arguments requested to build the modified dtb. This is needed for creating the platform bus dynamic sysbus nodes. Signed-off-by: Eric Auger --- include/hw/arm/arm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hw/arm/arm.h b/include/hw/arm/arm.h index 5f1ecb7..ff776fa 100644 --- a/include/hw/arm/arm.h +++ b/include/hw/arm/arm.h @@ -68,6 +68,10 @@ struct arm_boot_info { hwaddr dtb_start; /* start address of the dtb */ hwaddr dtb_limit; /* upper RAM limit the dtb cannot overshoot */ hwaddr entry; + /* in case modify_dtb requires additional parameters to create the + * the new nodes, use following opaque + */ + void *modify_dtb_opaque; }; void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info); int arm_load_dtb(const struct arm_boot_info *binfo); -- 1.8.3.2