aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorAndres More <more.andres@gmail.com>2010-05-12 17:59:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-14 16:23:06 -0400
commit442f9cb5858ec86f6f05df0058cec0bf4b873534 (patch)
treef0474706b87a8466ff6a173d5c8c3ed5a42694c0 /drivers/staging
parentbf597e99d2fd4c5d25485fd4e4877bbae2be816c (diff)
staging: vt6656: code cleanup, replaced U8 macro with u8
Removed custom macro for unsigned 8-bit integers. Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vt6656/iocmd.h64
-rw-r--r--drivers/staging/vt6656/ttype.h8
2 files changed, 32 insertions, 40 deletions
diff --git a/drivers/staging/vt6656/iocmd.h b/drivers/staging/vt6656/iocmd.h
index 67ec7d758051..7fcf085bb4cd 100644
--- a/drivers/staging/vt6656/iocmd.h
+++ b/drivers/staging/vt6656/iocmd.h
@@ -109,7 +109,7 @@ typedef enum tagWZONETYPE {
109// 109//
110#pragma pack(1) 110#pragma pack(1)
111typedef struct tagSCmdRequest { 111typedef struct tagSCmdRequest {
112 U8 name[16]; 112 u8 name[16];
113 void *data; 113 void *data;
114 U16 wResult; 114 U16 wResult;
115 U16 wCmdCode; 115 U16 wCmdCode;
@@ -121,7 +121,7 @@ typedef struct tagSCmdRequest {
121 121
122typedef struct tagSCmdScan { 122typedef struct tagSCmdScan {
123 123
124 U8 ssid[SSID_MAXLEN + 2]; 124 u8 ssid[SSID_MAXLEN + 2];
125 125
126} SCmdScan, *PSCmdScan; 126} SCmdScan, *PSCmdScan;
127 127
@@ -134,7 +134,7 @@ typedef struct tagSCmdBSSJoin {
134 134
135 U16 wBSSType; 135 U16 wBSSType;
136 U16 wBBPType; 136 U16 wBBPType;
137 U8 ssid[SSID_MAXLEN + 2]; 137 u8 ssid[SSID_MAXLEN + 2];
138 U32 uChannel; 138 U32 uChannel;
139 BOOL bPSEnable; 139 BOOL bPSEnable;
140 BOOL bShareKeyAuth; 140 BOOL bShareKeyAuth;
@@ -155,9 +155,9 @@ typedef struct tagSCmdZoneTypeSet {
155#ifdef WPA_SM_Transtatus 155#ifdef WPA_SM_Transtatus
156typedef struct tagSWPAResult { 156typedef struct tagSWPAResult {
157 char ifname[100]; 157 char ifname[100];
158 U8 proto; 158 u8 proto;
159 U8 key_mgmt; 159 u8 key_mgmt;
160 U8 eap_type; 160 u8 eap_type;
161 BOOL authenticated; 161 BOOL authenticated;
162} SWPAResult, *PSWPAResult; 162} SWPAResult, *PSWPAResult;
163#endif 163#endif
@@ -166,11 +166,11 @@ typedef struct tagSCmdStartAP {
166 166
167 U16 wBSSType; 167 U16 wBSSType;
168 U16 wBBPType; 168 U16 wBBPType;
169 U8 ssid[SSID_MAXLEN + 2]; 169 u8 ssid[SSID_MAXLEN + 2];
170 U32 uChannel; 170 U32 uChannel;
171 U32 uBeaconInt; 171 U32 uBeaconInt;
172 BOOL bShareKeyAuth; 172 BOOL bShareKeyAuth;
173 U8 byBasicRate; 173 u8 byBasicRate;
174 174
175} SCmdStartAP, *PSCmdStartAP; 175} SCmdStartAP, *PSCmdStartAP;
176 176
@@ -178,8 +178,8 @@ typedef struct tagSCmdStartAP {
178typedef struct tagSCmdSetWEP { 178typedef struct tagSCmdSetWEP {
179 179
180 BOOL bEnableWep; 180 BOOL bEnableWep;
181 U8 byKeyIndex; 181 u8 byKeyIndex;
182 U8 abyWepKey[WEP_NKEYS][WEP_KEYMAXLEN]; 182 u8 abyWepKey[WEP_NKEYS][WEP_KEYMAXLEN];
183 BOOL bWepKeyAvailable[WEP_NKEYS]; 183 BOOL bWepKeyAvailable[WEP_NKEYS];
184 U32 auWepKeyLength[WEP_NKEYS]; 184 U32 auWepKeyLength[WEP_NKEYS];
185 185
@@ -190,11 +190,11 @@ typedef struct tagSCmdSetWEP {
190typedef struct tagSBSSIDItem { 190typedef struct tagSBSSIDItem {
191 191
192 U32 uChannel; 192 U32 uChannel;
193 U8 abyBSSID[BSSID_LEN]; 193 u8 abyBSSID[BSSID_LEN];
194 U8 abySSID[SSID_MAXLEN + 1]; 194 u8 abySSID[SSID_MAXLEN + 1];
195 U16 wBeaconInterval; 195 U16 wBeaconInterval;
196 U16 wCapInfo; 196 U16 wCapInfo;
197 U8 byNetType; 197 u8 byNetType;
198 BOOL bWEPOn; 198 BOOL bWEPOn;
199 U32 uRSSI; 199 U32 uRSSI;
200 200
@@ -211,15 +211,15 @@ typedef struct tagSBSSIDList {
211typedef struct tagSNodeItem { 211typedef struct tagSNodeItem {
212 // STA info 212 // STA info
213 U16 wAID; 213 U16 wAID;
214 U8 abyMACAddr[6]; 214 u8 abyMACAddr[6];
215 U16 wTxDataRate; 215 U16 wTxDataRate;
216 U16 wInActiveCount; 216 U16 wInActiveCount;
217 U16 wEnQueueCnt; 217 U16 wEnQueueCnt;
218 U16 wFlags; 218 U16 wFlags;
219 BOOL bPWBitOn; 219 BOOL bPWBitOn;
220 U8 byKeyIndex; 220 u8 byKeyIndex;
221 U16 wWepKeyLength; 221 U16 wWepKeyLength;
222 U8 abyWepKey[WEP_KEYMAXLEN]; 222 u8 abyWepKey[WEP_KEYMAXLEN];
223 // Auto rate fallback vars 223 // Auto rate fallback vars
224 BOOL bIsInFallback; 224 BOOL bIsInFallback;
225 U32 uTxFailures; 225 U32 uTxFailures;
@@ -241,9 +241,9 @@ typedef struct tagSCmdLinkStatus {
241 241
242 BOOL bLink; 242 BOOL bLink;
243 U16 wBSSType; 243 U16 wBSSType;
244 U8 byState; 244 u8 byState;
245 U8 abyBSSID[BSSID_LEN]; 245 u8 abyBSSID[BSSID_LEN];
246 U8 abySSID[SSID_MAXLEN + 2]; 246 u8 abySSID[SSID_MAXLEN + 2];
247 U32 uChannel; 247 U32 uChannel;
248 U32 uLinkRate; 248 U32 uLinkRate;
249 249
@@ -353,8 +353,8 @@ typedef struct tagSStatMIBCount {
353 U32 dwCntRxFrmLength; 353 U32 dwCntRxFrmLength;
354 U32 dwCntTxBufLength; 354 U32 dwCntTxBufLength;
355 355
356 U8 abyCntRxPattern[16]; 356 u8 abyCntRxPattern[16];
357 U8 abyCntTxPattern[16]; 357 u8 abyCntTxPattern[16];
358 358
359 // Software check.... 359 // Software check....
360 U32 dwCntRxDataErr; // rx buffer data software compare CRC err count 360 U32 dwCntRxDataErr; // rx buffer data software compare CRC err count
@@ -415,24 +415,24 @@ enum {
415 415
416struct viawget_hostapd_param { 416struct viawget_hostapd_param {
417 U32 cmd; 417 U32 cmd;
418 U8 sta_addr[6]; 418 u8 sta_addr[6];
419 union { 419 union {
420 struct { 420 struct {
421 U16 aid; 421 U16 aid;
422 U16 capability; 422 U16 capability;
423 U8 tx_supp_rates; 423 u8 tx_supp_rates;
424 } add_sta; 424 } add_sta;
425 struct { 425 struct {
426 U32 inactive_sec; 426 U32 inactive_sec;
427 } get_info_sta; 427 } get_info_sta;
428 struct { 428 struct {
429 U8 alg; 429 u8 alg;
430 U32 flags; 430 U32 flags;
431 U32 err; 431 U32 err;
432 U8 idx; 432 u8 idx;
433 U8 seq[8]; 433 u8 seq[8];
434 U16 key_len; 434 U16 key_len;
435 U8 key[0]; 435 u8 key[0];
436 } crypt; 436 } crypt;
437 struct { 437 struct {
438 U32 flags_and; 438 U32 flags_and;
@@ -441,19 +441,19 @@ struct viawget_hostapd_param {
441 struct { 441 struct {
442 U16 rid; 442 U16 rid;
443 U16 len; 443 U16 len;
444 U8 data[0]; 444 u8 data[0];
445 } rid; 445 } rid;
446 struct { 446 struct {
447 U8 len; 447 u8 len;
448 U8 data[0]; 448 u8 data[0];
449 } generic_elem; 449 } generic_elem;
450 struct { 450 struct {
451 U16 cmd; 451 U16 cmd;
452 U16 reason_code; 452 U16 reason_code;
453 } mlme; 453 } mlme;
454 struct { 454 struct {
455 U8 ssid_len; 455 u8 ssid_len;
456 U8 ssid[32]; 456 u8 ssid[32];
457 } scan_req; 457 } scan_req;
458 } u; 458 } u;
459}; 459};
diff --git a/drivers/staging/vt6656/ttype.h b/drivers/staging/vt6656/ttype.h
index 13e8bbb6711c..d7cf663f445f 100644
--- a/drivers/staging/vt6656/ttype.h
+++ b/drivers/staging/vt6656/ttype.h
@@ -26,11 +26,9 @@
26 * 26 *
27 */ 27 */
28 28
29
30#ifndef __TTYPE_H__ 29#ifndef __TTYPE_H__
31#define __TTYPE_H__ 30#define __TTYPE_H__
32 31
33
34/******* Common definitions and typedefs ***********************************/ 32/******* Common definitions and typedefs ***********************************/
35 33
36//2007-0115-05<Add>by MikeLiu 34//2007-0115-05<Add>by MikeLiu
@@ -40,7 +38,6 @@
40 38
41//DavidWang 39//DavidWang
42 40
43
44//2007-0814-01<Add>by MikeLiu 41//2007-0814-01<Add>by MikeLiu
45#ifndef Safe_Close 42#ifndef Safe_Close
46#define Safe_Close 43#define Safe_Close
@@ -82,11 +79,9 @@ typedef int BOOL;
82 79
83typedef signed char I8; /* 8-bit signed integer */ 80typedef signed char I8; /* 8-bit signed integer */
84 81
85typedef unsigned char U8; /* 8-bit unsigned integer */
86typedef unsigned short U16; /* 16-bit unsigned integer */ 82typedef unsigned short U16; /* 16-bit unsigned integer */
87typedef unsigned long U32; /* 32-bit unsigned integer */ 83typedef unsigned long U32; /* 32-bit unsigned integer */
88 84
89
90typedef char CHAR; 85typedef char CHAR;
91typedef signed short SHORT; 86typedef signed short SHORT;
92typedef signed int INT; 87typedef signed int INT;
@@ -98,8 +93,6 @@ typedef unsigned int UINT;
98typedef unsigned long ULONG; 93typedef unsigned long ULONG;
99typedef unsigned long long ULONGLONG; //64 bit 94typedef unsigned long long ULONGLONG; //64 bit
100 95
101
102
103typedef unsigned char BYTE; // 8-bit 96typedef unsigned char BYTE; // 8-bit
104typedef unsigned short WORD; // 16-bit 97typedef unsigned short WORD; // 16-bit
105typedef unsigned long DWORD; // 32-bit 98typedef unsigned long DWORD; // 32-bit
@@ -116,7 +109,6 @@ typedef union tagUQuadWord {
116} UQuadWord; 109} UQuadWord;
117typedef UQuadWord QWORD; // 64-bit 110typedef UQuadWord QWORD; // 64-bit
118 111
119
120/****** Common pointer types ***********************************************/ 112/****** Common pointer types ***********************************************/
121 113
122typedef unsigned long ULONG_PTR; // 32-bit 114typedef unsigned long ULONG_PTR; // 32-bit