37#ifndef _RTEMS_CONFDEFS_LIBPCI_H
38#define _RTEMS_CONFDEFS_LIBPCI_H
40#ifndef __CONFIGURATION_TEMPLATE_h
41#error "Do not include this file directly, use <rtems/confdefs.h> instead"
51#ifdef RTEMS_PCI_CONFIG_LIB
53 #define PCI_LIB_NONE 0
54 #define PCI_LIB_AUTO 1
55 #define PCI_LIB_STATIC 2
56 #define PCI_LIB_READ 3
57 #define PCI_LIB_PERIPHERAL 4
58 #if CONFIGURE_PCI_LIB == PCI_LIB_AUTO
59 #define PCI_CFG_AUTO_LIB
62 #define PCI_LIB_INIT pci_config_auto
63 #define PCI_LIB_CONFIG pci_config_auto_register
64 #elif CONFIGURE_PCI_LIB == PCI_LIB_STATIC
65 #define PCI_CFG_STATIC_LIB
67 #define PCI_LIB_INIT pci_config_static
68 #define PCI_LIB_CONFIG NULL
70 #elif CONFIGURE_PCI_LIB == PCI_LIB_READ
71 #define PCI_CFG_READ_LIB
73 #define PCI_LIB_INIT pci_config_read
74 #define PCI_LIB_CONFIG NULL
76 #elif CONFIGURE_PCI_LIB == PCI_LIB_PERIPHERAL
77 #define PCI_LIB_INIT pci_config_peripheral
78 #define PCI_LIB_CONFIG NULL
80 #elif CONFIGURE_PCI_LIB == PCI_LIB_NONE
81 #define PCI_LIB_INIT NULL
82 #define PCI_LIB_CONFIG NULL
85 #error NO PCI LIBRARY DEFINED
88 const int pci_config_lib_type = CONFIGURE_PCI_LIB;
89 int (*pci_config_lib_init)(void) = PCI_LIB_INIT;
90 void (*pci_config_lib_register)(
void *
config) = PCI_LIB_CONFIG;
PCI Configuration Library.
Definition: deflate.c:114