aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-05-18 08:50:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-18 20:40:32 -0400
commit90942140bf32c376c086cce118de20d424eee959 (patch)
tree54626c5b182f80801c746a268e991497ddb8160b /drivers/staging
parentc71e0a60aa16230e01b8886ce7faf57da6e00395 (diff)
Staging: bcm: Fix all whitespace issues in Adapter.h
This patch resolves all whitespace issues as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/bcm/Adapter.h716
1 files changed, 342 insertions, 374 deletions
diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h
index da74a535242e..d4c98acd6c10 100644
--- a/drivers/staging/bcm/Adapter.h
+++ b/drivers/staging/bcm/Adapter.h
@@ -8,151 +8,142 @@
8#include "Debug.h" 8#include "Debug.h"
9 9
10struct _LEADER { 10struct _LEADER {
11 USHORT Vcid; 11 USHORT Vcid;
12 USHORT PLength; 12 USHORT PLength;
13 UCHAR Status; 13 UCHAR Status;
14 UCHAR Unused[3]; 14 UCHAR Unused[3];
15}__attribute__((packed)); 15} __attribute__((packed));
16typedef struct _LEADER LEADER,*PLEADER; 16typedef struct _LEADER LEADER, *PLEADER;
17 17
18struct _PACKETTOSEND { 18struct _PACKETTOSEND {
19 LEADER Leader; 19 LEADER Leader;
20 UCHAR ucPayload; 20 UCHAR ucPayload;
21}__attribute__((packed)); 21} __attribute__((packed));
22typedef struct _PACKETTOSEND PACKETTOSEND, *PPACKETTOSEND; 22typedef struct _PACKETTOSEND PACKETTOSEND, *PPACKETTOSEND;
23 23
24
25struct _CONTROL_PACKET { 24struct _CONTROL_PACKET {
26 PVOID ControlBuff; 25 PVOID ControlBuff;
27 UINT ControlBuffLen; 26 UINT ControlBuffLen;
28 struct _CONTROL_PACKET* next; 27 struct _CONTROL_PACKET *next;
29}__attribute__((packed)); 28} __attribute__((packed));
30typedef struct _CONTROL_PACKET CONTROL_PACKET,*PCONTROL_PACKET; 29typedef struct _CONTROL_PACKET CONTROL_PACKET, *PCONTROL_PACKET;
31
32 30
33struct link_request { 31struct link_request {
34 LEADER Leader; 32 LEADER Leader;
35 UCHAR szData[4]; 33 UCHAR szData[4];
36}__attribute__((packed)); 34} __attribute__((packed));
37typedef struct link_request LINK_REQUEST, *PLINK_REQUEST; 35typedef struct link_request LINK_REQUEST, *PLINK_REQUEST;
38 36
39
40//classification extension is added 37//classification extension is added
41typedef struct _ADD_CONNECTION { 38typedef struct _ADD_CONNECTION {
42 ULONG SrcIpAddressCount; 39 ULONG SrcIpAddressCount;
43 ULONG SrcIpAddress[MAX_CONNECTIONS]; 40 ULONG SrcIpAddress[MAX_CONNECTIONS];
44 ULONG SrcIpMask[MAX_CONNECTIONS]; 41 ULONG SrcIpMask[MAX_CONNECTIONS];
45 42
46 ULONG DestIpAddressCount; 43 ULONG DestIpAddressCount;
47 ULONG DestIpAddress[MAX_CONNECTIONS]; 44 ULONG DestIpAddress[MAX_CONNECTIONS];
48 ULONG DestIpMask[MAX_CONNECTIONS]; 45 ULONG DestIpMask[MAX_CONNECTIONS];
49 46
50 USHORT SrcPortBegin; 47 USHORT SrcPortBegin;
51 USHORT SrcPortEnd; 48 USHORT SrcPortEnd;
52 49
53 USHORT DestPortBegin; 50 USHORT DestPortBegin;
54 USHORT DestPortEnd; 51 USHORT DestPortEnd;
55
56 UCHAR SrcTOS;
57 UCHAR SrcProtocol;
58} ADD_CONNECTION,*PADD_CONNECTION;
59 52
53 UCHAR SrcTOS;
54 UCHAR SrcProtocol;
55} ADD_CONNECTION, *PADD_CONNECTION;
60 56
61typedef struct _CLASSIFICATION_RULE { 57typedef struct _CLASSIFICATION_RULE {
62 UCHAR ucIPSrcAddrLen; 58 UCHAR ucIPSrcAddrLen;
63 UCHAR ucIPSrcAddr[32]; 59 UCHAR ucIPSrcAddr[32];
64 UCHAR ucIPDestAddrLen; 60 UCHAR ucIPDestAddrLen;
65 UCHAR ucIPDestAddr[32]; 61 UCHAR ucIPDestAddr[32];
66 UCHAR ucSrcPortRangeLen; 62 UCHAR ucSrcPortRangeLen;
67 UCHAR ucSrcPortRange[4]; 63 UCHAR ucSrcPortRange[4];
68 UCHAR ucDestPortRangeLen; 64 UCHAR ucDestPortRangeLen;
69 UCHAR ucDestPortRange[4]; 65 UCHAR ucDestPortRange[4];
70 USHORT usVcid; 66 USHORT usVcid;
71} CLASSIFICATION_RULE,*PCLASSIFICATION_RULE; 67} CLASSIFICATION_RULE, *PCLASSIFICATION_RULE;
72 68
73typedef struct _CLASSIFICATION_ONLY { 69typedef struct _CLASSIFICATION_ONLY {
74 USHORT usVcid; 70 USHORT usVcid;
75 ULONG DestIpAddress; 71 ULONG DestIpAddress;
76 ULONG DestIpMask; 72 ULONG DestIpMask;
77 USHORT usPortLo; 73 USHORT usPortLo;
78 USHORT usPortHi; 74 USHORT usPortHi;
79 BOOLEAN bIpVersion; 75 BOOLEAN bIpVersion;
80 UCHAR ucDestinationAddress[16]; 76 UCHAR ucDestinationAddress[16];
81} CLASSIFICATION_ONLY, *PCLASSIFICATION_ONLY; 77} CLASSIFICATION_ONLY, *PCLASSIFICATION_ONLY;
82 78
83
84#define MAX_IP_RANGE_LENGTH 4 79#define MAX_IP_RANGE_LENGTH 4
85#define MAX_PORT_RANGE 4 80#define MAX_PORT_RANGE 4
86#define MAX_PROTOCOL_LENGTH 32 81#define MAX_PROTOCOL_LENGTH 32
87#define IPV6_ADDRESS_SIZEINBYTES 0x10 82#define IPV6_ADDRESS_SIZEINBYTES 0x10
88 83
89typedef union _U_IP_ADDRESS { 84typedef union _U_IP_ADDRESS {
90 struct { 85 struct {
91 ULONG ulIpv4Addr[MAX_IP_RANGE_LENGTH];//Source Ip Address Range 86 ULONG ulIpv4Addr[MAX_IP_RANGE_LENGTH];//Source Ip Address Range
92 ULONG ulIpv4Mask[MAX_IP_RANGE_LENGTH];//Source Ip Mask Address Range 87 ULONG ulIpv4Mask[MAX_IP_RANGE_LENGTH];//Source Ip Mask Address Range
93 }; 88 };
94 struct { 89 struct {
95 ULONG ulIpv6Addr[MAX_IP_RANGE_LENGTH * 4];//Source Ip Address Range 90 ULONG ulIpv6Addr[MAX_IP_RANGE_LENGTH * 4];//Source Ip Address Range
96 ULONG ulIpv6Mask[MAX_IP_RANGE_LENGTH * 4];//Source Ip Mask Address Range 91 ULONG ulIpv6Mask[MAX_IP_RANGE_LENGTH * 4];//Source Ip Mask Address Range
97
98 }; 92 };
99 struct { 93 struct {
100 UCHAR ucIpv4Address[MAX_IP_RANGE_LENGTH * IP_LENGTH_OF_ADDRESS]; 94 UCHAR ucIpv4Address[MAX_IP_RANGE_LENGTH * IP_LENGTH_OF_ADDRESS];
101 UCHAR ucIpv4Mask[MAX_IP_RANGE_LENGTH * IP_LENGTH_OF_ADDRESS]; 95 UCHAR ucIpv4Mask[MAX_IP_RANGE_LENGTH * IP_LENGTH_OF_ADDRESS];
102 }; 96 };
103 struct { 97 struct {
104 UCHAR ucIpv6Address[MAX_IP_RANGE_LENGTH * IPV6_ADDRESS_SIZEINBYTES]; 98 UCHAR ucIpv6Address[MAX_IP_RANGE_LENGTH * IPV6_ADDRESS_SIZEINBYTES];
105 UCHAR ucIpv6Mask[MAX_IP_RANGE_LENGTH * IPV6_ADDRESS_SIZEINBYTES]; 99 UCHAR ucIpv6Mask[MAX_IP_RANGE_LENGTH * IPV6_ADDRESS_SIZEINBYTES];
106 }; 100 };
107}U_IP_ADDRESS; 101} U_IP_ADDRESS;
108struct _packet_info; 102struct _packet_info;
109 103
110typedef struct _S_HDR_SUPRESSION_CONTEXTINFO { 104typedef struct _S_HDR_SUPRESSION_CONTEXTINFO {
105 UCHAR ucaHdrSupressionInBuf[MAX_PHS_LENGTHS]; //Intermediate buffer to accumulate pkt Header for PHS
106 UCHAR ucaHdrSupressionOutBuf[MAX_PHS_LENGTHS + PHSI_LEN]; //Intermediate buffer containing pkt Header after PHS
107} S_HDR_SUPRESSION_CONTEXTINFO;
111 108
112 UCHAR ucaHdrSupressionInBuf[MAX_PHS_LENGTHS]; //Intermediate buffer to accumulate pkt Header for PHS 109typedef struct _S_CLASSIFIER_RULE {
113 UCHAR ucaHdrSupressionOutBuf[MAX_PHS_LENGTHS + PHSI_LEN]; //Intermediate buffer containing pkt Header after PHS 110 ULONG ulSFID;
111 UCHAR ucReserved[2];
112 B_UINT16 uiClassifierRuleIndex;
113 BOOLEAN bUsed;
114 USHORT usVCID_Value;
115 B_UINT8 u8ClassifierRulePriority; //This field detemines the Classifier Priority
116 U_IP_ADDRESS stSrcIpAddress;
117 UCHAR ucIPSourceAddressLength;//Ip Source Address Length
114 118
115}S_HDR_SUPRESSION_CONTEXTINFO; 119 U_IP_ADDRESS stDestIpAddress;
120 UCHAR ucIPDestinationAddressLength;//Ip Destination Address Length
121 UCHAR ucIPTypeOfServiceLength;//Type of service Length
122 UCHAR ucTosLow;//Tos Low
123 UCHAR ucTosHigh;//Tos High
124 UCHAR ucTosMask;//Tos Mask
116 125
126 UCHAR ucProtocolLength;//protocol Length
127 UCHAR ucProtocol[MAX_PROTOCOL_LENGTH];//protocol Length
128 USHORT usSrcPortRangeLo[MAX_PORT_RANGE];
129 USHORT usSrcPortRangeHi[MAX_PORT_RANGE];
130 UCHAR ucSrcPortRangeLength;
117 131
118typedef struct _S_CLASSIFIER_RULE { 132 USHORT usDestPortRangeLo[MAX_PORT_RANGE];
119 ULONG ulSFID; 133 USHORT usDestPortRangeHi[MAX_PORT_RANGE];
120 UCHAR ucReserved[2]; 134 UCHAR ucDestPortRangeLength;
121 B_UINT16 uiClassifierRuleIndex; 135
122 BOOLEAN bUsed; 136 BOOLEAN bProtocolValid;
123 USHORT usVCID_Value; 137 BOOLEAN bTOSValid;
124 B_UINT8 u8ClassifierRulePriority; //This field detemines the Classifier Priority 138 BOOLEAN bDestIpValid;
125 U_IP_ADDRESS stSrcIpAddress; 139 BOOLEAN bSrcIpValid;
126 UCHAR ucIPSourceAddressLength;//Ip Source Address Length
127
128 U_IP_ADDRESS stDestIpAddress;
129 UCHAR ucIPDestinationAddressLength;//Ip Destination Address Length
130 UCHAR ucIPTypeOfServiceLength;//Type of service Length
131 UCHAR ucTosLow;//Tos Low
132 UCHAR ucTosHigh;//Tos High
133 UCHAR ucTosMask;//Tos Mask
134
135 UCHAR ucProtocolLength;//protocol Length
136 UCHAR ucProtocol[MAX_PROTOCOL_LENGTH];//protocol Length
137 USHORT usSrcPortRangeLo[MAX_PORT_RANGE];
138 USHORT usSrcPortRangeHi[MAX_PORT_RANGE];
139 UCHAR ucSrcPortRangeLength;
140
141 USHORT usDestPortRangeLo[MAX_PORT_RANGE];
142 USHORT usDestPortRangeHi[MAX_PORT_RANGE];
143 UCHAR ucDestPortRangeLength;
144
145 BOOLEAN bProtocolValid;
146 BOOLEAN bTOSValid;
147 BOOLEAN bDestIpValid;
148 BOOLEAN bSrcIpValid;
149 140
150 //For IPv6 Addressing 141 //For IPv6 Addressing
151 UCHAR ucDirection; 142 UCHAR ucDirection;
152 BOOLEAN bIpv6Protocol; 143 BOOLEAN bIpv6Protocol;
153 UINT32 u32PHSRuleID; 144 UINT32 u32PHSRuleID;
154 S_PHS_RULE sPhsRule; 145 S_PHS_RULE sPhsRule;
155 UCHAR u8AssociatedPHSI; 146 UCHAR u8AssociatedPHSI;
156 147
157 //Classification fields for ETH CS 148 //Classification fields for ETH CS
158 UCHAR ucEthCSSrcMACLen; 149 UCHAR ucEthCSSrcMACLen;
@@ -166,66 +157,67 @@ typedef struct _S_CLASSIFIER_RULE {
166 UCHAR usUserPriority[2]; 157 UCHAR usUserPriority[2];
167 USHORT usVLANID; 158 USHORT usVLANID;
168 USHORT usValidityBitMap; 159 USHORT usValidityBitMap;
169}S_CLASSIFIER_RULE; 160} S_CLASSIFIER_RULE;
170//typedef struct _S_CLASSIFIER_RULE S_CLASSIFIER_RULE; 161//typedef struct _S_CLASSIFIER_RULE S_CLASSIFIER_RULE;
171 162
172typedef struct _S_FRAGMENTED_PACKET_INFO { 163typedef struct _S_FRAGMENTED_PACKET_INFO {
173 BOOLEAN bUsed; 164 BOOLEAN bUsed;
174 ULONG ulSrcIpAddress; 165 ULONG ulSrcIpAddress;
175 USHORT usIpIdentification; 166 USHORT usIpIdentification;
176 S_CLASSIFIER_RULE *pstMatchedClassifierEntry; 167 S_CLASSIFIER_RULE *pstMatchedClassifierEntry;
177 BOOLEAN bOutOfOrderFragment; 168 BOOLEAN bOutOfOrderFragment;
178}S_FRAGMENTED_PACKET_INFO,*PS_FRAGMENTED_PACKET_INFO; 169} S_FRAGMENTED_PACKET_INFO, *PS_FRAGMENTED_PACKET_INFO;
179 170
180struct _packet_info { 171struct _packet_info {
181 //classification extension Rule 172 //classification extension Rule
182 ULONG ulSFID; 173 ULONG ulSFID;
183 USHORT usVCID_Value; 174 USHORT usVCID_Value;
184 UINT uiThreshold; 175 UINT uiThreshold;
185 // This field determines the priority of the SF Queues 176 // This field determines the priority of the SF Queues
186 B_UINT8 u8TrafficPriority; 177 B_UINT8 u8TrafficPriority;
187 178
188 BOOLEAN bValid; 179 BOOLEAN bValid;
189 BOOLEAN bActive; 180 BOOLEAN bActive;
190 BOOLEAN bActivateRequestSent; 181 BOOLEAN bActivateRequestSent;
191 182
192 B_UINT8 u8QueueType;//BE or rtPS 183 B_UINT8 u8QueueType;//BE or rtPS
193 184
194 UINT uiMaxBucketSize;//maximum size of the bucket for the queue 185 UINT uiMaxBucketSize;//maximum size of the bucket for the queue
195 UINT uiCurrentQueueDepthOnTarget; 186 UINT uiCurrentQueueDepthOnTarget;
196 UINT uiCurrentBytesOnHost; 187 UINT uiCurrentBytesOnHost;
197 UINT uiCurrentPacketsOnHost; 188 UINT uiCurrentPacketsOnHost;
198 UINT uiDroppedCountBytes; 189 UINT uiDroppedCountBytes;
199 UINT uiDroppedCountPackets; 190 UINT uiDroppedCountPackets;
200 UINT uiSentBytes; 191 UINT uiSentBytes;
201 UINT uiSentPackets; 192 UINT uiSentPackets;
202 UINT uiCurrentDrainRate; 193 UINT uiCurrentDrainRate;
203 UINT uiThisPeriodSentBytes; 194 UINT uiThisPeriodSentBytes;
204 LARGE_INTEGER liDrainCalculated; 195 LARGE_INTEGER liDrainCalculated;
205 UINT uiCurrentTokenCount; 196 UINT uiCurrentTokenCount;
206 LARGE_INTEGER liLastUpdateTokenAt; 197 LARGE_INTEGER liLastUpdateTokenAt;
207 UINT uiMaxAllowedRate; 198 UINT uiMaxAllowedRate;
208 UINT NumOfPacketsSent; 199 UINT NumOfPacketsSent;
209 UCHAR ucDirection; 200 UCHAR ucDirection;
210 USHORT usCID; 201 USHORT usCID;
211 S_MIBS_EXTSERVICEFLOW_PARAMETERS stMibsExtServiceFlowTable; 202 S_MIBS_EXTSERVICEFLOW_PARAMETERS stMibsExtServiceFlowTable;
212 UINT uiCurrentRxRate; 203 UINT uiCurrentRxRate;
213 UINT uiThisPeriodRxBytes; 204 UINT uiThisPeriodRxBytes;
214 UINT uiTotalRxBytes; 205 UINT uiTotalRxBytes;
215 UINT uiTotalTxBytes; 206 UINT uiTotalTxBytes;
216 UINT uiPendedLast; 207 UINT uiPendedLast;
217 UCHAR ucIpVersion; 208 UCHAR ucIpVersion;
218 209
219 union { 210 union {
220 struct { 211 struct {
221 struct sk_buff* FirstTxQueue; 212 struct sk_buff *FirstTxQueue;
222 struct sk_buff* LastTxQueue; 213 struct sk_buff *LastTxQueue;
223 }; 214 };
224 struct { 215 struct {
225 struct sk_buff* ControlHead; 216 struct sk_buff *ControlHead;
226 struct sk_buff* ControlTail; 217 struct sk_buff *ControlTail;
227 }; 218 };
228 }; 219 };
220
229 BOOLEAN bProtocolValid; 221 BOOLEAN bProtocolValid;
230 BOOLEAN bTOSValid; 222 BOOLEAN bTOSValid;
231 BOOLEAN bDestIpValid; 223 BOOLEAN bDestIpValid;
@@ -236,107 +228,101 @@ struct _packet_info {
236 BOOLEAN bAuthorizedSet; 228 BOOLEAN bAuthorizedSet;
237 BOOLEAN bClassifierPriority; 229 BOOLEAN bClassifierPriority;
238 UCHAR ucServiceClassName[MAX_CLASS_NAME_LENGTH]; 230 UCHAR ucServiceClassName[MAX_CLASS_NAME_LENGTH];
239 BOOLEAN bHeaderSuppressionEnabled; 231 BOOLEAN bHeaderSuppressionEnabled;
240 spinlock_t SFQueueLock; 232 spinlock_t SFQueueLock;
241 void *pstSFIndication; 233 void *pstSFIndication;
242 struct timeval stLastUpdateTokenAt; 234 struct timeval stLastUpdateTokenAt;
243 atomic_t uiPerSFTxResourceCount; 235 atomic_t uiPerSFTxResourceCount;
244 UINT uiMaxLatency; 236 UINT uiMaxLatency;
245 UCHAR bIPCSSupport; 237 UCHAR bIPCSSupport;
246 UCHAR bEthCSSupport; 238 UCHAR bEthCSSupport;
247}; 239};
248typedef struct _packet_info PacketInfo; 240typedef struct _packet_info PacketInfo;
249 241
250
251typedef struct _PER_TARANG_DATA { 242typedef struct _PER_TARANG_DATA {
252 struct _PER_TARANG_DATA * next; 243 struct _PER_TARANG_DATA *next;
253 struct _MINI_ADAPTER * Adapter; 244 struct _MINI_ADAPTER *Adapter;
254 struct sk_buff* RxAppControlHead; 245 struct sk_buff *RxAppControlHead;
255 struct sk_buff* RxAppControlTail; 246 struct sk_buff *RxAppControlTail;
256 volatile INT AppCtrlQueueLen; 247 volatile INT AppCtrlQueueLen;
257 BOOLEAN MacTracingEnabled; 248 BOOLEAN MacTracingEnabled;
258 BOOLEAN bApplicationToExit; 249 BOOLEAN bApplicationToExit;
259 S_MIBS_DROPPED_APP_CNTRL_MESSAGES stDroppedAppCntrlMsgs; 250 S_MIBS_DROPPED_APP_CNTRL_MESSAGES stDroppedAppCntrlMsgs;
260 ULONG RxCntrlMsgBitMask; 251 ULONG RxCntrlMsgBitMask;
261} PER_TARANG_DATA, *PPER_TARANG_DATA; 252} PER_TARANG_DATA, *PPER_TARANG_DATA;
262 253
263
264#ifdef REL_4_1 254#ifdef REL_4_1
265typedef struct _TARGET_PARAMS { 255typedef struct _TARGET_PARAMS {
266 B_UINT32 m_u32CfgVersion; 256 B_UINT32 m_u32CfgVersion;
267 257
268 // Scanning Related Params 258 // Scanning Related Params
269 B_UINT32 m_u32CenterFrequency; 259 B_UINT32 m_u32CenterFrequency;
270 B_UINT32 m_u32BandAScan; 260 B_UINT32 m_u32BandAScan;
271 B_UINT32 m_u32BandBScan; 261 B_UINT32 m_u32BandBScan;
272 B_UINT32 m_u32BandCScan; 262 B_UINT32 m_u32BandCScan;
273 263
274 // QoS Params 264 // QoS Params
275 B_UINT32 m_u32minGrantsize; // size of minimum grant is 0 or 6 265 B_UINT32 m_u32minGrantsize; // size of minimum grant is 0 or 6
276 B_UINT32 m_u32PHSEnable; 266 B_UINT32 m_u32PHSEnable;
277 267
278 // HO Params 268 // HO Params
279 B_UINT32 m_u32HoEnable; 269 B_UINT32 m_u32HoEnable;
280 B_UINT32 m_u32HoReserved1; 270 B_UINT32 m_u32HoReserved1;
281 B_UINT32 m_u32HoReserved2; 271 B_UINT32 m_u32HoReserved2;
282 272
283 // Power Control Params 273 // Power Control Params
284 B_UINT32 m_u32MimoEnable; 274 B_UINT32 m_u32MimoEnable;
285 B_UINT32 m_u32SecurityEnable; 275 B_UINT32 m_u32SecurityEnable;
286 /* 276 /*
287 * bit 1: 1 Idlemode enable; 277 * bit 1: 1 Idlemode enable;
288 * bit 2: 1 Sleepmode Enable 278 * bit 2: 1 Sleepmode Enable
289 */ 279 */
290 B_UINT32 m_u32PowerSavingModesEnable; 280 B_UINT32 m_u32PowerSavingModesEnable;
291 /* PowerSaving Mode Options: 281 /* PowerSaving Mode Options:
292 bit 0 = 1: CPE mode - to keep pcmcia if alive; 282 bit 0 = 1: CPE mode - to keep pcmcia if alive;
293 bit 1 = 1: CINR reporing in Idlemode Msg 283 bit 1 = 1: CINR reporing in Idlemode Msg
294 bit 2 = 1: Default PSC Enable in sleepmode*/ 284 bit 2 = 1: Default PSC Enable in sleepmode*/
295 B_UINT32 m_u32PowerSavingModeOptions; 285 B_UINT32 m_u32PowerSavingModeOptions;
296 286
297 B_UINT32 m_u32ArqEnable; 287 B_UINT32 m_u32ArqEnable;
298 288
299 // From Version #3, the HARQ section renamed as general 289 // From Version #3, the HARQ section renamed as general
300 B_UINT32 m_u32HarqEnable; 290 B_UINT32 m_u32HarqEnable;
301 // EEPROM Param Location 291 // EEPROM Param Location
302 B_UINT32 m_u32EEPROMFlag; 292 B_UINT32 m_u32EEPROMFlag;
303 /* BINARY TYPE - 4th MSByte: 293 /* BINARY TYPE - 4th MSByte:
304 * Interface Type - 3rd MSByte: 294 * Interface Type - 3rd MSByte:
305 * Vendor Type - 2nd MSByte 295 * Vendor Type - 2nd MSByte
306 */ 296 */
307 // Unused - LSByte 297 // Unused - LSByte
308 B_UINT32 m_u32Customize; 298 B_UINT32 m_u32Customize;
309 B_UINT32 m_u32ConfigBW; /* In Hz */ 299 B_UINT32 m_u32ConfigBW; /* In Hz */
310 B_UINT32 m_u32ShutDownTimer; 300 B_UINT32 m_u32ShutDownTimer;
311 301 B_UINT32 m_u32RadioParameter;
312 302 B_UINT32 m_u32PhyParameter1;
313 B_UINT32 m_u32RadioParameter; 303 B_UINT32 m_u32PhyParameter2;
314 B_UINT32 m_u32PhyParameter1; 304 B_UINT32 m_u32PhyParameter3;
315 B_UINT32 m_u32PhyParameter2;
316 B_UINT32 m_u32PhyParameter3;
317 305
318 /* in eval mode only; 306 /* in eval mode only;
319 * lower 16bits = basic cid for testing; 307 * lower 16bits = basic cid for testing;
320 * then bit 16 is test cqich, 308 * then bit 16 is test cqich,
321 * bit 17 test init rang; 309 * bit 17 test init rang;
322 * bit 18 test periodic rang 310 * bit 18 test periodic rang
323 * bit 19 is test harq ack/nack 311 * bit 19 is test harq ack/nack
324 */ 312 */
325 B_UINT32 m_u32TestOptions; 313 B_UINT32 m_u32TestOptions;
326
327 B_UINT32 m_u32MaxMACDataperDLFrame; 314 B_UINT32 m_u32MaxMACDataperDLFrame;
328 B_UINT32 m_u32MaxMACDataperULFrame; 315 B_UINT32 m_u32MaxMACDataperULFrame;
329
330 B_UINT32 m_u32Corr2MacFlags; 316 B_UINT32 m_u32Corr2MacFlags;
331 317
332 //adding driver params. 318 //adding driver params.
333 B_UINT32 HostDrvrConfig1; 319 B_UINT32 HostDrvrConfig1;
334 B_UINT32 HostDrvrConfig2; 320 B_UINT32 HostDrvrConfig2;
335 B_UINT32 HostDrvrConfig3; 321 B_UINT32 HostDrvrConfig3;
336 B_UINT32 HostDrvrConfig4; 322 B_UINT32 HostDrvrConfig4;
337 B_UINT32 HostDrvrConfig5; 323 B_UINT32 HostDrvrConfig5;
338 B_UINT32 HostDrvrConfig6; 324 B_UINT32 HostDrvrConfig6;
339 B_UINT32 m_u32SegmentedPUSCenable; 325 B_UINT32 m_u32SegmentedPUSCenable;
340 326
341 // BAMC enable - but 4.x does not support this feature 327 // BAMC enable - but 4.x does not support this feature
342 // This is added just to sync 4.x and 5.x CFGs 328 // This is added just to sync 4.x and 5.x CFGs
@@ -345,113 +331,105 @@ typedef struct _TARGET_PARAMS {
345#endif 331#endif
346 332
347typedef struct _STTARGETDSXBUFFER { 333typedef struct _STTARGETDSXBUFFER {
348 ULONG ulTargetDsxBuffer; 334 ULONG ulTargetDsxBuffer;
349 B_UINT16 tid; 335 B_UINT16 tid;
350 BOOLEAN valid; 336 BOOLEAN valid;
351}STTARGETDSXBUFFER, *PSTTARGETDSXBUFFER; 337} STTARGETDSXBUFFER, *PSTTARGETDSXBUFFER;
352 338
353typedef INT (*FP_FLASH_WRITE)(struct _MINI_ADAPTER*,UINT,PVOID); 339typedef INT (*FP_FLASH_WRITE)(struct _MINI_ADAPTER *, UINT, PVOID);
354 340
355typedef INT (*FP_FLASH_WRITE_STATUS)(struct _MINI_ADAPTER*,UINT,PVOID); 341typedef INT (*FP_FLASH_WRITE_STATUS)(struct _MINI_ADAPTER *, UINT, PVOID);
356 342
357/** 343/**
358Driver adapter data structure 344 Driver adapter data structure
359*/ 345*/
360struct _MINI_ADAPTER { 346struct _MINI_ADAPTER {
361 struct _MINI_ADAPTER *next; 347 struct _MINI_ADAPTER *next;
362 struct net_device *dev; 348 struct net_device *dev;
363 u32 msg_enable; 349 u32 msg_enable;
364 350 CHAR *caDsxReqResp;
365 CHAR *caDsxReqResp;
366 atomic_t ApplicationRunning; 351 atomic_t ApplicationRunning;
367 volatile INT CtrlQueueLen; 352 volatile INT CtrlQueueLen;
368 atomic_t AppCtrlQueueLen; 353 atomic_t AppCtrlQueueLen;
369 BOOLEAN AppCtrlQueueOverFlow; 354 BOOLEAN AppCtrlQueueOverFlow;
370 atomic_t CurrentApplicationCount; 355 atomic_t CurrentApplicationCount;
371 atomic_t RegisteredApplicationCount; 356 atomic_t RegisteredApplicationCount;
372 BOOLEAN LinkUpStatus; 357 BOOLEAN LinkUpStatus;
373 BOOLEAN TimerActive; 358 BOOLEAN TimerActive;
374 u32 StatisticsPointer; 359 u32 StatisticsPointer;
375 struct sk_buff *RxControlHead; 360 struct sk_buff *RxControlHead;
376 struct sk_buff *RxControlTail; 361 struct sk_buff *RxControlTail;
377
378 struct semaphore RxAppControlQueuelock; 362 struct semaphore RxAppControlQueuelock;
379 struct semaphore fw_download_sema; 363 struct semaphore fw_download_sema;
380 364 PPER_TARANG_DATA pTarangs;
381 PPER_TARANG_DATA pTarangs; 365 spinlock_t control_queue_lock;
382 spinlock_t control_queue_lock;
383 wait_queue_head_t process_read_wait_queue; 366 wait_queue_head_t process_read_wait_queue;
384 367
385 // the pointer to the first packet we have queued in send 368 // the pointer to the first packet we have queued in send
386 // deserialized miniport support variables 369 // deserialized miniport support variables
387 atomic_t TotalPacketCount; 370 atomic_t TotalPacketCount;
388 atomic_t TxPktAvail; 371 atomic_t TxPktAvail;
389 372
390 // this to keep track of the Tx and Rx MailBox Registers. 373 // this to keep track of the Tx and Rx MailBox Registers.
391 atomic_t CurrNumFreeTxDesc; 374 atomic_t CurrNumFreeTxDesc;
392 // to keep track the no of byte received 375 // to keep track the no of byte received
393 USHORT PrevNumRecvDescs; 376 USHORT PrevNumRecvDescs;
394 USHORT CurrNumRecvDescs; 377 USHORT CurrNumRecvDescs;
395 UINT u32TotalDSD; 378 UINT u32TotalDSD;
396 PacketInfo PackInfo[NO_OF_QUEUES]; 379 PacketInfo PackInfo[NO_OF_QUEUES];
397 S_CLASSIFIER_RULE astClassifierTable[MAX_CLASSIFIERS]; 380 S_CLASSIFIER_RULE astClassifierTable[MAX_CLASSIFIERS];
398 BOOLEAN TransferMode; 381 BOOLEAN TransferMode;
399 382
400 /*************** qos ******************/ 383 /*************** qos ******************/
401 BOOLEAN bETHCSEnabled; 384 BOOLEAN bETHCSEnabled;
402 385 ULONG BEBucketSize;
403 ULONG BEBucketSize; 386 ULONG rtPSBucketSize;
404 ULONG rtPSBucketSize; 387 UCHAR LinkStatus;
405 UCHAR LinkStatus; 388 BOOLEAN AutoLinkUp;
406 BOOLEAN AutoLinkUp; 389 BOOLEAN AutoSyncup;
407 BOOLEAN AutoSyncup; 390
408 391 int major;
409 int major; 392 int minor;
410 int minor; 393 wait_queue_head_t tx_packet_wait_queue;
411 wait_queue_head_t tx_packet_wait_queue; 394 wait_queue_head_t process_rx_cntrlpkt;
412 wait_queue_head_t process_rx_cntrlpkt; 395 atomic_t process_waiting;
413 atomic_t process_waiting; 396 BOOLEAN fw_download_done;
414 BOOLEAN fw_download_done; 397
415 398 char *txctlpacket[MAX_CNTRL_PKTS];
416 char *txctlpacket[MAX_CNTRL_PKTS]; 399 atomic_t cntrlpktCnt ;
417 atomic_t cntrlpktCnt ; 400 atomic_t index_app_read_cntrlpkt;
418 atomic_t index_app_read_cntrlpkt; 401 atomic_t index_wr_txcntrlpkt;
419 atomic_t index_wr_txcntrlpkt; 402 atomic_t index_rd_txcntrlpkt;
420 atomic_t index_rd_txcntrlpkt; 403 UINT index_datpkt;
421 UINT index_datpkt; 404 struct semaphore rdmwrmsync;
422 struct semaphore rdmwrmsync;
423 405
424 STTARGETDSXBUFFER astTargetDsxBuffer[MAX_TARGET_DSX_BUFFERS]; 406 STTARGETDSXBUFFER astTargetDsxBuffer[MAX_TARGET_DSX_BUFFERS];
425 ULONG ulFreeTargetBufferCnt; 407 ULONG ulFreeTargetBufferCnt;
426 ULONG ulCurrentTargetBuffer; 408 ULONG ulCurrentTargetBuffer;
427 ULONG ulTotalTargetBuffersAvailable; 409 ULONG ulTotalTargetBuffersAvailable;
428 410 unsigned long chip_id;
429 unsigned long chip_id; 411 wait_queue_head_t lowpower_mode_wait_queue;
430
431 wait_queue_head_t lowpower_mode_wait_queue;
432
433 BOOLEAN bFlashBoot; 412 BOOLEAN bFlashBoot;
434 BOOLEAN bBinDownloaded; 413 BOOLEAN bBinDownloaded;
435 BOOLEAN bCfgDownloaded; 414 BOOLEAN bCfgDownloaded;
436 BOOLEAN bSyncUpRequestSent; 415 BOOLEAN bSyncUpRequestSent;
437 USHORT usBestEffortQueueIndex; 416 USHORT usBestEffortQueueIndex;
438 417 wait_queue_head_t ioctl_fw_dnld_wait_queue;
439 wait_queue_head_t ioctl_fw_dnld_wait_queue; 418 BOOLEAN waiting_to_fw_download_done;
440 BOOLEAN waiting_to_fw_download_done; 419 pid_t fw_download_process_pid;
441 pid_t fw_download_process_pid;
442 PSTARGETPARAMS pstargetparams; 420 PSTARGETPARAMS pstargetparams;
443 BOOLEAN device_removed; 421 BOOLEAN device_removed;
444 BOOLEAN DeviceAccess; 422 BOOLEAN DeviceAccess;
445 BOOLEAN bIsAutoCorrectEnabled; 423 BOOLEAN bIsAutoCorrectEnabled;
446 BOOLEAN bDDRInitDone; 424 BOOLEAN bDDRInitDone;
447 INT DDRSetting; 425 INT DDRSetting;
448 ULONG ulPowerSaveMode; 426 ULONG ulPowerSaveMode;
449 spinlock_t txtransmitlock; 427 spinlock_t txtransmitlock;
450 B_UINT8 txtransmit_running; 428 B_UINT8 txtransmit_running;
451 /* Thread for control packet handling */ 429 /* Thread for control packet handling */
452 struct task_struct *control_packet_handler; 430 struct task_struct *control_packet_handler;
453 /* thread for transmitting packets. */ 431 /* thread for transmitting packets. */
454 struct task_struct *transmit_packet_thread; 432 struct task_struct *transmit_packet_thread;
455 433
456 /* LED Related Structures */ 434 /* LED Related Structures */
457 LED_INFO_STRUCT LEDInfo; 435 LED_INFO_STRUCT LEDInfo;
@@ -459,20 +437,20 @@ struct _MINI_ADAPTER {
459 /* Driver State for LED Blinking */ 437 /* Driver State for LED Blinking */
460 LedEventInfo_t DriverState; 438 LedEventInfo_t DriverState;
461 /* Interface Specific */ 439 /* Interface Specific */
462 PVOID pvInterfaceAdapter; 440 PVOID pvInterfaceAdapter;
463 int (*bcm_file_download)( PVOID, 441 int (*bcm_file_download)(PVOID,
464 struct file *, 442 struct file *,
465 unsigned int); 443 unsigned int);
466 int (*bcm_file_readback_from_chip)( PVOID, 444 int (*bcm_file_readback_from_chip)(PVOID,
467 struct file *, 445 struct file *,
468 unsigned int); 446 unsigned int);
469 INT (*interface_rdm)(PVOID, 447 INT (*interface_rdm)(PVOID,
470 UINT , 448 UINT,
471 PVOID , 449 PVOID,
472 INT); 450 INT);
473 INT (*interface_wrm)(PVOID, 451 INT (*interface_wrm)(PVOID,
474 UINT , 452 UINT,
475 PVOID , 453 PVOID,
476 INT); 454 INT);
477 int (*interface_transmit)(PVOID, PVOID , UINT); 455 int (*interface_transmit)(PVOID, PVOID , UINT);
478 BOOLEAN IdleMode; 456 BOOLEAN IdleMode;
@@ -480,18 +458,17 @@ struct _MINI_ADAPTER {
480 BOOLEAN bTriedToWakeUpFromlowPowerMode; 458 BOOLEAN bTriedToWakeUpFromlowPowerMode;
481 BOOLEAN bShutStatus; 459 BOOLEAN bShutStatus;
482 BOOLEAN bWakeUpDevice; 460 BOOLEAN bWakeUpDevice;
483 unsigned int usIdleModePattern; 461 unsigned int usIdleModePattern;
484 //BOOLEAN bTriedToWakeUpFromShutdown; 462 //BOOLEAN bTriedToWakeUpFromShutdown;
485 BOOLEAN bLinkDownRequested; 463 BOOLEAN bLinkDownRequested;
486 464 int downloadDDR;
487 int downloadDDR; 465 PHS_DEVICE_EXTENSION stBCMPhsContext;
488 PHS_DEVICE_EXTENSION stBCMPhsContext; 466 S_HDR_SUPRESSION_CONTEXTINFO stPhsTxContextInfo;
489 S_HDR_SUPRESSION_CONTEXTINFO stPhsTxContextInfo;
490 uint8_t ucaPHSPktRestoreBuf[2048]; 467 uint8_t ucaPHSPktRestoreBuf[2048];
491 uint8_t bPHSEnabled; 468 uint8_t bPHSEnabled;
492 BOOLEAN AutoFirmDld; 469 BOOLEAN AutoFirmDld;
493 BOOLEAN bMipsConfig; 470 BOOLEAN bMipsConfig;
494 BOOLEAN bDPLLConfig; 471 BOOLEAN bDPLLConfig;
495 UINT32 aTxPktSizeHist[MIBS_MAX_HIST_ENTRIES]; 472 UINT32 aTxPktSizeHist[MIBS_MAX_HIST_ENTRIES];
496 UINT32 aRxPktSizeHist[MIBS_MAX_HIST_ENTRIES]; 473 UINT32 aRxPktSizeHist[MIBS_MAX_HIST_ENTRIES];
497 S_FRAGMENTED_PACKET_INFO astFragmentedPktClassifierTable[MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES]; 474 S_FRAGMENTED_PACKET_INFO astFragmentedPktClassifierTable[MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES];
@@ -504,106 +481,99 @@ struct _MINI_ADAPTER {
504 BOOLEAN bStatusWrite; 481 BOOLEAN bStatusWrite;
505 UINT uiNVMDSDSize; 482 UINT uiNVMDSDSize;
506 UINT uiVendorExtnFlag; 483 UINT uiVendorExtnFlag;
507 //it will always represent chosen DSD at any point of time. 484 //it will always represent chosen DSD at any point of time.
508 // Generally it is Active DSD but in case of NVM RD/WR it might be different. 485 // Generally it is Active DSD but in case of NVM RD/WR it might be different.
509 UINT ulFlashCalStart; 486 UINT ulFlashCalStart;
510 ULONG ulFlashControlSectionStart; 487 ULONG ulFlashControlSectionStart;
511 ULONG ulFlashWriteSize; 488 ULONG ulFlashWriteSize;
512 ULONG ulFlashID; 489 ULONG ulFlashID;
513 FP_FLASH_WRITE fpFlashWrite; 490 FP_FLASH_WRITE fpFlashWrite;
514 FP_FLASH_WRITE_STATUS fpFlashWriteWithStatusCheck; 491 FP_FLASH_WRITE_STATUS fpFlashWriteWithStatusCheck;
515
516 492
517 struct semaphore NVMRdmWrmLock; 493 struct semaphore NVMRdmWrmLock;
494 struct device *pstCreatedClassDevice;
518 495
519 struct device *pstCreatedClassDevice; 496 // BOOLEAN InterfaceUpStatus;
520 497 PFLASH2X_CS_INFO psFlash2xCSInfo;
521// BOOLEAN InterfaceUpStatus; 498 PFLASH_CS_INFO psFlashCSInfo;
522 PFLASH2X_CS_INFO psFlash2xCSInfo;
523 PFLASH_CS_INFO psFlashCSInfo ;
524 PFLASH2X_VENDORSPECIFIC_INFO psFlash2xVendorInfo; 499 PFLASH2X_VENDORSPECIFIC_INFO psFlash2xVendorInfo;
525 UINT uiFlashBaseAdd; //Flash start address 500 UINT uiFlashBaseAdd; //Flash start address
526 UINT uiActiveISOOffset; //Active ISO offset chosen before f/w download 501 UINT uiActiveISOOffset; //Active ISO offset chosen before f/w download
527 FLASH2X_SECTION_VAL eActiveISO; //Active ISO section val 502 FLASH2X_SECTION_VAL eActiveISO; //Active ISO section val
528 FLASH2X_SECTION_VAL eActiveDSD; //Active DSD val chosen before f/w download 503 FLASH2X_SECTION_VAL eActiveDSD; //Active DSD val chosen before f/w download
529 UINT uiActiveDSDOffsetAtFwDld; //For accessing Active DSD chosen before f/w download 504 UINT uiActiveDSDOffsetAtFwDld; //For accessing Active DSD chosen before f/w download
530 UINT uiFlashLayoutMajorVersion ; 505 UINT uiFlashLayoutMajorVersion;
531 UINT uiFlashLayoutMinorVersion; 506 UINT uiFlashLayoutMinorVersion;
532 BOOLEAN bAllDSDWriteAllow ; 507 BOOLEAN bAllDSDWriteAllow;
533 BOOLEAN bSigCorrupted ; 508 BOOLEAN bSigCorrupted;
534 //this should be set who so ever want to change the Headers. after Wrtie it should be reset immediately. 509 //this should be set who so ever want to change the Headers. after Wrtie it should be reset immediately.
535 BOOLEAN bHeaderChangeAllowed ; 510 BOOLEAN bHeaderChangeAllowed;
536 INT SelectedChip ; 511 INT SelectedChip;
537 BOOLEAN bEndPointHalted; 512 BOOLEAN bEndPointHalted;
538 //while bFlashRawRead will be true, Driver ignore map lay out and consider flash as of without any map. 513 //while bFlashRawRead will be true, Driver ignore map lay out and consider flash as of without any map.
539 BOOLEAN bFlashRawRead; 514 BOOLEAN bFlashRawRead;
540 BOOLEAN bPreparingForLowPowerMode ; 515 BOOLEAN bPreparingForLowPowerMode;
541 BOOLEAN bDoSuspend ; 516 BOOLEAN bDoSuspend;
542 UINT syscfgBefFwDld ; 517 UINT syscfgBefFwDld;
543 BOOLEAN StopAllXaction ; 518 BOOLEAN StopAllXaction;
544 UINT32 liTimeSinceLastNetEntry; //Used to Support extended CAPI requirements from 519 UINT32 liTimeSinceLastNetEntry; //Used to Support extended CAPI requirements from
545 struct semaphore LowPowerModeSync; 520 struct semaphore LowPowerModeSync;
546 ULONG liDrainCalculated; 521 ULONG liDrainCalculated;
547 UINT gpioBitMap; 522 UINT gpioBitMap;
548 523 S_BCM_DEBUG_STATE stDebugState;
549 S_BCM_DEBUG_STATE stDebugState;
550
551}; 524};
552typedef struct _MINI_ADAPTER MINI_ADAPTER, *PMINI_ADAPTER; 525typedef struct _MINI_ADAPTER MINI_ADAPTER, *PMINI_ADAPTER;
553 526
554#define GET_BCM_ADAPTER(net_dev) netdev_priv(net_dev) 527#define GET_BCM_ADAPTER(net_dev) netdev_priv(net_dev)
555 528
556struct _ETH_HEADER_STRUC { 529struct _ETH_HEADER_STRUC {
557 UCHAR au8DestinationAddress[6]; 530 UCHAR au8DestinationAddress[6];
558 UCHAR au8SourceAddress[6]; 531 UCHAR au8SourceAddress[6];
559 USHORT u16Etype; 532 USHORT u16Etype;
560}__attribute__((packed)); 533} __attribute__((packed));
561typedef struct _ETH_HEADER_STRUC ETH_HEADER_STRUC, *PETH_HEADER_STRUC; 534typedef struct _ETH_HEADER_STRUC ETH_HEADER_STRUC, *PETH_HEADER_STRUC;
562 535
563
564typedef struct FirmwareInfo { 536typedef struct FirmwareInfo {
565 void __user * pvMappedFirmwareAddress; 537 void __user *pvMappedFirmwareAddress;
566 ULONG u32FirmwareLength; 538 ULONG u32FirmwareLength;
567 ULONG u32StartingAddress; 539 ULONG u32StartingAddress;
568}__attribute__((packed)) FIRMWARE_INFO, *PFIRMWARE_INFO; 540} __attribute__((packed)) FIRMWARE_INFO, *PFIRMWARE_INFO;
569 541
570// holds the value of net_device structure.. 542// holds the value of net_device structure..
571extern struct net_device *gblpnetdev; 543extern struct net_device *gblpnetdev;
572typedef struct _cntl_pkt{ 544typedef struct _cntl_pkt {
573 PMINI_ADAPTER Adapter; 545 PMINI_ADAPTER Adapter;
574 PLEADER PLeader; 546 PLEADER PLeader;
575}cntl_pkt; 547} cntl_pkt;
576typedef LINK_REQUEST CONTROL_MESSAGE; 548typedef LINK_REQUEST CONTROL_MESSAGE;
577 549
578typedef struct _DDR_SETTING { 550typedef struct _DDR_SETTING {
579 UINT ulRegAddress; 551 UINT ulRegAddress;
580 UINT ulRegValue; 552 UINT ulRegValue;
581}DDR_SETTING, *PDDR_SETTING; 553} DDR_SETTING, *PDDR_SETTING;
582typedef DDR_SETTING DDR_SET_NODE, *PDDR_SET_NODE; 554typedef DDR_SETTING DDR_SET_NODE, *PDDR_SET_NODE;
583INT 555INT InitAdapter(PMINI_ADAPTER psAdapter);
584InitAdapter(PMINI_ADAPTER psAdapter);
585 556
586// ===================================================================== 557// =====================================================================
587// Beceem vendor request codes for EP0 558// Beceem vendor request codes for EP0
588// ===================================================================== 559// =====================================================================
589 560
590#define BCM_REQUEST_READ 0x2 561#define BCM_REQUEST_READ 0x2
591#define BCM_REQUEST_WRITE 0x1 562#define BCM_REQUEST_WRITE 0x1
592#define EP2_MPS_REG 0x0F0110A0 563#define EP2_MPS_REG 0x0F0110A0
593#define EP2_MPS 0x40 564#define EP2_MPS 0x40
594
595#define EP2_CFG_REG 0x0F0110A8
596#define EP2_CFG_INT 0x27
597#define EP2_CFG_BULK 0x25
598 565
599#define EP4_MPS_REG 0x0F0110F0 566#define EP2_CFG_REG 0x0F0110A8
600#define EP4_MPS 0x8C 567#define EP2_CFG_INT 0x27
568#define EP2_CFG_BULK 0x25
601 569
602#define EP4_CFG_REG 0x0F0110F8 570#define EP4_MPS_REG 0x0F0110F0
571#define EP4_MPS 0x8C
603 572
604#define ISO_MPS_REG 0x0F0110C8 573#define EP4_CFG_REG 0x0F0110F8
605#define ISO_MPS 0x00000000
606 574
575#define ISO_MPS_REG 0x0F0110C8
576#define ISO_MPS 0x00000000
607 577
608#define EP1 0 578#define EP1 0
609#define EP2 1 579#define EP2 1
@@ -612,11 +582,9 @@ InitAdapter(PMINI_ADAPTER psAdapter);
612#define EP5 4 582#define EP5 4
613#define EP6 5 583#define EP6 5
614 584
615
616typedef enum eInterface_setting { 585typedef enum eInterface_setting {
617 DEFAULT_SETTING_0 = 0, 586 DEFAULT_SETTING_0 = 0,
618 ALTERNATE_SETTING_1 = 1, 587 ALTERNATE_SETTING_1 = 1,
619}INTERFACE_SETTING; 588} INTERFACE_SETTING;
620 589
621#endif //__ADAPTER_H__ 590#endif //__ADAPTER_H__
622