From patchwork Fri Aug 8 15:03:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 35138 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 390332118A for ; Fri, 8 Aug 2014 15:04:24 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id r2sf4289989igi.8 for ; Fri, 08 Aug 2014 08:04:23 -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=36LjPsgtB4eOUJamONUr3X0SaIKKLqhYAjA56nQFgFs=; b=j5Y6UPcIotrNcbXXagVMsT4HTJYaoOZTvA2QXRF81s85g7twL+iriyDFh4irIjaqoJ AoL4Uw1qQ+nCvzAjXvmSq6O3IsTg9lQSUh6p/+3pRjzwsjTERA1ihYXDuuvzXZCbCLSY 3CZ4Sd9QTnDvsPc5ES8vfMMSkqT+4YCetD4NM3HtOuzFk1MNdF2KRqdTz8r4pJNpyi+R h1hT6IU76xQx+/XX3/bTGMrFacClC7EHw43oRs+82UdU0C67w+9lGgrQmnKdKprblkCv 9qZnRNMBXQzHKVpmVgEYAvbyBk2aarox8RsdzrnRXkfzNXRVwKWy/7wB4SS1T/PmraJJ W1zw== X-Gm-Message-State: ALoCoQlRMWq4pVDDRxHePtdaaUPgPBq9CJ3/0B5S3r2xfHE6bR30W12I5x+CIPWWYqfeyUEgQVj5 X-Received: by 10.42.10.66 with SMTP id p2mr5337085icp.28.1407510263539; Fri, 08 Aug 2014 08:04:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.197 with SMTP id d63ls577432qgd.82.gmail; Fri, 08 Aug 2014 08:04:23 -0700 (PDT) X-Received: by 10.52.248.42 with SMTP id yj10mr1783718vdc.50.1407510263441; Fri, 08 Aug 2014 08:04:23 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id fb5si2972000veb.39.2014.08.08.08.04.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 08:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so8395517vcb.21 for ; Fri, 08 Aug 2014 08:04:23 -0700 (PDT) X-Received: by 10.52.94.108 with SMTP id db12mr7134401vdb.8.1407510263354; Fri, 08 Aug 2014 08:04:23 -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.221.37.5 with SMTP id tc5csp130661vcb; Fri, 8 Aug 2014 08:04:22 -0700 (PDT) X-Received: by 10.194.110.7 with SMTP id hw7mr32830771wjb.38.1407510261750; Fri, 08 Aug 2014 08:04:21 -0700 (PDT) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx.google.com with ESMTPS id h6si3598906wij.48.2014.08.08.08.04.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 08:04:21 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.46 as permitted sender) client-ip=74.125.82.46; Received: by mail-wg0-f46.google.com with SMTP id m15so5709807wgh.29 for ; Fri, 08 Aug 2014 08:04:21 -0700 (PDT) X-Received: by 10.180.97.102 with SMTP id dz6mr4682607wib.61.1407510261218; Fri, 08 Aug 2014 08:04:21 -0700 (PDT) Received: from midway01-04-00.lavalab ([88.98.47.97]) by mx.google.com with ESMTPSA id ko8sm17950604wjc.11.2014.08.08.08.04.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 08:04:20 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, kim.phillips@freescale.com, a.rigo@virtualopensystems.com Cc: eric.auger@linaro.org, will.deacon@arm.com, kvmarm@lists.cs.columbia.edu, alex.williamson@redhat.com, Bharat.Bhushan@freescale.com, agraf@suse.de, peter.maydell@linaro.org, stuart.yoder@freescale.com, a.motakis@virtualopensystems.com, patches@linaro.org Subject: [RFC v2 5/7] hw/arm/boot: load_dtb becomes non static Date: Fri, 8 Aug 2014 16:03:47 +0100 Message-Id: <1407510229-28167-6-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1407510229-28167-1-git-send-email-eric.auger@linaro.org> References: <1407510229-28167-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.220.176 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: , load_dtb will be used by machvirt for dynamic instantiation of platform devices Signed-off-by: Eric Auger --- hw/arm/boot.c | 2 +- include/hw/arm/arm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 1241761..53b43e8 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -312,7 +312,7 @@ static void set_kernel_args_old(const struct arm_boot_info *info) } } -static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo) +int load_dtb(hwaddr addr, const struct arm_boot_info *binfo) { void *fdt = NULL; int size, rc; diff --git a/include/hw/arm/arm.h b/include/hw/arm/arm.h index cbbf4ca..fe58dc0 100644 --- a/include/hw/arm/arm.h +++ b/include/hw/arm/arm.h @@ -68,6 +68,7 @@ struct arm_boot_info { hwaddr entry; }; void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info); +int load_dtb(hwaddr addr, const struct arm_boot_info *binfo); /* Multiplication factor to convert from system clock ticks to qemu timer ticks. */