8
Defines the offset for the free transmit bytes register.
2.6 Window 4 Diagnostic Register Offset Definitions
The window 4 operational registers include such registers as the media type and status register and the network diagnostic port register, as shown in Figure
Figure 2–4: Window 4 Diagnostic Registers
Register | Constant |
|
|
|
|
Media Type and Status Register | W4_MEDIA |
|
|
|
|
Network Diagnostic and | W4_NET |
|
Status Register |
|
|
|
|
|
The following code shows the definitions for the window 4 diagnostic registers:
#define W4_MEDIA |
| 0xa | |
enum w4_media { | 2 |
| |
MD_TPE | =0x8000, | ||
MD_COAXE | =0x4000, | ||
MD_RES1 | =0x2000, | ||
MD_SQE | =0x1000, | ||
MD_VLB | =0x0800, | ||
MD_PRD | =0x0400, | ||
MD_JAB | =0x0200, | ||
MD_UNSQ | =0x0100, | ||
MD_LBE | =0x0080, | ||
MD_JABE | =0x0040, | ||
MD_CS | =0x0020, | ||
MD_COLL | =0x0010, | ||
MD_SQEE | =0x0008, | ||
MD_NCRC | =0x0004 |
};
#define W4_NET0x6 enum w4_net { 4
ND_EXT =0x8000, ND_ENDEC =0x4000,
ND_ECL =0x2000, ND_LOOP =0x1000,
ND_TXE =0x0800,
ND_RXE =0x0400,
ND_TXB =0x0200, ND_TXRR =0x0100, ND_STATE =0x0080,
ND_REV =0x003e,
ND_LOW =0x0001
};
1
3
1
Defines the offset for the media type and status register.