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
This commit is contained in:
Daniel Hellstrom
2015-04-08 10:51:45 +02:00
parent 1f4f1e2e12
commit f4bf22c8e5
7 changed files with 56 additions and 45 deletions

View File

@@ -18,8 +18,7 @@
#include <pci/cfg.h>
/* Number of buses */
extern int pci_bus_cnt;
#include "pci_internal.h"
/* Assume that user has defined static setup array in pci_hb */
int pci_config_peripheral(void)