[PATCH] bsps/sparc: Deprecate BSP-specific interrupt API

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jun 15 13:00:18 UTC 2023


Update #3269.
---
 bsps/sparc/erc32/include/bsp.h | 10 +++++-----
 bsps/sparc/leon2/include/bsp.h | 10 +++++-----
 bsps/sparc/leon3/include/bsp.h | 10 +++++-----
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/bsps/sparc/erc32/include/bsp.h b/bsps/sparc/erc32/include/bsp.h
index cb62661aa1..1e8bddad33 100644
--- a/bsps/sparc/erc32/include/bsp.h
+++ b/bsps/sparc/erc32/include/bsp.h
@@ -105,7 +105,7 @@ typedef void (*bsp_shared_isr)(void *arg);
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_register
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_register
        (
        int irq,
        const char *info,
@@ -124,7 +124,7 @@ static __inline__ int BSP_shared_interrupt_register
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_unregister
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_unregister
        (
        int irq,
        bsp_shared_isr isr,
@@ -142,7 +142,7 @@ static __inline__ int BSP_shared_interrupt_unregister
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_clear( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_clear( int irq )
 {
   (void) rtems_interrupt_clear( (rtems_vector_number) irq );
 }
@@ -154,7 +154,7 @@ static inline void BSP_shared_interrupt_clear( int irq )
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_unmask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_unmask( int irq )
 {
   (void) rtems_interrupt_vector_enable( (rtems_vector_number) irq );
 }
@@ -166,7 +166,7 @@ static inline void BSP_shared_interrupt_unmask( int irq )
  * Arguments
  *  irq         System IRQ number
  */
-static inline void BSP_shared_interrupt_mask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_mask( int irq )
 {
   (void) rtems_interrupt_vector_disable( (rtems_vector_number) irq );
 }
diff --git a/bsps/sparc/leon2/include/bsp.h b/bsps/sparc/leon2/include/bsp.h
index 4a2f5967ef..67601d2351 100644
--- a/bsps/sparc/leon2/include/bsp.h
+++ b/bsps/sparc/leon2/include/bsp.h
@@ -129,7 +129,7 @@ typedef void (*bsp_shared_isr)(void *arg);
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_register
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_register
        (
        int irq,
        const char *info,
@@ -148,7 +148,7 @@ static __inline__ int BSP_shared_interrupt_register
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_unregister
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_unregister
        (
        int irq,
        bsp_shared_isr isr,
@@ -166,7 +166,7 @@ static __inline__ int BSP_shared_interrupt_unregister
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_clear( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_clear( int irq )
 {
   (void) rtems_interrupt_clear( (rtems_vector_number) irq );
 }
@@ -178,7 +178,7 @@ static inline void BSP_shared_interrupt_clear( int irq )
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_unmask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_unmask( int irq )
 {
   (void) rtems_interrupt_vector_enable( (rtems_vector_number) irq );
 }
@@ -190,7 +190,7 @@ static inline void BSP_shared_interrupt_unmask( int irq )
  * Arguments
  *  irq         System IRQ number
  */
-static inline void BSP_shared_interrupt_mask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_mask( int irq )
 {
   (void) rtems_interrupt_vector_disable( (rtems_vector_number) irq );
 }
diff --git a/bsps/sparc/leon3/include/bsp.h b/bsps/sparc/leon3/include/bsp.h
index 1712602bfd..ae48d3fd4e 100644
--- a/bsps/sparc/leon3/include/bsp.h
+++ b/bsps/sparc/leon3/include/bsp.h
@@ -148,7 +148,7 @@ typedef void (*bsp_shared_isr)(void *arg);
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_register
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_register
        (
        int irq,
        const char *info,
@@ -167,7 +167,7 @@ static __inline__ int BSP_shared_interrupt_register
  *  isr       Function pointer to the ISR
  *  arg       Second argument to function isr
  */
-static __inline__ int BSP_shared_interrupt_unregister
+RTEMS_DEPRECATED static inline int BSP_shared_interrupt_unregister
        (
        int irq,
        bsp_shared_isr isr,
@@ -185,7 +185,7 @@ static __inline__ int BSP_shared_interrupt_unregister
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_clear( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_clear( int irq )
 {
   (void) rtems_interrupt_clear( (rtems_vector_number) irq );
 }
@@ -197,7 +197,7 @@ static inline void BSP_shared_interrupt_clear( int irq )
  * Arguments
  *  irq       System IRQ number
  */
-static inline void BSP_shared_interrupt_unmask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_unmask( int irq )
 {
   (void) rtems_interrupt_vector_enable( (rtems_vector_number) irq );
 }
@@ -209,7 +209,7 @@ static inline void BSP_shared_interrupt_unmask( int irq )
  * Arguments
  *  irq         System IRQ number
  */
-static inline void BSP_shared_interrupt_mask( int irq )
+RTEMS_DEPRECATED static inline void BSP_shared_interrupt_mask( int irq )
 {
   (void) rtems_interrupt_vector_disable( (rtems_vector_number) irq );
 }
-- 
2.35.3



More information about the devel mailing list