[PATCH 04/44] leon, gr1553b: RT status words register declarations fix

Daniel Hellstrom daniel at gaisler.com
Fri Mar 3 14:56:37 UTC 2017


The fix does not affect the driver since the bit definitions
were never used by the GR5133B drivers. However it could affect
and application using the definitions.
---
 c/src/lib/libbsp/sparc/shared/include/gr1553b.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/include/gr1553b.h b/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
index 11f0980..006417b 100644
--- a/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
+++ b/c/src/lib/libbsp/sparc/shared/include/gr1553b.h
@@ -198,17 +198,19 @@ struct gr1553b_regs {
 #define GR1553B_RT_CFG_RTKEY		(0xffff<<GR1553B_RT_CFG_RTKEY_BIT)
 
 /*** RT Bus Status Register ***/
-#define GR1553B_RT_STAT2_RTEN_BIT	0
+#define GR1553B_RT_STAT2_TFLG_BIT	0
 #define GR1553B_RT_STAT2_DBCA_BIT	1
 #define GR1553B_RT_STAT2_SSF_BIT	2
 #define GR1553B_RT_STAT2_BUSY_BIT	3
 #define GR1553B_RT_STAT2_SREQ_BIT	4
+#define GR1553B_RT_STAT2_TFDE_BIT	8
 
-#define GR1553B_RT_STAT2_RTEN		(1<<GR1553B_RT_STAT2_RTEN_BIT)
+#define GR1553B_RT_STAT2_TFLG		(1<<GR1553B_RT_STAT2_TFLG_BIT)
 #define GR1553B_RT_STAT2_DBCA		(1<<GR1553B_RT_STAT2_DBCA_BIT)
 #define GR1553B_RT_STAT2_SSF		(1<<GR1553B_RT_STAT2_SSF_BIT)
 #define GR1553B_RT_STAT2_BUSY		(1<<GR1553B_RT_STAT2_BUSY_BIT)
-#define GR1553B_RT_STAT2_SREQ		(1<<GR1553B_RT_STAT2_RTEN_BIT)
+#define GR1553B_RT_STAT2_SREQ		(1<<GR1553B_RT_STAT2_SREQ_BIT)
+#define GR1553B_RT_STAT2_TFDE		(1<<GR1553B_RT_STAT2_TFDE_BIT)
 
 /*** RT Status Words Register ***/
 #define GR1553B_RT_STATW_VECW_BIT	0
-- 
2.7.4




More information about the devel mailing list