From patchwork Tue Jun 2 06:12:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 49346 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6323D218FC for ; Tue, 2 Jun 2015 06:12:20 +0000 (UTC) Received: by wibbk2 with SMTP id bk2sf28155439wib.2 for ; Mon, 01 Jun 2015 23:12:19 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=MQ3YEM9iWnVC6XrLIj61M6vaiBONxsLzNjuryPCEkVg=; b=Uvix5pwWtu227Y5UMlbHpaBm46CjoaxCy6RowgAHWsybrArA54vNE8HFzcdT+eyHQV +hHU64CX14N/lBA0ludXa7ie1KSv/IFruZTeQuoXLInmyHvoug5jUrYZvugc2oUM+Xcn 12gz3p/v2kSD2er07kH2LBZkhOk4llR5PxDXp/noJ5y7I5FueKEbR5E976KJyo2y252B 6rR4hra1Ar1YLDw1WQo+j5NaEJJFuKV/1I309Jv2lV5ZFUAWTtG2LgQAGC65E9PFaYiJ lxA7aMQE0r4Rzu+up94vq9ElDgKp8MNlUDIUkxsfVRG005HrrD7n69aXDFNGBaWXZKIk gDzA== X-Gm-Message-State: ALoCoQlZYMkdbQsG7rto0r5MUoTkv8QlW43IBh6of3kMO7CVelT4qBp5NLfXobc/bOCI/g6ZW4sJ X-Received: by 10.180.83.72 with SMTP id o8mr14977396wiy.3.1433225539719; Mon, 01 Jun 2015 23:12:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.130 with SMTP id ay2ls800667lab.89.gmail; Mon, 01 Jun 2015 23:12:19 -0700 (PDT) X-Received: by 10.152.164.193 with SMTP id ys1mr6239107lab.65.1433225539421; Mon, 01 Jun 2015 23:12:19 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id zn4si14213133lbb.103.2015.06.01.23.12.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 23:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by labpy14 with SMTP id py14so105837839lab.0 for ; Mon, 01 Jun 2015 23:12:19 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr24958404lab.35.1433225539136; Mon, 01 Jun 2015 23:12:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2818546lbb; Mon, 1 Jun 2015 23:12:18 -0700 (PDT) X-Received: by 10.70.53.99 with SMTP id a3mr47133854pdp.169.1433225537421; Mon, 01 Jun 2015 23:12:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si24854209pat.112.2015.06.01.23.12.16; Mon, 01 Jun 2015 23:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932223AbbFBGLs (ORCPT + 28 others); Tue, 2 Jun 2015 02:11:48 -0400 Received: from mga01.intel.com ([192.55.52.88]:22289 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755651AbbFBGLm (ORCPT ); Tue, 2 Jun 2015 02:11:42 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 01 Jun 2015 23:11:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,538,1427785200"; d="scan'208";a="739208648" Received: from gerry-dev.bj.intel.com ([10.238.158.61]) by orsmga002.jf.intel.com with ESMTP; 01 Jun 2015 23:11:39 -0700 From: Jiang Liu To: "Rafael J . Wysocki" , Bjorn Helgaas , Marc Zyngier , Hanjun Guo , Liviu Dudau , Yijing Wang , Catalin Marinas , Will Deacon Cc: Lv Zheng , "lenb @ kernel . org" , LKML , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, "x86 @ kernel . org" , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Lorenzo Pieralisi , Jiang Liu Subject: [Patch v4 5/8] ARM64/PCI/ACPI: Introduce struct pci_controller for ACPI Date: Tue, 2 Jun 2015 14:12:53 +0800 Message-Id: <1433225576-8215-6-git-send-email-jiang.liu@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1433225576-8215-1-git-send-email-jiang.liu@linux.intel.com> References: <1433225576-8215-1-git-send-email-jiang.liu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.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.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Hanjun Guo ARM64 ACPI based PCI host bridge init needs a arch dependent struct pci_controller to accommodate common PCI host bridge code which is introduced later, or it will lead to compile errors on ARM64. Signed-off-by: Hanjun Guo Tested-by: Suravee Suthikulpanit CC: Arnd Bergmann CC: Catalin Marinas CC: Liviu Dudau CC: Lorenzo Pieralisi CC: Will Deacon Signed-off-by: Jiang Liu --- arch/arm64/include/asm/pci.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pci.h b/arch/arm64/include/asm/pci.h index b008a72f8bc0..70884957f253 100644 --- a/arch/arm64/include/asm/pci.h +++ b/arch/arm64/include/asm/pci.h @@ -10,6 +10,16 @@ #include #include +struct acpi_device; + +struct pci_controller { +#ifdef CONFIG_ACPI + struct acpi_device *companion; /* ACPI companion device */ +#endif + int segment; /* PCI domain */ + int node; /* NUMA node */ +}; + #define PCIBIOS_MIN_IO 0x1000 #define PCIBIOS_MIN_MEM 0