From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkDhK-0001aO-1Q for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkCeH-0006OE-Fe for qemu-devel@nongnu.org; Fri, 31 Oct 2014 09:53:59 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:39781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkCeH-0006NV-9g for qemu-devel@nongnu.org; Fri, 31 Oct 2014 09:53:53 -0400 Received: by mail-wi0-f180.google.com with SMTP id hi2so1379156wib.1 for ; Fri, 31 Oct 2014 06:53:52 -0700 (PDT) From: Eric Auger Date: Fri, 31 Oct 2014 13:53:30 +0000 Message-Id: <1414763612-4939-5-git-send-email-eric.auger@linaro.org> In-Reply-To: <1414763612-4939-1-git-send-email-eric.auger@linaro.org> References: <1414763612-4939-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [PATCH v4 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 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