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: 6479671 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7BA9C0020 for ; Tue, 26 May 2015 12:53:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F35E2204A7 for ; Tue, 26 May 2015 12:53:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F8082061F for ; Tue, 26 May 2015 12:53:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753021AbbEZMxD (ORCPT ); Tue, 26 May 2015 08:53:03 -0400 Received: from [209.85.220.44] ([209.85.220.44]:34343 "EHLO mail-pa0-f44.google.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752984AbbEZMxA (ORCPT ); Tue, 26 May 2015 08:53:00 -0400 Received: by pabru16 with SMTP id ru16so92221519pab.1 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=eI0B3a2To1qdB7EAj4AzEMydvse11XJYzGOTDDq1cpwsLJnWv5aF4bFa2AwjqKPRhU PjhhhBNNScdHLGVVx0ewVN291EOXGnvMdvvBxoXPnrWKn73TjAvg2O8H06FGJAjKlGoz Q5yhJb78TymdmD1UieIxkGfAbnV+3iCI7qrKbAjIhCRzkGEko/oZ3xGX5kgx4P0FO5B4 xwGNr7LeEMknvkX1/433d5pdjoTMuFdNebKGxQ46B94pFEmiDoRFhg8GHgEOxD6LHd7r WI40QMmFVuZxSg1pEJWb181zybdgxYgnlPkmcfsM+Doc9QmkvOS2CJo7K88K5oQB+3ii nsig== X-Gm-Message-State: ALoCoQnE99n/SVHqSA/L63jQuiFfxE3dokAzElGkB5t/tYuQc3vi0qnf480vAFGcpQO+AKvVRmXn 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" Cc: Jiang Liu , Liviu Dudau , Thomas Gleixner , Yijing Wang , Lorenzo Pieralisi , Tomasz Nowicki , Suravee Suthikulpanit , Mark Salter , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo 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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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