[rtems commit] sparc: Remove BSP specifics from <pci/access.h>
Sebastian Huber
sebh at rtems.org
Thu Jan 4 06:20:16 UTC 2018
Module: rtems
Branch: master
Commit: 3b392b6113fd3baae8cd9e1c7790fb051cbca54f
Changeset: http://git.rtems.org/rtems/commit/?id=3b392b6113fd3baae8cd9e1c7790fb051cbca54f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 2 11:45:42 2018 +0100
sparc: Remove BSP specifics from <pci/access.h>
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 ce751f2..4337db3 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
More information about the vc
mailing list