17#ifndef _RTEMS_CONFDEFS_LIBPCI_H
18#define _RTEMS_CONFDEFS_LIBPCI_H
20#ifndef __CONFIGURATION_TEMPLATE_h
21#error "Do not include this file directly, use <rtems/confdefs.h> instead"
31#ifdef RTEMS_PCI_CONFIG_LIB
33 #define PCI_LIB_NONE 0
34 #define PCI_LIB_AUTO 1
35 #define PCI_LIB_STATIC 2
36 #define PCI_LIB_READ 3
37 #define PCI_LIB_PERIPHERAL 4
38 #if CONFIGURE_PCI_LIB == PCI_LIB_AUTO
39 #define PCI_CFG_AUTO_LIB
42 #define PCI_LIB_INIT pci_config_auto
43 #define PCI_LIB_CONFIG pci_config_auto_register
44 #elif CONFIGURE_PCI_LIB == PCI_LIB_STATIC
45 #define PCI_CFG_STATIC_LIB
47 #define PCI_LIB_INIT pci_config_static
48 #define PCI_LIB_CONFIG NULL
50 #elif CONFIGURE_PCI_LIB == PCI_LIB_READ
51 #define PCI_CFG_READ_LIB
53 #define PCI_LIB_INIT pci_config_read
54 #define PCI_LIB_CONFIG NULL
56 #elif CONFIGURE_PCI_LIB == PCI_LIB_PERIPHERAL
57 #define PCI_LIB_INIT pci_config_peripheral
58 #define PCI_LIB_CONFIG NULL
60 #elif CONFIGURE_PCI_LIB == PCI_LIB_NONE
61 #define PCI_LIB_INIT NULL
62 #define PCI_LIB_CONFIG NULL
65 #error NO PCI LIBRARY DEFINED
68 const int pci_config_lib_type = CONFIGURE_PCI_LIB;
69 int (*pci_config_lib_init)(void) = PCI_LIB_INIT;
70 void (*pci_config_lib_register)(
void *
config) = PCI_LIB_CONFIG;
Definition: deflate.c:115