summaryrefslogtreecommitdiffstats
path: root/cpukit/libpci/pci_internal.h
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_internal.h
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 '')
-rw-r--r--cpukit/libpci/pci_internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/libpci/pci_internal.h b/cpukit/libpci/pci_internal.h
new file mode 100644
index 0000000000..b45ef561f3
--- /dev/null
+++ b/cpukit/libpci/pci_internal.h
@@ -0,0 +1,14 @@
+/* Private libpci declarations
+ *
+ * COPYRIGHT (c) 2015 Cobham Gaisler AB.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+/* Number of buses */
+extern int pci_bus_cnt;
+
+/* Allocate a PCI device for a standard device or a bridge device */
+struct pci_dev *pci_dev_create(int isbus);