1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
/*+
* file: d21x4rgs.h
*
* Copyright (C) 1992-1995 by
* Digital Equipment Corporation, Maynard, Massachusetts.
* All rights reserved.
*
* This software is furnished under a license and may be used and copied
* only in accordance of the terms of such license and with the
* inclusion of the above copyright notice. This software or any other
* copies thereof may not be provided or otherwise made available to any
* other person. No title to and ownership of the software is hereby
* transferred.
*
* The information in this software is subject to change without notice
* and should not be construed as a commitment by digital equipment
* corporation.
*
* Digital assumes no responsibility for the use or reliability of its
* software on equipment which is not supplied by digital.
*
*
* Abstract: This file contains the string definitions of the
* Registry keys for the NDIS 4.0 miniport driver for
* DEC's DC21X4 Ethernet Adapter family.
*
* Author: Philippe Klein
*
* Revision History:
*
* phk 28-Aug-1994 Initial entry
* phk 12-Mar-1995 Add ConnectionType table
*
-*/
// Registry keys
typedef enum DC21X4_REGISTRY_KEY {
RGS_ADPT = 0, // AdapterType
RGS_BUSN, // BusNumber
RGS_DEVN, // SlotNumber
RGS_FCTN, // FunctionNumber
RGS_CFID, // AdapterCfid
RGS_CFCS, // PciCommand
RGS_CFLT, // PciLatencyTimer
RGS_BLEN, // BurstLen
RGS_FARB, // FifoArbitration
RGS_THRS, // TransmitThreshold
RGS_THRS100, // TransmitThreshold100
RGS_BKOC, // BackoffCounter
RGS_BKPR, // BackPressure
RGS_CPTE, // CaptureEffect
RGS_TI, // TiPeriod
RGS_SCRC, // SoftwareCRC
RGS_ESIA, // ExternalSia
RGS_SIA0, // SiaRegister0
RGS_SIA1, // SiaRegister1
RGS_SIA2, // SiaRegister2
RGS_TRNS, // TransceiverDelay
RGS_CLSZ, // CacheLineSize
RGS_PLDM, // AutomaticPolling
RGS_RCVR, // ReceiveBuffers
RGS_STFD, // StoreAndForward
RGS_MAPR, // MapRegisters
RGS_ITMG, // InterruptMitigation
RGS_ITHR, // InterruptThreshold
RGS_FTHR, // FrameThreshold
RGS_UTHR, // UnderrunThreshold
RGS_UNDR, // UnderrunRetry
RGS_SNOO, // SnoozeMode
RGS_NWAY, // NwayProtocol
RGS_RCV_BUFS, // ExtraReceiveBuffers
RGS_RCV_PKTS, // ExtraReceivePackets
RGS_CNCT, // ConnectionType
MAX_RGS
} DC21X4_REGISTRY_KEY;
NDIS_STRING DC21X4ConfigString[] = {
NDIS_STRING_CONST("AdapterType"),
NDIS_STRING_CONST("BusNumber"),
NDIS_STRING_CONST("SlotNumber"),
NDIS_STRING_CONST("FunctionNumber"),
NDIS_STRING_CONST("AdapterCfid"),
NDIS_STRING_CONST("PciCommand"),
NDIS_STRING_CONST("PciLatencyTimer"),
NDIS_STRING_CONST("BurstLength"),
NDIS_STRING_CONST("FifoArbitration"),
NDIS_STRING_CONST("TransmitThreshold"),
NDIS_STRING_CONST("TransmitThreshold100"),
NDIS_STRING_CONST("BackoffCounter"),
NDIS_STRING_CONST("BackPressure"),
NDIS_STRING_CONST("CaptureEffect"),
NDIS_STRING_CONST("TiPeriod"),
NDIS_STRING_CONST("SoftwareCRC"),
NDIS_STRING_CONST("ExternalSia"),
NDIS_STRING_CONST("SiaRegister0"),
NDIS_STRING_CONST("SiaRegister1"),
NDIS_STRING_CONST("SiaRegister2"),
NDIS_STRING_CONST("TransceiverDelay"),
NDIS_STRING_CONST("CacheLineSize"),
NDIS_STRING_CONST("AutomaticPolling"),
NDIS_STRING_CONST("ReceiveBuffers"),
NDIS_STRING_CONST("StoreAndForward"),
NDIS_STRING_CONST("MapRegisters"),
NDIS_STRING_CONST("InterruptMitigation"),
NDIS_STRING_CONST("InterruptThreshold"),
NDIS_STRING_CONST("FrameThreshold"),
NDIS_STRING_CONST("UnderrunThreshold"),
NDIS_STRING_CONST("UnderrunRetry"),
NDIS_STRING_CONST("SnoozeMode"),
NDIS_STRING_CONST("NwayProtocol"),
NDIS_STRING_CONST("ExtraReceiveBuffers"),
NDIS_STRING_CONST("ExtraReceivePackets"),
NDIS_STRING_CONST("ConnectionType")
};
static const ULONG ConnectionType[]= {
0x900, // 0 = AutoDetect , AutoSense
0x001, // 1 = 10Base2 (BNC)
0x000, // 2 = 10BaseT (TP)
0x204, // 3 = 10BaseT Full_Duplex
0x400, // 4 = 10BaseT No_Link_Test
0x002, // 5 = 10Base5 (AUI)
0x800, // 6 = AutoSense No_Nway
0x900, // 7 = Reserved
0x003, // 8 = 100BaseTx
0x205, // 9 = 100BaseTx Full_Duplex
0x006, //10 = 100BaseT4
0x007, //11 = 100BaseFx
0x208 //12 = 100BaseFx Full_Duplex
};
#define MAX_MEDIA 13
|