Changeset a48bfc0f in rtems


Ignore:
Timestamp:
Oct 20, 2015, 9:25:06 AM (5 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
5, master
Children:
6ecad1d
Parents:
3395ca99
git-author:
Martin Aberg <maberg@…> (10/20/15 09:25:06)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h

    r3395ca99 ra48bfc0f  
    6060#define TXPKT_FLAG_NOCRC_LENf 0x0000000f
    6161
    62 /* Marks if packet was transmitted or not */
    63 #define TXPKT_FLAG_TX 0x8000
    64 
    6562#define TXPKT_FLAG_INPUT_MASK (TXPKT_FLAG_NOCRC_MASK | TXPKT_FLAG_IE | \
    6663                                TXPKT_FLAG_HCRC | TXPKT_FLAG_DCRC)
    6764
     65/* Marks if packet was transmitted or not */
     66#define TXPKT_FLAG_TX 0x4000
     67
    6868/* Link Error */
    69 #define TXPKT_FLAG_LINKERR 0x4000
    70 
    71 #define TXPKT_FLAG_OUTPUT_MASK (TXPKT_FLAG_LINKERR)
     69#define TXPKT_FLAG_LINKERR 0x8000
     70
     71#define TXPKT_FLAG_OUTPUT_MASK (TXPKT_FLAG_TX | TXPKT_FLAG_LINKERR)
    7272
    7373/*** RX Packet Flags ***/
Note: See TracChangeset for help on using the changeset viewer.