aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vt6656/device.h')
-rw-r--r--drivers/staging/vt6656/device.h56
1 files changed, 14 insertions, 42 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h
index 6bba2e06fa64..f07ba242811b 100644
--- a/drivers/staging/vt6656/device.h
+++ b/drivers/staging/vt6656/device.h
@@ -45,7 +45,6 @@
#include <linux/timer.h>
#include <linux/usb.h>
-
#ifdef SIOCETHTOOL
#define DEVICE_ETHTOOL_IOCTL_SUPPORT
#include <linux/ethtool.h>
@@ -66,7 +65,6 @@
*/
#include "device_cfg.h"
-#include "ttype.h"
#include "80211hdr.h"
#include "tether.h"
#include "wmgr.h"
@@ -78,7 +76,6 @@
#include "key.h"
#include "card.h"
-/*--------------------- Export Definitions -------------------------*/
#define VNT_USB_VENDOR_ID 0x160a
#define VNT_USB_PRODUCT_ID 0x3184
@@ -122,7 +119,6 @@
#define ANT_RXA 2
#define ANT_RXB 3
-
#define MAXCHECKHANGCNT 4
/* Packet type */
@@ -142,8 +138,6 @@
#define PRIVATE_Message 0
-/*--------------------- Export Types ------------------------------*/
-
#define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); }
#define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); }
@@ -191,7 +185,7 @@ typedef struct _USB_SEND_CONTEXT {
struct urb *pUrb;
unsigned int uBufLen;
CONTEXT_TYPE Type;
- SEthernetHeader sEthHeader;
+ struct ethhdr sEthHeader;
void *Next;
bool bBoolInUse;
unsigned char Data[MAX_TOTAL_SIZE_WITH_ALL_HEADERS];
@@ -212,7 +206,7 @@ typedef struct _DEFAULT_CONFIG {
*/
typedef struct {
unsigned int uDataLen;
- PBYTE pDataBuf;
+ u8 * pDataBuf;
/* struct urb *pUrb; */
bool bInUse;
} INT_BUFFER, *PINT_BUFFER;
@@ -251,7 +245,6 @@ typedef enum __DEVICE_NDIS_STATUS {
/* PMKID Structures */
typedef unsigned char NDIS_802_11_PMKID_VALUE[16];
-
typedef enum _NDIS_802_11_WEP_STATUS
{
Ndis802_11WEPEnabled,
@@ -269,7 +262,6 @@ typedef enum _NDIS_802_11_WEP_STATUS
} NDIS_802_11_WEP_STATUS, *PNDIS_802_11_WEP_STATUS,
NDIS_802_11_ENCRYPTION_STATUS, *PNDIS_802_11_ENCRYPTION_STATUS;
-
typedef enum _NDIS_802_11_STATUS_TYPE
{
Ndis802_11StatusType_Authentication,
@@ -284,7 +276,6 @@ typedef struct _PMKID_CANDIDATE {
unsigned long Flags;
} PMKID_CANDIDATE, *PPMKID_CANDIDATE;
-
typedef struct _BSSID_INFO
{
NDIS_802_11_MAC_ADDRESS BSSID;
@@ -309,16 +300,16 @@ typedef struct tagSPMKIDCandidateEvent {
typedef struct tagSQuietControl {
bool bEnable;
- DWORD dwStartTime;
- BYTE byPeriod;
- WORD wDuration;
+ u32 dwStartTime;
+ u8 byPeriod;
+ u16 wDuration;
} SQuietControl, *PSQuietControl;
/* The receive duplicate detection cache entry */
typedef struct tagSCacheEntry{
- WORD wFmSequence;
- BYTE abyAddr2[ETH_ALEN];
- WORD wFrameCtl;
+ u16 wFmSequence;
+ u8 abyAddr2[ETH_ALEN];
+ u16 wFrameCtl;
} SCacheEntry, *PSCacheEntry;
typedef struct tagSCache{
@@ -335,12 +326,12 @@ typedef struct tagSCache{
*/
typedef struct tagSDeFragControlBlock
{
- WORD wSequence;
- WORD wFragNum;
- BYTE abyAddr2[ETH_ALEN];
+ u16 wSequence;
+ u16 wFragNum;
+ u8 abyAddr2[ETH_ALEN];
unsigned int uLifetime;
struct sk_buff* skb;
- PBYTE pbyRxBuffer;
+ u8 * pbyRxBuffer;
unsigned int cbFrameLength;
bool bInUse;
} SDeFragControlBlock, *PSDeFragControlBlock;
@@ -371,7 +362,6 @@ typedef struct tagSDeFragControlBlock
/* for device_set_media_duplex */
#define DEVICE_LINK_CHANGE 0x00000001UL
-
typedef struct __device_opt {
int nRxDescs0; /* number of RX descriptors 0 */
int nTxDescs0; /* number of TX descriptors 0, 1, 2, 3 */
@@ -386,7 +376,6 @@ typedef struct __device_opt {
u32 flags;
} OPTIONS, *POPTIONS;
-
struct vnt_private {
/* netdev */
struct usb_device *usb;
@@ -420,7 +409,6 @@ struct vnt_private {
u32 cbFreeDFCB;
u32 uCurrentDFCBIdx;
-
/* USB */
struct urb *pControlURB;
struct urb *pInterruptURB;
@@ -453,7 +441,6 @@ struct vnt_private {
/* default config from file by user setting */
DEFAULT_CONFIG config_file;
-
/* Statistic for USB */
unsigned long ulBulkInPosted;
unsigned long ulBulkInError;
@@ -470,14 +457,12 @@ struct vnt_private {
unsigned long ulIntInContCRCError;
unsigned long ulIntInBytesRead;
-
/* Version control */
u16 wFirmwareVersion;
u8 byLocalID;
u8 byRFType;
u8 byBBRxConf;
-
u8 byZoneType;
int bZoneRegExist;
@@ -571,7 +556,6 @@ struct vnt_private {
u8 byTopOFDMBasicRate;
u8 byTopCCKBasicRate;
-
u32 dwAotoRateTxOkCnt;
u32 dwAotoRateTxFailCnt;
u32 dwErrorRateThreshold[13];
@@ -684,7 +668,6 @@ struct vnt_private {
SKeyManagement sKey;
u32 dwIVCounter;
-
RC4Ext SBox;
u8 abyPRNG[WLAN_WEPMAX_KEYLEN+3];
u8 byKeyIndex;
@@ -701,13 +684,11 @@ struct vnt_private {
/* QoS */
int bGrpAckPolicy;
-
u8 byAutoFBCtrl;
int bTxMICFail;
int bRxMICFail;
-
/* For Update BaseBand VGA Gain Offset */
int bUpdateBBVGA;
u32 uBBVGADiffCount;
@@ -719,7 +700,6 @@ struct vnt_private {
u8 byBBPreEDRSSI;
u8 byBBPreEDIndex;
-
int bRadioCmd;
u32 dwDiagRefCount;
@@ -747,8 +727,8 @@ struct vnt_private {
u8 byReAssocCount;
u8 byLinkWaitCount;
- SEthernetHeader sTxEthHeader;
- SEthernetHeader sRxEthHeader;
+ struct ethhdr sTxEthHeader;
+ struct ethhdr sRxEthHeader;
u8 abyBroadcastAddr[ETH_ALEN];
u8 abySNAP_RFC1042[ETH_ALEN];
u8 abySNAP_Bridgetunnel[ETH_ALEN];
@@ -757,7 +737,6 @@ struct vnt_private {
SPMKID gsPMKID;
SPMKIDCandidateEvent gsPMKIDCandidate;
-
/* for 802.11h */
int b11hEnable;
@@ -788,9 +767,6 @@ struct vnt_private {
};
-
-
-
#define EnqueueRCB(_Head, _Tail, _RCB) \
{ \
if (!_Head) { \
@@ -812,7 +788,6 @@ struct vnt_private {
Head = RCB->Next; \
}
-
#define ADD_ONE_WITH_WRAP_AROUND(uVar, uModulo) { \
if ((uVar) >= ((uModulo) - 1)) \
(uVar) = 0; \
@@ -820,7 +795,6 @@ struct vnt_private {
(uVar)++; \
}
-
#define fMP_RESET_IN_PROGRESS 0x00000001
#define fMP_DISCONNECTED 0x00000002
#define fMP_HALT_IN_PROGRESS 0x00000004
@@ -841,8 +815,6 @@ struct vnt_private {
#define MP_IS_READY(_M) (((_M)->Flags & \
(fMP_DISCONNECTED | fMP_RESET_IN_PROGRESS | fMP_HALT_IN_PROGRESS | fMP_INIT_IN_PROGRESS | fMP_SURPRISE_REMOVED)) == 0)
-/*--------------------- Export Functions --------------------------*/
-
int device_alloc_frag_buf(struct vnt_private *, PSDeFragControlBlock pDeF);
#endif