[PATCH 7/8] sparc: Remove BSP specifics from <pci/access.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 2 14:21:14 UTC 2018


Update #3254.
Update #3260.
---
 cpukit/libpci/pci/access.h | 93 ----------------------------------------------
 1 file changed, 93 deletions(-)

diff --git a/cpukit/libpci/pci/access.h b/cpukit/libpci/pci/access.h
index ce751f292b..4337db30c3 100644
--- a/cpukit/libpci/pci/access.h
+++ b/cpukit/libpci/pci/access.h
@@ -17,9 +17,6 @@
 #include <rtems/score/basedefs.h>
 #include <pci.h>
 
-/* Let BSP configure load/store from PCI */
-#include <bsp.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -204,96 +201,6 @@ RTEMS_INLINE_ROUTINE void pci_st8(volatile uint8_t *addr, uint8_t val)
 	*addr = val;
 }
 
-#ifdef BSP_PCI_BIG_ENDIAN
-
-/* BSP has decided Big Endian PCI Bus (non-standard) */
-
-RTEMS_INLINE_ROUTINE uint16_t pci_ld_le16(volatile uint16_t *addr)
-{
-	return ld_be16(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_le16(volatile uint16_t *addr, uint16_t val)
-{
-	st_be16(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint32_t pci_ld_le32(volatile uint32_t *addr)
-{
-	return ld_be32(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_le32(volatile uint32_t *addr, uint32_t val)
-{
-	st_be32(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint16_t pci_ld_be16(volatile uint16_t *addr)
-{
-	return ld_le16(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_be16(volatile uint16_t *addr, uint16_t val)
-{
-	st_le16(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint32_t pci_ld_be32(volatile uint32_t *addr)
-{
-	return ld_le32(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_be32(volatile uint32_t *addr, uint32_t val)
-{
-	st_le32(addr, val);
-}
-
-#else
-
-/* Little Endian PCI Bus */
-
-RTEMS_INLINE_ROUTINE uint16_t pci_ld_le16(volatile uint16_t *addr)
-{
-	return ld_le16(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_le16(volatile uint16_t *addr, uint16_t val)
-{
-	st_le16(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint32_t pci_ld_le32(volatile uint32_t *addr)
-{
-	return ld_le32(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_le32(volatile uint32_t *addr, uint32_t val)
-{
-	st_le32(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint16_t pci_ld_be16(volatile uint16_t *addr)
-{
-	return ld_be16(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_be16(volatile uint16_t *addr, uint16_t val)
-{
-	st_be16(addr, val);
-}
-
-RTEMS_INLINE_ROUTINE uint32_t pci_ld_be32(volatile uint32_t *addr)
-{
-	return ld_be32(addr);
-}
-
-RTEMS_INLINE_ROUTINE void pci_st_be32(volatile uint32_t *addr, uint32_t val)
-{
-	st_be32(addr, val);
-}
-
-#endif
-
 /* Registers-over-Memory Space access routines. The routines are not inlined
  * so it is possible during run-time to select which function implemention
  * to use. The use of these functions are not recommended since it will have a
-- 
2.12.3




More information about the devel mailing list