From patchwork Tue Mar 15 07:33:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell Currey X-Patchwork-Id: 597385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qPRPj2rxtz9ssP for ; Tue, 15 Mar 2016 18:41:13 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3qPRPj25JzzDr3d for ; Tue, 15 Mar 2016 18:41:13 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from russell.cc (russell.cc [IPv6:2404:9400:2:0:216:3eff:fee0:3370]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qPRPH6NfnzDqyg for ; Tue, 15 Mar 2016 18:40:51 +1100 (AEDT) Received: from snap.ozlabs.ibm.com (static-82-10.transact.net.au [122.99.82.10]) by russell.cc (OpenSMTPD) with ESMTPSA id d6d8227d TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO; Tue, 15 Mar 2016 07:34:17 +0000 (UTC) From: Russell Currey To: skiboot@lists.ozlabs.org Date: Tue, 15 Mar 2016 18:33:52 +1100 Message-Id: <1458027237-8926-3-git-send-email-ruscur@russell.cc> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1458027237-8926-1-git-send-email-ruscur@russell.cc> References: <1458027237-8926-1-git-send-email-ruscur@russell.cc> Subject: [Skiboot] [PATCH 2/7] pci: Export MAX_PHB_ID X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" MAX_PHB_ID is a useful symbol to have around, so move it out of pci.c and show it off to the world. Signed-off-by: Russell Currey --- core/pci.c | 1 - include/pci.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/pci.c b/core/pci.c index c51c838..9ed2189 100644 --- a/core/pci.c +++ b/core/pci.c @@ -22,7 +22,6 @@ #include #include -#define MAX_PHB_ID 256 static struct phb *phbs[MAX_PHB_ID]; #define PCITRACE(_p, _bdfn, fmt, a...) \ diff --git a/include/pci.h b/include/pci.h index 4640dda..eefd626 100644 --- a/include/pci.h +++ b/include/pci.h @@ -227,6 +227,8 @@ struct pci_lsi_state { * reduction for power savings etc... */ +#define MAX_PHB_ID 256 + struct phb; struct phb_ops {