summaryrefslogtreecommitdiffstats
path: root/cpukit/libpci/pci_cfg_static.c
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-04-08 10:51:45 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:28 +0200
commitf4bf22c8e5093fa65b0c95467c918a2812daef66 (patch)
tree30f567c90c5bf2cc85e7382a5410a934907dd10d /cpukit/libpci/pci_cfg_static.c
parentLIBPCI: various comment/unsed clean-ups (diff)
downloadrtems-f4bf22c8e5093fa65b0c95467c918a2812daef66.tar.bz2
LIBPCI: new implementation private header file
- new implementation private header file - moved double implementation of pci_dev_create used by read & auto cfg libraries to common pci_dev_create.c - moved declaration of pci_bus_cnt to private header file so avoid extern in .c files
Diffstat (limited to 'cpukit/libpci/pci_cfg_static.c')
-rw-r--r--cpukit/libpci/pci_cfg_static.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/libpci/pci_cfg_static.c b/cpukit/libpci/pci_cfg_static.c
index 5ec224238d..9974eb9b40 100644
--- a/cpukit/libpci/pci_cfg_static.c
+++ b/cpukit/libpci/pci_cfg_static.c
@@ -20,6 +20,8 @@
#include <pci/access.h>
#include <pci/cfg.h>
+#include "pci_internal.h"
+
#define PCI_CFG_R8(dev, args...) pci_cfg_r8(dev, args)
#define PCI_CFG_R16(dev, args...) pci_cfg_r16(dev, args)
#define PCI_CFG_R32(dev, args...) pci_cfg_r32(dev, args)
@@ -27,9 +29,6 @@
#define PCI_CFG_W16(dev, args...) pci_cfg_w16(dev, args)
#define PCI_CFG_W32(dev, args...) pci_cfg_w32(dev, args)
-/* Number of buses */
-extern int pci_bus_cnt;
-
/* Enumrate one bus if device is a bridge, and all it's subordinate buses */
static int pci_init_dev(struct pci_dev *dev, void *unused)
{