From patchwork Fri Oct 31 13:53:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 39897 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A485E202FE for ; Fri, 31 Oct 2014 13:53:55 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf4213540lbj.7 for ; Fri, 31 Oct 2014 06:53:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=cQxww01Tx5zAfadP1tcjrckqXBK4ao3bmFvKZ9V97mg=; b=d3qeZAQUzve5dNtbIWYDneBfxWiLRPko+u489ZUvHM8ZumdCsarQfwd6I0QR1NjtLk p/bxVOOgpUn+zxSdrdqqc+A4bcLnJ5U6JbCEFe5AVHwiJk5GX0G8ygOurjYOO0mNA8O6 5cRqQRIIDwlCNkJX9SOu1QT9ueXQMkXrSjFkXLzTchIjwUc9/LB7I+O+/10+aadNnlqy +un7EK4reT4dGOXTB2WuoFjv4fx17UgTk1lkYFS69LGanptRTS6FnVjr7nGvaxx4Jj0Z rK91ctMMJ0DN0sJCxDvjPU/57JHm/1b/jDusALzd5ICbsLgYHp4BNZOMqnD+C2gzTSLD z21w== X-Gm-Message-State: ALoCoQlVWPr6DrGwNpt69m2LG9Isp9O0VVcf2h2Le446AqbGYHy71WGsQ9urHenXJE+Eql1sminS X-Received: by 10.180.74.196 with SMTP id w4mr156417wiv.7.1414763634484; Fri, 31 Oct 2014 06:53:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls400665lah.18.gmail; Fri, 31 Oct 2014 06:53:54 -0700 (PDT) X-Received: by 10.152.28.134 with SMTP id b6mr27159287lah.12.1414763634309; Fri, 31 Oct 2014 06:53:54 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id n1si16866238lbc.10.2014.10.31.06.53.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 06:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id z11so4204817lbi.33 for ; Fri, 31 Oct 2014 06:53:53 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr26199524lbc.23.1414763633406; Fri, 31 Oct 2014 06:53:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.84.229 with SMTP id c5csp205539lbz; Fri, 31 Oct 2014 06:53:52 -0700 (PDT) X-Received: by 10.194.81.6 with SMTP id v6mr27586917wjx.39.1414763632749; Fri, 31 Oct 2014 06:53:52 -0700 (PDT) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com. [74.125.82.41]) by mx.google.com with ESMTPS id lv10si14215457wjb.131.2014.10.31.06.53.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 06:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.41 as permitted sender) client-ip=74.125.82.41; Received: by mail-wg0-f41.google.com with SMTP id k14so6569556wgh.28 for ; Fri, 31 Oct 2014 06:53:52 -0700 (PDT) X-Received: by 10.180.92.169 with SMTP id cn9mr4121791wib.26.1414763632523; Fri, 31 Oct 2014 06:53:52 -0700 (PDT) Received: from midway01-04-00.lavalab ([88.98.47.97]) by mx.google.com with ESMTPSA id w13sm12167570wjq.29.2014.10.31.06.53.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 06:53:52 -0700 (PDT) From: Eric Auger 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: eric.auger@linaro.org, kvmarm@lists.cs.columbia.edu, patches@linaro.org, alex.williamson@redhat.com, peter.maydell@linaro.org, will.deacon@arm.com, Bharat.Bhushan@freescale.com, stuart.yoder@freescale.com, a.motakis@virtualopensystems.com Subject: [PATCH v4 4/6] hw/arm: add a new modify_dtb_opaque field in arm_boot_info Date: Fri, 31 Oct 2014 13:53:30 +0000 Message-Id: <1414763612-4939-5-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1414763612-4939-1-git-send-email-eric.auger@linaro.org> References: <1414763612-4939-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);