Message ID | 1458027237-8926-3-git-send-email-ruscur@russell.cc |
---|---|
State | Superseded |
Headers | show |
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 {
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@russell.cc> --- core/pci.c | 1 - include/pci.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)