Window 4 Diagnostic Register Offset Definitions; Window 4 Diagnostic Registers - Compaq Tru64 UNIX Installation Manual

Writing network device drivers
Table of Contents

Advertisement

Defines the offset for the free transmit bytes register.
8

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 2–4.
Figure 2–4: Window 4 Diagnostic Registers
Register
Media Type and Status Register
Network Diagnostic and
Status Register
The following code shows the definitions for the window 4 diagnostic
registers:
#define W4_MEDIA
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_NET
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
};
Defines the offset for the media type and status register.
1
Constant
W4_MEDIA
W4_NET
ZK-1270U-AI
0xa
1
0x6
3
Defining Device Register Offsets 2–11

Advertisement

Table of Contents
loading

Table of Contents