[PATCH 013/111] sparc BSPs: implemented libpci IRQ BSP support

Daniel Hellstrom daniel at gaisler.com
Thu Feb 26 16:38:15 UTC 2015


---
 c/src/lib/libbsp/sparc/erc32/include/bsp.h |    7 +++++++
 c/src/lib/libbsp/sparc/leon2/include/bsp.h |   10 ++++++++++
 c/src/lib/libbsp/sparc/leon3/include/bsp.h |    9 +++++++--
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
index 6984c9e..1da2e76 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
@@ -187,6 +187,13 @@ void rtems_bsp_delay(int usecs);
 void console_outbyte_polled(int  port, unsigned char ch);
 int console_inbyte_nonblocking(int port);
 
+/* BSP PCI Interrupt support - to avoid warnings by libpci */
+#define BSP_PCI_shared_interrupt_register    BSP_shared_interrupt_register
+#define BSP_PCI_shared_interrupt_unregister  BSP_shared_interrupt_unregister
+#define BSP_PCI_shared_interrupt_unmask      BSP_shared_interrupt_unmask
+#define BSP_PCI_shared_interrupt_mask        BSP_shared_interrupt_mask
+#define BSP_PCI_shared_interrupt_clear       BSP_shared_interrupt_clear
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/c/src/lib/libbsp/sparc/leon2/include/bsp.h b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
index bd8587f..48c4b68 100644
--- a/c/src/lib/libbsp/sparc/leon2/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
@@ -210,6 +210,16 @@ void rtems_bsp_delay(int usecs);
  */
 int cchip1_register(void);
 
+/* BSP PCI Interrupt support */
+#define BSP_PCI_shared_interrupt_register    BSP_shared_interrupt_register
+#define BSP_PCI_shared_interrupt_unregister  BSP_shared_interrupt_unregister
+#define BSP_PCI_shared_interrupt_unmask      BSP_shared_interrupt_unmask
+#define BSP_PCI_shared_interrupt_mask        BSP_shared_interrupt_mask
+#define BSP_PCI_shared_interrupt_clear       BSP_shared_interrupt_clear
+
+/* AT697 has PCI defined as big endian */
+#define BSP_PCI_BIG_ENDIAN
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
index 47cf701..09738c9 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h
@@ -242,10 +242,15 @@ extern const unsigned char LEON3_mp_irq;
 extern const unsigned char LEON3_irq_to_cpu[32];
 #endif
 
+/* BSP PCI Interrupt support */
+#define BSP_PCI_shared_interrupt_register    BSP_shared_interrupt_register
+#define BSP_PCI_shared_interrupt_unregister  BSP_shared_interrupt_unregister
+#define BSP_PCI_shared_interrupt_unmask      BSP_shared_interrupt_unmask
+#define BSP_PCI_shared_interrupt_mask        BSP_shared_interrupt_mask
+#define BSP_PCI_shared_interrupt_clear       BSP_shared_interrupt_clear
+
 #ifdef __cplusplus
 }
 #endif
 
 #endif
-
-
-- 
1.7.0.4




More information about the devel mailing list