Changeset 55a7316 in rtems


Ignore:
Timestamp:
Feb 14, 2020, 4:20:36 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f45d0b2f
Parents:
cadd8d1
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/20 16:20:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:18:36)
Message:

config: Add <rtems/confdefs/libpci.h>

Derive copyright and license for new file form the file history.

Update #3875.

Location:
cpukit
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/headers.am

    rcadd8d1 r55a7316  
    184184include_rtems_HEADERS += include/rtems/vmeintr.h
    185185include_rtems_HEADERS += include/rtems/watchdogdrv.h
     186include_rtems_confdefs_HEADERS += include/rtems/confdefs/libpci.h
    186187include_rtems_confdefs_HEADERS += include/rtems/confdefs/obsolete.h
    187188include_rtems_debugger_HEADERS += include/rtems/debugger/rtems-debugger-bsp.h
  • cpukit/include/rtems/confdefs.h

    rcadd8d1 r55a7316  
    5252#include <rtems/posix/timer.h>
    5353#include <rtems/confdefs/obsolete.h>
     54#include <rtems/confdefs/libpci.h>
    5455
    5556#include <limits.h>
     
    26592660#endif
    26602661
    2661 /*
    2662  *  Select PCI Configuration Library
    2663  */
    2664 #ifdef RTEMS_PCI_CONFIG_LIB
    2665   #ifdef CONFIGURE_INIT
    2666     #define PCI_LIB_NONE 0
    2667     #define PCI_LIB_AUTO 1
    2668     #define PCI_LIB_STATIC 2
    2669     #define PCI_LIB_READ 3
    2670     #define PCI_LIB_PERIPHERAL 4
    2671     #if CONFIGURE_PCI_LIB == PCI_LIB_AUTO
    2672       #define PCI_CFG_AUTO_LIB
    2673       #include <pci/cfg.h>
    2674       struct pci_bus pci_hb;
    2675       #define PCI_LIB_INIT pci_config_auto
    2676       #define PCI_LIB_CONFIG pci_config_auto_register
    2677     #elif CONFIGURE_PCI_LIB == PCI_LIB_STATIC
    2678       #define PCI_CFG_STATIC_LIB
    2679       #include <pci/cfg.h>
    2680       #define PCI_LIB_INIT pci_config_static
    2681       #define PCI_LIB_CONFIG NULL
    2682       /* Let user define PCI configuration (struct pci_bus pci_hb) */
    2683     #elif CONFIGURE_PCI_LIB == PCI_LIB_READ
    2684       #define PCI_CFG_READ_LIB
    2685       #include <pci/cfg.h>
    2686       #define PCI_LIB_INIT pci_config_read
    2687       #define PCI_LIB_CONFIG NULL
    2688       struct pci_bus pci_hb;
    2689     #elif CONFIGURE_PCI_LIB == PCI_LIB_PERIPHERAL
    2690       #define PCI_LIB_INIT pci_config_peripheral
    2691       #define PCI_LIB_CONFIG NULL
    2692       /* Let user define PCI configuration (struct pci_bus pci_hb) */
    2693     #elif CONFIGURE_PCI_LIB == PCI_LIB_NONE
    2694       #define PCI_LIB_INIT NULL
    2695       #define PCI_LIB_CONFIG NULL
    2696       /* No PCI Configuration at all, user can use/debug access routines */
    2697     #else
    2698       #error NO PCI LIBRARY DEFINED
    2699     #endif
    2700 
    2701     const int pci_config_lib_type = CONFIGURE_PCI_LIB;
    2702     int (*pci_config_lib_init)(void) = PCI_LIB_INIT;
    2703     void (*pci_config_lib_register)(void *config) = PCI_LIB_CONFIG;
    2704   #endif
    2705 #endif
    2706 
    27072662#ifdef __cplusplus
    27082663}
Note: See TracChangeset for help on using the changeset viewer.