From patchwork Sun Nov 30 18:19:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 41721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E82824001 for ; Sun, 30 Nov 2014 18:20:07 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf5841222eek.8 for ; Sun, 30 Nov 2014 10:20:06 -0800 (PST) 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=FQ7EsHbOc42fN1WaRTb02zzcKBYzTIDN4Dwhfx7dfh1IFau8FEMECenoMq8NOWiWk7 DSABy7iB+UoPYuwniBXHE+ETg2NZehD/cRW52PWdCR2uViYiHXiZS13IiEMlyySq+PoI b3FFSWODwUpbTiWNVdqUYwrCTrBEG9VgQTqzQqapb5nRHB2MLkQ1lpV2ENSmT/f0o+7i NCqW4Blb8FeQhbnDPWEe214kXhHbj6qHgGAjWYPvkrPBCysmmEtW62ltTxCN9ogRRigE 9bHgDfThtzUnTjvDCEGOYfnBLqGfBj1wQTq1VwR1r1Z9U3NGJ7dw2euyAbs3rpU5klOA axNA== X-Gm-Message-State: ALoCoQnqpubR/agig1LiuHlLm5bw1z/KmJcFV3rS/GqgDhlCIUYnaZ8XGsgvqhNxApssumhWcv4m X-Received: by 10.112.89.195 with SMTP id bq3mr747103lbb.9.1417371606353; Sun, 30 Nov 2014 10:20:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.227 with SMTP id i3ls135926lae.28.gmail; Sun, 30 Nov 2014 10:20:06 -0800 (PST) X-Received: by 10.152.27.227 with SMTP id w3mr25239327lag.24.1417371606123; Sun, 30 Nov 2014 10:20:06 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id ll1si9663376lac.41.2014.11.30.10.20.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:20:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so7395411lbd.6 for ; Sun, 30 Nov 2014 10:20:06 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr51967769lbr.74.1417371606031; Sun, 30 Nov 2014 10:20:06 -0800 (PST) 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.184.201 with SMTP id ew9csp170837lbc; Sun, 30 Nov 2014 10:20:05 -0800 (PST) X-Received: by 10.194.2.105 with SMTP id 9mr22731891wjt.115.1417371605429; Sun, 30 Nov 2014 10:20:05 -0800 (PST) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com. [209.85.212.174]) by mx.google.com with ESMTPS id n1si8143219wix.100.2014.11.30.10.20.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id h11so22546990wiw.7 for ; Sun, 30 Nov 2014 10:20:05 -0800 (PST) X-Received: by 10.194.62.144 with SMTP id y16mr31578673wjr.117.1417371605182; Sun, 30 Nov 2014 10:20:05 -0800 (PST) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id ec2sm25092772wib.23.2014.11.30.10.20.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:20:04 -0800 (PST) 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, zhaoshenglong@huawei.com, ard.biesheuvel@linaro.org 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 v5 4/6] hw/arm: add a new modify_dtb_opaque field in arm_boot_info Date: Sun, 30 Nov 2014 18:19:28 +0000 Message-Id: <1417371570-11789-5-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1417371570-11789-1-git-send-email-eric.auger@linaro.org> References: <1417371570-11789-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.175 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);