beautypg.com

Maxim Integrated 78Q8430 Linux Driver ARM Platform User Manual

Page 18

background image

78Q8430 Linux Driver ARM Platform User Guide

UG_8430_008

18

Rev.

1.0

#define DEBUG_PHY ( 1 << 5) // PHY init+ISR in -phy.c

// 0x0000001F
#define DEBUG_RX_INTERRUPT_WAKE ( 1 << 4) // WOL Wake interrupt

#define DEBUG_RX_INTERRUPT_CLASS ( 1 << 3) // Classification interrupt
#define DEBUG_RX_INTERRUPT_PHY ( 1 << 2) // PHY interrupt
#define DEBUG_RX_INTERRUPT_OFLOW ( 1 << 1) // Overflow interrupt
#define DEBUG_RX_INTERRUPT_STATE ( 1 << 0) // Interrupt cause register


The prerequisite #defines that enable the 8430-tool debug command are found in
78Q8430-debug.h.

Table 1

shows the relationship between the 78Q8430-debug.h #defines and the corresponding 8430-tool

debug command debug flags, listed above.

Several 8430-tool debug command bit mask values gate multiple 78Q8430-debug.h #defines.
The bit mask values in the table below, are shown with all the 78Q8430-debug.h #defines that are
enabled by default. As an example,

DEBUG_PHY, 0x00000020,

controls output of console messages

associated with 78Q8430-debug.h #defines.

Some messages have their #defines commented out, resulting in the corresponding message text and
the corresponding 8430-tool debug flag test code, eliminated from the device driver object code, resulting
in a smaller memory footprint.

More than one 8430-tool debug mask value may be controlled by a single 78Q8430-debug.h #define.

Also, a single 78Q8430-debug.h #define may generate two or more 8430-tool debug mask values.

Table 1: debug.h #defines and Debug Flags

Bit Mask Name

Header Debug Definition

DEBUG_RMON #define

DEBUG_NET_RMON

DEBUG_TX_INDEX #define

DEBUG_NET_TX_INDEX

DEBUG_TX_RESEND #define

DEBUG_NET_TX_RESEND

#define DEBUG_NET_TX_RESEND_ERR

DEBUG_TX_SKB_RLSE #define

DEBUG_NET_TX_SKB_RLSE

#define DEBUG_NET_TX_SKB_RLSE_ERR

DEBUG_RESEND_PKT #define

DEBUG_NET_RESEND_PACKET

DEBUG_RESEND_PKT_ALIGNED #define

DEBUG_NET_RESEND_PACKET_ALIGNED

DEBUG_RESEND_PKT_TX_CNTS #define

DEBUG_NET_RESEND_PACKET_TX_CNTS

DEBUG_RESEND_PKT_ALIGNED_XMIT #define

DEBUG_NET_RESEND_PACKET_ALIGNED_XMIT

DEBUG_CAM #define

DEBUG_NET_CAM_SET

DEBUG_SEND_PKT_ENT1_NDX #define

DEBUG_NET_SEND_PACKET_ENT1_NDX

DEBUG_SEND_PKT_ENT2 #define

DEBUG_NET_SEND_PACKET_ENT2

DEBUG_SEND_PKT_ALIGNED #define

DEBUG_NET_SEND_PACKET_ALIGNED

DEBUG_SEND_PKT_TX_CNTS #define

DEBUG_NET_SEND_PACKET_ALIGNED