diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-08 10:51:45 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:28 +0200 |
commit | f4bf22c8e5093fa65b0c95467c918a2812daef66 (patch) | |
tree | 30f567c90c5bf2cc85e7382a5410a934907dd10d /cpukit/libpci/pci_internal.h | |
parent | LIBPCI: various comment/unsed clean-ups (diff) | |
download | rtems-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.h | 14 |
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); |