PASAHO Next Route Command Macros
PA/SA/Host Macros

PASAHO Next Route Command Macros

Macros used by the PASAHO Next Route Command

#define PASAHO_SET_N(x, v)   PASAHO_SET_BITFIELD((x)->word0, (v), 28, 1)
#define PASAHO_SET_E(x, v)   PASAHO_SET_BITFIELD((x)->word0, (v), 27, 1)
#define PASAHO_SET_DEST(x, v)   PASAHO_SET_BITFIELD((x)->word0, (v), 24, 3)
#define PASAHO_SET_FLOW(x, v)   PASAHO_SET_BITFIELD((x)->word0, (v), 16, 8)
#define PASAHO_SET_QUEUE(x, v)   PASAHO_SET_BITFIELD((x)->word0, (v), 0, 16)
#define PASAHO_SET_PKTTYPE(x, v)   PASAHO_SET_BITFIELD((x)->word1, (v), 24, 8)
#define PASAHO_SET_TX_PADDING(x, v)   PASAHO_SET_BITFIELD((x)->word1, (v), 0, 1)
#define PASAHO_SET_TX_STATS(x, v)   PASAHO_SET_BITFIELD((x)->word1, (v), 1, 1)
#define PASAHO_SET_USR_STATS_INDEX(x, v)   PASAHO_SET_BITFIELD((x)->word1, (v), 8, 16)

Define Documentation

#define PASAHO_SET_DEST (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, (v), 24, 3)

Sets the destination of the route defined at Routed Packet Destinations

#define PASAHO_SET_E (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, (v), 27, 1)

Sets the E bit which indicates the extened parameters (packet type and/or control flags) are present for SRIO

#define PASAHO_SET_FLOW (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, (v), 16, 8)

Specifies the flow to use for packets sent to the host

#define PASAHO_SET_N (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, (v), 28, 1)

Sets the N bit which indicates the next command should be executed prior to the route command

#define PASAHO_SET_PKTTYPE (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1, (v), 24, 8)

Specifies the packet type to use for packets send to the SRIO

#define PASAHO_SET_QUEUE (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0, (v), 0, 16)

Specifies the queue to use for packets send to the host

#define PASAHO_SET_TX_PADDING (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1, (v), 0, 1)

Sets the tx padding bit which indicates PASS should check padding condition and provide L2 zero padding if required

#define PASAHO_SET_TX_STATS (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1, (v), 1, 1)

Sets the tx stats bit which indicates PASS should increment the user statistics chain pointed by the user statistics index

#define PASAHO_SET_USR_STATS_INDEX (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1, (v), 8, 16)

Specifies index of the first user-defined statistics to be updated


Copyright 2014, Texas Instruments Incorporated