From patchwork Tue May 26 12:49:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 6479641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9CA6D9F38C for ; Tue, 26 May 2015 12:52:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C717E20497 for ; Tue, 26 May 2015 12:52:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0F8120439 for ; Tue, 26 May 2015 12:52:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxEJb-0004NF-Kq; Tue, 26 May 2015 12:50:39 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxEJT-0004HX-Vt for linux-arm-kernel@lists.infradead.org; Tue, 26 May 2015 12:50:32 +0000 Received: by paza2 with SMTP id a2so83014714paz.3 for ; Tue, 26 May 2015 05:50:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gqbnXMdLFt2/rmshF2Q1aUR0zYTwVxRmXvJDxBqbV6w=; b=HoH2NF84QE5+rvVnAD+HC4k+swlxoCP9cR4wDTX2WCvRD0r36R5cRdkd03Gd+5IpvT +1wfVehKN3LMB/BQMqqnVYIr3R3ZZqIXfCgZNIHBI5DoH/HJhVrXeKmD8TDS+O3xyzAx mau/1FOkNA3CutenYwCsocC4d6wwkBhF/luKzJyiO+kdnTWBzA8JXnIJqFmYoANU1fch 60wfBjxi4OSSKycGD/tMdDOZnqa6LzIO/N8CpO8LD2O/qPnDNGo5DU8wKLO1j3wmAGUu kkQtAkz1WW3JqCm8dMskvtVmfHyVQF74MbJ/yEBQBza6s3IVpcxnerrcKbHTP3ZD+d13 8JXA== X-Gm-Message-State: ALoCoQlGCyR2qO3s0PZQnuquVpkMtqB7aDzvwaHjBhy27r88eJomibV2OhMJWqPl1NJv4rnF1hJD X-Received: by 10.70.128.34 with SMTP id nl2mr23239621pdb.43.1432644610104; Tue, 26 May 2015 05:50:10 -0700 (PDT) Received: from localhost ([180.150.153.56]) by mx.google.com with ESMTPSA id i10sm3986524pdr.78.2015.05.26.05.50.08 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 26 May 2015 05:50:09 -0700 (PDT) From: Hanjun Guo To: Bjorn Helgaas , Arnd Bergmann , Catalin Marinas , Will Deacon , "Rafael J. Wysocki" Subject: [PATCH 01/11] ARM64 / PCI: introduce struct pci_controller for ACPI Date: Tue, 26 May 2015 20:49:14 +0800 Message-Id: <1432644564-24746-2-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432644564-24746-1-git-send-email-hanjun.guo@linaro.org> References: <1432644564-24746-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150526_055032_130680_FF75CAF9 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Lorenzo Pieralisi , linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, Liviu Dudau , linux-kernel@vger.kernel.org, Tomasz Nowicki , linux-acpi@vger.kernel.org, Hanjun Guo , Suravee Suthikulpanit , Mark Salter , Yijing Wang , Thomas Gleixner , Jiang Liu , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 b008a72..7088495 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