[Skiboot] [PATCH 2/7] pci: Export MAX_PHB_ID
Russell Currey
ruscur at russell.cc
Tue Mar 15 18:33:52 AEDT 2016
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 <ruscur at russell.cc>
---
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 <device.h>
#include <fsp.h>
-#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 {
--
2.7.3
More information about the Skiboot
mailing list