summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
737c3d7)
Remove custom macro for unsigned 16-bit integers.
Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
typedef struct tagRDES0 {
volatile WORD wResCount;
union {
typedef struct tagRDES0 {
volatile WORD wResCount;
union {
- volatile U16 f15Reserved;
+ volatile u16 f15Reserved;
struct {
volatile u8 f8Reserved1;
volatile u8 f1Owner:1;
struct {
volatile u8 f8Reserved1;
volatile u8 f1Owner:1;
volatile BYTE byTSR0;
volatile BYTE byTSR1;
union {
volatile BYTE byTSR0;
volatile BYTE byTSR1;
union {
- volatile U16 f15Txtime;
+ volatile u16 f15Txtime;
struct {
volatile u8 f8Reserved1;
volatile u8 f1Owner:1;
struct {
volatile u8 f8Reserved1;
volatile u8 f1Owner:1;
static BOOL device_get_pci_info(PSDevice pDevice, struct pci_dev* pcid) {
static BOOL device_get_pci_info(PSDevice pDevice, struct pci_dev* pcid) {
u8 b;
UINT cis_addr;
#ifdef PLICE_DEBUG
BYTE pci_config[256];
BYTE value =0x00;
int ii,j;
u8 b;
UINT cis_addr;
#ifdef PLICE_DEBUG
BYTE pci_config[256];
BYTE value =0x00;
int ii,j;
memset(pci_config,0x00,256);
#endif
memset(pci_config,0x00,256);
#endif
typedef struct tagSCmdRequest {
u8 name[16];
void *data;
typedef struct tagSCmdRequest {
u8 name[16];
void *data;
- U16 wResult;
- U16 wCmdCode;
+ u16 wResult;
+ u16 wCmdCode;
} SCmdRequest, *PSCmdRequest;
//
} SCmdRequest, *PSCmdRequest;
//
typedef struct tagSCmdBSSJoin {
typedef struct tagSCmdBSSJoin {
- U16 wBSSType;
- U16 wBBPType;
+ u16 wBSSType;
+ u16 wBBPType;
u8 ssid[SSID_MAXLEN + 2];
U32 uChannel;
BOOL bPSEnable;
u8 ssid[SSID_MAXLEN + 2];
U32 uChannel;
BOOL bPSEnable;
typedef struct tagSCmdStartAP {
typedef struct tagSCmdStartAP {
- U16 wBSSType;
- U16 wBBPType;
+ u16 wBSSType;
+ u16 wBBPType;
u8 ssid[SSID_MAXLEN + 2];
U32 uChannel;
U32 uBeaconInt;
u8 ssid[SSID_MAXLEN + 2];
U32 uChannel;
U32 uBeaconInt;
u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 1];
//2006-1116-01,<Modify> by NomadZhao
u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 1];
//2006-1116-01,<Modify> by NomadZhao
- //U16 wBeaconInterval;
- //U16 wCapInfo;
+ //u16 wBeaconInterval;
+ //u16 wCapInfo;
//u8 byNetType;
u8 byNetType;
//u8 byNetType;
u8 byNetType;
- U16 wBeaconInterval;
- U16 wCapInfo; // for address of byNetType at align 4
+ u16 wBeaconInterval;
+ u16 wCapInfo; // for address of byNetType at align 4
typedef struct tagSCmdLinkStatus {
BOOL bLink;
typedef struct tagSCmdLinkStatus {
BOOL bLink;
u8 byState;
u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 2];
u8 byState;
u8 abyBSSID[BSSID_LEN];
u8 abySSID[SSID_MAXLEN + 2];
typedef struct tagSNodeItem {
// STA info
typedef struct tagSNodeItem {
// STA info
- U16 wTxDataRate;
- U16 wInActiveCount;
- U16 wEnQueueCnt;
- U16 wFlags;
+ u16 wTxDataRate;
+ u16 wInActiveCount;
+ u16 wEnQueueCnt;
+ u16 wFlags;
BOOL bPWBitOn;
u8 byKeyIndex;
BOOL bPWBitOn;
u8 byKeyIndex;
u8 abyWepKey[WEP_KEYMAXLEN];
// Auto rate fallback vars
BOOL bIsInFallback;
U32 uTxFailures;
U32 uTxAttempts;
u8 abyWepKey[WEP_KEYMAXLEN];
// Auto rate fallback vars
BOOL bIsInFallback;
U32 uTxFailures;
U32 uTxAttempts;
u8 sta_addr[6];
union {
struct {
u8 sta_addr[6];
union {
struct {
- U16 aid;
- U16 capability;
+ u16 aid;
+ u16 capability;
u8 tx_supp_rates;
} add_sta;
struct {
u8 tx_supp_rates;
} add_sta;
struct {
U32 err;
u8 idx;
u8 seq[8];
U32 err;
u8 idx;
u8 seq[8];
u8 key[0];
} crypt;
struct {
u8 key[0];
} crypt;
struct {
U32 flags_or;
} set_flags_sta;
struct {
U32 flags_or;
} set_flags_sta;
struct {
u8 data[0];
} rid;
struct {
u8 data[0];
} rid;
struct {
u8 data[0];
} generic_elem;
struct {
u8 data[0];
} generic_elem;
struct {
- U16 cmd;
- U16 reason_code;
+ u16 cmd;
+ u16 reason_code;
} mlme;
struct {
u8 ssid_len;
} mlme;
struct {
u8 ssid_len;
* 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 */