[PATCH 06/44] leon, grspw_pkt: Fixed txpkt flag for link error

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


From: Martin Aberg <maberg at gaisler.com>

There was a mixup between the transmit descriptor Link error (LE) bit and
Interrupt enable (IE) bit. TXPKT_FLAG_LINKERR now correctly indicates the link
error condition.
---
 c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
index 4b3d40d..c014b37 100644
--- a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
+++ b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
@@ -59,16 +59,16 @@ extern int grspw_work_task_priority;
 #define TXPKT_FLAG_NOCRC_LENe 0x0000000e
 #define TXPKT_FLAG_NOCRC_LENf 0x0000000f
 
-/* Marks if packet was transmitted or not */
-#define TXPKT_FLAG_TX 0x8000
-
 #define TXPKT_FLAG_INPUT_MASK (TXPKT_FLAG_NOCRC_MASK | TXPKT_FLAG_IE | \
 				TXPKT_FLAG_HCRC | TXPKT_FLAG_DCRC)
 
+/* Marks if packet was transmitted or not */
+#define TXPKT_FLAG_TX 0x4000
+
 /* Link Error */
-#define TXPKT_FLAG_LINKERR 0x4000
+#define TXPKT_FLAG_LINKERR 0x8000
 
-#define TXPKT_FLAG_OUTPUT_MASK (TXPKT_FLAG_LINKERR)
+#define TXPKT_FLAG_OUTPUT_MASK (TXPKT_FLAG_TX | TXPKT_FLAG_LINKERR)
 
 /*** RX Packet Flags ***/
 
-- 
2.7.4




More information about the devel mailing list