LIBPCI: use enum with pci_system_type

This commit is contained in:
Daniel Hellstrom
2015-04-08 10:16:51 +02:00
parent 15620f5b6b
commit 346a9a5739
2 changed files with 3 additions and 3 deletions

View File

@@ -53,12 +53,12 @@ enum {
*
* The active configuration Library set this variable.
*/
enum {
enum pci_system_type {
PCI_SYSTEM_NONE = 0,
PCI_SYSTEM_HOST = 1,
PCI_SYSTEM_PERIPHERAL = 2,
};
extern int pci_system_type;
extern enum pci_system_type pci_system_type;
/* PCI Bus Endianness. The PCI specification is little endian, however on some
* embedded systems (AT697-LEON2 for example) the PCI bus is defined as big

View File

@@ -18,7 +18,7 @@ int pci_bus_cnt = 0;
uint32_t pci_invalid_address = 0;
/* PCI System type. Configuration Library setup this */
int pci_system_type = PCI_SYSTEM_NONE;
enum pci_system_type pci_system_type = PCI_SYSTEM_NONE;
/* PCI Endianness.
*