mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 07:20:16 +00:00
Move #include <rtems/pci.h> into #if *_SUPPORTED-guarded code sections.
This commit is contained in:
@@ -54,13 +54,13 @@
|
||||
#endif
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#if !defined(PCI_DRAM_OFFSET)
|
||||
#undef DEC21140_SUPPORTED
|
||||
#endif
|
||||
|
||||
#if defined(DEC21140_SUPPORTED)
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#if defined(__PPC__)
|
||||
#include <libcpu/byteorder.h>
|
||||
|
||||
@@ -80,7 +80,6 @@
|
||||
#endif
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#if !defined(PCI_DRAM_OFFSET)
|
||||
#undef ELNK_SUPPORTED
|
||||
@@ -90,6 +89,7 @@
|
||||
|
||||
|
||||
#if defined(ELNK_SUPPORTED)
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#if defined(__PPC__)
|
||||
#include <libcpu/byteorder.h>
|
||||
|
||||
@@ -114,13 +114,13 @@
|
||||
#endif
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#if !defined(PCI_DRAM_OFFSET)
|
||||
#undef DRIVER_SUPPORTED
|
||||
#endif
|
||||
|
||||
#if defined(DRIVER_SUPPORTED) /* this covers the file "globally"... */
|
||||
#include <rtems/pci.h>
|
||||
|
||||
#include <rtems/error.h>
|
||||
#include <errno.h>
|
||||
|
||||
Reference in New Issue
Block a user