Commit c17ce8c2 authored by Charles Clément's avatar Charles Clément Committed by Greg Kroah-Hartman

Staging: vt6655: remove U16 custom macro

Remove custom macro for unsigned 16-bit integers.
Signed-off-by: default avatarCharles Clément <caratorn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 737c3d70
...@@ -257,7 +257,7 @@ SRDES0; ...@@ -257,7 +257,7 @@ SRDES0;
typedef struct tagRDES0 { typedef struct tagRDES0 {
volatile WORD wResCount; volatile WORD wResCount;
union { union {
volatile U16 f15Reserved; volatile u16 f15Reserved;
struct { struct {
volatile u8 f8Reserved1; volatile u8 f8Reserved1;
volatile u8 f1Owner:1; volatile u8 f1Owner:1;
...@@ -317,7 +317,7 @@ typedef struct tagTDES0 { ...@@ -317,7 +317,7 @@ typedef struct tagTDES0 {
volatile BYTE byTSR0; volatile BYTE byTSR0;
volatile BYTE byTSR1; volatile BYTE byTSR1;
union { union {
volatile U16 f15Txtime; volatile u16 f15Txtime;
struct { struct {
volatile u8 f8Reserved1; volatile u8 f8Reserved1;
volatile u8 f1Owner:1; volatile u8 f1Owner:1;
......
...@@ -1150,14 +1150,14 @@ static BOOL device_init_info(struct pci_dev* pcid, PSDevice* ppDevice, ...@@ -1150,14 +1150,14 @@ static BOOL device_init_info(struct pci_dev* pcid, PSDevice* ppDevice,
static BOOL device_get_pci_info(PSDevice pDevice, struct pci_dev* pcid) { static BOOL device_get_pci_info(PSDevice pDevice, struct pci_dev* pcid) {
U16 pci_cmd; u16 pci_cmd;
u8 b; u8 b;
UINT cis_addr; UINT cis_addr;
#ifdef PLICE_DEBUG #ifdef PLICE_DEBUG
BYTE pci_config[256]; BYTE pci_config[256];
BYTE value =0x00; BYTE value =0x00;
int ii,j; int ii,j;
U16 max_lat=0x0000; u16 max_lat=0x0000;
memset(pci_config,0x00,256); memset(pci_config,0x00,256);
#endif #endif
......
...@@ -111,8 +111,8 @@ typedef enum tagWZONETYPE { ...@@ -111,8 +111,8 @@ typedef enum tagWZONETYPE {
typedef struct tagSCmdRequest { typedef struct tagSCmdRequest {
u8 name[16]; u8 name[16];
void *data; void *data;
U16 wResult; u16 wResult;
U16 wCmdCode; u16 wCmdCode;
} SCmdRequest, *PSCmdRequest; } SCmdRequest, *PSCmdRequest;
// //
...@@ -132,8 +132,8 @@ typedef struct tagSCmdScan { ...@@ -132,8 +132,8 @@ typedef struct tagSCmdScan {
typedef struct tagSCmdBSSJoin { typedef struct tagSCmdBSSJoin {
U16 wBSSType; u16 wBSSType;
U16 wBBPType; u16 wBBPType;
u8 ssid[SSID_MAXLEN + 2]; u8 ssid[SSID_MAXLEN + 2];
U32 uChannel; U32 uChannel;
BOOL bPSEnable; BOOL bPSEnable;
...@@ -164,8 +164,8 @@ typedef struct tagSWPAResult { ...@@ -164,8 +164,8 @@ typedef struct tagSWPAResult {
typedef struct tagSCmdStartAP { typedef struct tagSCmdStartAP {
U16 wBSSType; u16 wBSSType;
U16 wBBPType; u16 wBBPType;
u8 ssid[SSID_MAXLEN + 2]; u8 ssid[SSID_MAXLEN + 2];
U32 uChannel; U32 uChannel;
U32 uBeaconInt; U32 uBeaconInt;
...@@ -193,12 +193,12 @@ typedef struct tagSBSSIDItem { ...@@ -193,12 +193,12 @@ typedef struct tagSBSSIDItem {
u8 abyBSSID[BSSID_LEN]; u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 1]; u8 abySSID[SSID_MAXLEN + 1];
//2006-1116-01,<Modify> by NomadZhao //2006-1116-01,<Modify> by NomadZhao
//U16 wBeaconInterval; //u16 wBeaconInterval;
//U16 wCapInfo; //u16 wCapInfo;
//u8 byNetType; //u8 byNetType;
u8 byNetType; u8 byNetType;
U16 wBeaconInterval; u16 wBeaconInterval;
U16 wCapInfo; // for address of byNetType at align 4 u16 wCapInfo; // for address of byNetType at align 4
BOOL bWEPOn; BOOL bWEPOn;
U32 uRSSI; U32 uRSSI;
...@@ -216,7 +216,7 @@ typedef struct tagSBSSIDList { ...@@ -216,7 +216,7 @@ typedef struct tagSBSSIDList {
typedef struct tagSCmdLinkStatus { typedef struct tagSCmdLinkStatus {
BOOL bLink; BOOL bLink;
U16 wBSSType; u16 wBSSType;
u8 byState; u8 byState;
u8 abyBSSID[BSSID_LEN]; u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 2]; u8 abySSID[SSID_MAXLEN + 2];
...@@ -353,21 +353,21 @@ typedef struct tagSStatMIBCount { ...@@ -353,21 +353,21 @@ typedef struct tagSStatMIBCount {
typedef struct tagSNodeItem { typedef struct tagSNodeItem {
// STA info // STA info
U16 wAID; u16 wAID;
u8 abyMACAddr[6]; u8 abyMACAddr[6];
U16 wTxDataRate; u16 wTxDataRate;
U16 wInActiveCount; u16 wInActiveCount;
U16 wEnQueueCnt; u16 wEnQueueCnt;
U16 wFlags; u16 wFlags;
BOOL bPWBitOn; BOOL bPWBitOn;
u8 byKeyIndex; u8 byKeyIndex;
U16 wWepKeyLength; u16 wWepKeyLength;
u8 abyWepKey[WEP_KEYMAXLEN]; u8 abyWepKey[WEP_KEYMAXLEN];
// Auto rate fallback vars // Auto rate fallback vars
BOOL bIsInFallback; BOOL bIsInFallback;
U32 uTxFailures; U32 uTxFailures;
U32 uTxAttempts; U32 uTxAttempts;
U16 wFailureRatio; u16 wFailureRatio;
} SNodeItem; } SNodeItem;
...@@ -422,8 +422,8 @@ struct viawget_hostapd_param { ...@@ -422,8 +422,8 @@ struct viawget_hostapd_param {
u8 sta_addr[6]; u8 sta_addr[6];
union { union {
struct { struct {
U16 aid; u16 aid;
U16 capability; u16 capability;
u8 tx_supp_rates; u8 tx_supp_rates;
} add_sta; } add_sta;
struct { struct {
...@@ -435,7 +435,7 @@ struct viawget_hostapd_param { ...@@ -435,7 +435,7 @@ struct viawget_hostapd_param {
U32 err; U32 err;
u8 idx; u8 idx;
u8 seq[8]; u8 seq[8];
U16 key_len; u16 key_len;
u8 key[0]; u8 key[0];
} crypt; } crypt;
struct { struct {
...@@ -443,8 +443,8 @@ struct viawget_hostapd_param { ...@@ -443,8 +443,8 @@ struct viawget_hostapd_param {
U32 flags_or; U32 flags_or;
} set_flags_sta; } set_flags_sta;
struct { struct {
U16 rid; u16 rid;
U16 len; u16 len;
u8 data[0]; u8 data[0];
} rid; } rid;
struct { struct {
...@@ -452,8 +452,8 @@ struct viawget_hostapd_param { ...@@ -452,8 +452,8 @@ struct viawget_hostapd_param {
u8 data[0]; u8 data[0];
} generic_elem; } generic_elem;
struct { struct {
U16 cmd; u16 cmd;
U16 reason_code; u16 reason_code;
} mlme; } mlme;
struct { struct {
u8 ssid_len; u8 ssid_len;
......
...@@ -68,7 +68,6 @@ typedef int BOOL; ...@@ -68,7 +68,6 @@ typedef int BOOL;
* but it doesn't matter if they're signed or unsigned. * but it doesn't matter if they're signed or unsigned.
*/ */
typedef unsigned short U16; /* 16-bit unsigned integer */
typedef unsigned long U32; /* 32-bit unsigned integer */ typedef unsigned long U32; /* 32-bit unsigned integer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment