3 8430-tool debug command bit mask values, 8430-tool debug command bit mask values – Maxim Integrated 78Q8430 Linux Driver ARM Platform User Manual
Page 17

UG_8430_008
78Q8430 Linux Driver ARM Platform User Guide
Rev. 1.0
17
3 8430-tool Debug Command Bit Mask Values
Operation of the 8430-tool Debug Command requires that the driver be compiled with the global debug
option found in 78q8430-debug.h. This is the default state built into the executable. This option enables
a set of prerequisite, corresponding options that are mapped to the 8430-tool Debug Command bit mask
values specified below.
The command syntax for enabling the debug messages on the console is:
8430-tool ethn -r debug 0xXXXXXXXX
The debug message bit masks are defined below. The 32-bit hex value above each group of debug
messages is the mask to enable all of the messages in the group below it.
unsigned int if_debug; // debug bit map
// 0x80000000
#define DEBUG_RMON ( 1 << 31)
// 0xE0000000
#define DEBUG_TX_INDEX ( 1 << 30)
#define DEBUG_TX_RESEND ( 1 << 29)
#define DEBUG_TX_SKB_RLSE ( 1 << 28)
// 0x0F000000
#define DEBUG_RESEND_PKT ( 1 << 27)
#define DEBUG_RESEND_PKT_ALIGNED ( 1 << 26)
#define DEBUG_RESEND_PKT_TX_CNTS ( 1 << 25)
#define DEBUG_RESEND_PKT_ALIGNED_XMIT ( 1 << 24)
// 0x00800000
#define DEBUG_CAM ( 1 << 23)
// 0x007E0000
#define DEBUG_SEND_PKT_ENT1_NDX ( 1 << 22)
#define DEBUG_SEND_PKT_ENT2 ( 1 << 21)
#define DEBUG_SEND_PKT_ALIGNED ( 1 << 20)
#define DEBUG_SEND_PKT_TX_CNTS ( 1 << 19)
#define DEBUG_SEND_PKT_ALIGNED_XMIT ( 1 << 18)
#define DEBUG_SEND_PKT_XMIT_DATA ( 1 << 17)
// 0x00010000
#define DEBUG_TOE_XMIT_IPADDR ( 1 << 16) // TOE
// 0x0000E000
#define DEBUG_RX_CLASS ( 1 << 15) // RX classification results
#define DEBUG_RX_TOE ( 1 << 14) // TOE classification hits
#define DEBUG_RX_DROP ( 1 << 13) // Packet drop w status & MTU
// 0x00001000
#define DEBUG_IOCTL ( 1 << 12) // RX loop top
// 0x00000FC0
#define DEBUG_RX_PKT_LEN ( 1 << 11) // Packet length
#define DEBUG_RX_RPSR ( 1 << 10) // RX RPSR (RX Pkt Status Word)
#define DEBUG_RX_SKB ( 1 << 9) // RX sk_buff (skb)
#define DEBUG_RX_SKB_IO ( 1 << 8) // RX Slave DMA IO to skb
#define DEBUG_RX_SKB_DATA ( 1 << 7) // RX skb data dump
#define DEBUG_RX_PROTO ( 1 << 6) // RX protocol
// 0x00000020