[rtems commit] leon, grspw_pkt: Fixed txpkt flag for link error

Daniel Hellstrom danielh at rtems.org
Mon Mar 6 06:58:44 UTC 2017


Module:    rtems
Branch:    master
Commit:    a48bfc0ffa8924ddce55a567795a5352a98fb322
Changeset: http://git.rtems.org/rtems/commit/?id=a48bfc0ffa8924ddce55a567795a5352a98fb322

Author:    Martin Aberg <maberg at gaisler.com>
Date:      Tue Oct 20 11:25:06 2015 +0200

leon, grspw_pkt: Fixed txpkt flag for link error

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 ***/
 



More information about the vc mailing list