summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/ubnei/initdata.c
blob: 3d3130b1b36d9989fa4a8857e00071effd1ec4bc (plain) (blame)
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/*++

Copyright (c) 1990  Microsoft Corporation

Module Name:

    card.c

Abstract:

    This is the mac ndis file for the Ungermann Bass Ethernet Controller.
    This driver conforms to the NDIS 3.0 interface.

    It is here that the NDIS3.0 functions defined in the MAC characteristic
    table have been deinfed.

Author:

    Sanjeev Katariya    (sanjeevk)    03-05-92

Environment:

    Kernel Mode     Operating Systems        : NT and other lesser OS's

Revision History:

    Brian Lieuallen     BrianLie        07/21/92
        Made it work.
    Brian Lieuallen     BrianLie        12/15/93
        Made it a mini-port



--*/



//            INCLUDES
#include <ndis.h>
#include <efilter.h>

#include "niudata.h"
#include "debug.h"

#include "ubhard.h"
#include "ubsoft.h"
#include "ubnei.h"

#include "map.h"

#ifdef NDIS_NT
#ifdef ALLOC_DATA_PRAGMA

#pragma data_seg("INIT")

#endif
#endif




NIUDETAILS NiuDetails[6]={
// PCNIU--Not supported
                              {0},

// Cost_Reduced-PCNIU-- Not Supported
                              {0},

// NIUpc(long 16-bit card)
                              { { 0x02, 0x12, 0x06, 0x16,
                                  0x0A, 0x1A, 0x0E, 0x1E
                                },

                                ATLANTA,
                                NIUPC_MINIMUM_WINDOW_SIZE,
                                NIUPC_OPERATIONAL_CS,
                                NIUPC_PRIMARY_DS,
                                NIUPC_TX_BUFFER_SEGS,
                                NIUPC_HIGHEST_RAM_SEGS,
                                NIUPC_SCSP_SEGS,

                                NIUPC_POD_STATUS_ADDR,

                                NIUPC_HOST_INTR_PORT,
                                NIUPC_82586_CA_PORT,
                                NIUPC_82586_RESET_PORT,
                                NIUPC_ADAPTER_CTRL_PORT,

                                NIUPC_LEDOFF_12V_DOPARCHK,
                                NIUPC_LEDON_12V_DOPARCHK,

                                NIUPC_IRQSEL_LEDPORT,
                                NIUPC_DEADMAN_TIMERPORT,

                                { NIUPC_CLI_OFFSET,
                                  NIUPC_MAP_OFFSET,
                                  NIUPC_INTR_STATUS_OFFSET,
                                  NIUPC_SETWINBASE_OFFSET
                                },

                                NIUPC_ADAPTER_FLAGS,
                                NIUPC_ADAPTER_CODE
                              },

// NIUps (MCA EOTP)
                              { { 0x02, 0x06, 0x0A, 0x0E,
                                  0x12, 0x16, 0x1A, 0x1E,
                                  0x22, 0x26, 0x2A, 0x2E,
                                  0x32, 0x36, 0x3A, 0x3E,
                                  0x42, 0x46, 0x4A, 0x4E,
                                  0x52, 0x56, 0x5A, 0x5E,
                                  0x62, 0x66, 0x6A, 0x6E,
                                  0x72, 0x76, 0x7A, 0x7E
                                },

                                CHAMELEON,
                                GPCNIU_MINIMUM_WINDOW_SIZE,
                                GPCNIU_OPERATIONAL_CS,
                                GPCNIU_PRIMARY_DS,
                                GPCNIU_TX_BUFFER_SEGS,
                                GPCNIU_HIGHEST_RAM_SEGS,
                                GPCNIU_SCSP_SEGS,

                                GPCNIU_POD_STATUS_ADDR,

                                GPCNIU_HOST_INTR_PORT,
                                GPCNIU_82586_CA_PORT,
                                GPCNIU_82586_RESET_PORT,
                                GPCNIU_ADAPTER_CTRL_PORT,

                                GPCNIU_LEDOFF_12V_DOPARCHK,
                                GPCNIU_LEDON_12V_DOPARCHK,

                                GPCNIU_IRQSEL_LEDPORT,
                                GPCNIU_DEADMAN_TIMERPORT,

                                { GPCNIU_CLI_OFFSET,
                                  GPCNIU_MAP_OFFSET,
                                  GPCNIU_INTR_STATUS_OFFSET,
                                  GPCNIU_SETWINBASE_OFFSET
                                },

                                GPCNIU_ADAPTER_FLAGS,
                                NIUPS_ADAPTER_CODE
                              },


// GPCNIU (EOTP)
                              { { 0x02, 0x06, 0x0A, 0x0E,
                                  0x12, 0x16, 0x1A, 0x1E,
                                  0x22, 0x26, 0x2A, 0x2E,
                                  0x32, 0x36, 0x3A, 0x3E,
                                  0x42, 0x46, 0x4A, 0x4E,
                                  0x52, 0x56, 0x5A, 0x5E,
                                  0x62, 0x66, 0x6A, 0x6E,
                                  0x72, 0x76, 0x7A, 0x7E
                                },

                                CHAMELEON,
                                GPCNIU_MINIMUM_WINDOW_SIZE,
                                GPCNIU_OPERATIONAL_CS,
                                GPCNIU_PRIMARY_DS,
                                GPCNIU_TX_BUFFER_SEGS,
                                GPCNIU_HIGHEST_RAM_SEGS,
                                GPCNIU_SCSP_SEGS,

                                GPCNIU_POD_STATUS_ADDR,

                                GPCNIU_HOST_INTR_PORT,
                                GPCNIU_82586_CA_PORT,
                                GPCNIU_82586_RESET_PORT,
                                GPCNIU_ADAPTER_CTRL_PORT,

                                GPCNIU_LEDOFF_12V_DOPARCHK,
                                GPCNIU_LEDON_12V_DOPARCHK,

                                GPCNIU_IRQSEL_LEDPORT,
                                GPCNIU_DEADMAN_TIMERPORT,

                                { GPCNIU_CLI_OFFSET,
                                  GPCNIU_MAP_OFFSET,
                                  GPCNIU_INTR_STATUS_OFFSET,
                                  GPCNIU_SETWINBASE_OFFSET
                                },

                                GPCNIU_ADAPTER_FLAGS,
                                GPCNIU_ADAPTER_CODE
                              },

// PCNIUex -- Not Supported
                              {0},

                            };


UCHAR     GPNIU_IRQ_Selections[13]={0,0,0x10,0x20,0x30,0x40,0,0x50,0,0x10,0,0,0x60};




ULONG    MemoryWindows[4]={0x08000,0x10000,0x04000,0x0};

ULONG    MemoryBases[16]={0x0c0000,0x0c4000,0x0c8000,0x0cc000,
                          0x0d0000,0x0d4000,0x0d8000,0x0dc000,
                          0xe28000,0x0c4000,0x0c8000,0x0cc000,
                          0x0d0000,0x0d4000,0x0d8000,0x0dc000};

USHORT   PortBases[16]={ 0x350,0x350,0x358,0x358,
                         0x360,0x360,0x368,0x368,
                         0x368,0x368,0x368,0x368,
                         0x368,0x368,0x368,0x368};





#ifdef NDIS_NT
#ifdef ALLOC_DATA_PRAGMA

#pragma data_seg()

#endif
#endif