⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 device.h

📁 VIA VT6656 USB linux source code.
💻 H
📖 第 1 页 / 共 2 页
字号:
    U32                         rx_buf_sz;    int                         multicast_limit;    BYTE                        byRxMode;        spinlock_t                  lock;        U32                         rx_bytes;            BYTE                        byRevId;            U32                         flags;        ULONG                       Flags;        SCache                      sDupRxCache;        SDeFragControlBlock         sRxDFCB[CB_MAX_RX_FRAG];    UINT                        cbDFCB;    UINT                        cbFreeDFCB;    UINT                        uCurrentDFCBIdx;            // +++USB     struct urb                  *pControlURB;    struct urb                  *pInterruptURB;	struct usb_ctrlrequest      sUsbCtlRequest;	    UINT                        int_interval;    //    // Variables to track resources for the BULK In Pipe    //    PRCB                        pRCBMem;    PRCB                        apRCB[CB_MAX_RX_DESC];    UINT                        cbRD;    PRCB                        FirstRecvFreeList;    PRCB                        LastRecvFreeList;    UINT                        NumRecvFreeList;    PRCB                        FirstRecvMngList;    PRCB                        LastRecvMngList;    UINT                        NumRecvMngList;    BOOL                        bIsRxWorkItemQueued;    BOOL                        bIsRxMngWorkItemQueued;    ULONG                       ulRcvRefCount;      // number of packets that have not been returned back        //    //  Variables to track resources for the BULK Out Pipe    //             PUSB_SEND_CONTEXT           apTD[CB_MAX_TX_DESC];    UINT                        cbTD;        //    //  Variables to track resources for the Interript In Pipe    //     INT_BUFFER                  intBuf;    BOOL                        fKillEventPollingThread;    BOOL                        bEventAvailable;                //    // Statistic for USB    // protect with spinlock    ULONG                       ulBulkInPosted;    ULONG                       ulBulkInError;    ULONG                       ulBulkInContCRCError;    ULONG                       ulBulkInBytesRead;        ULONG                       ulBulkOutPosted;    ULONG                       ulBulkOutError;    ULONG                       ulBulkOutContCRCError;    ULONG                       ulBulkOutBytesWrite;    ULONG                       ulIntInPosted;    ULONG                       ulIntInError;    ULONG                       ulIntInContCRCError;    ULONG                       ulIntInBytesRead;            // Version control    WORD                        wFirmwareVersion;        BYTE                        byLocalID;    BYTE                        byRFType;     BYTE                        byBBRxConf;                BYTE                        byZoneType;    BOOL                        bZoneRegExist;    BOOL                        bLinkPass;          // link status: OK or fail        BYTE                        abyCurrentNetAddr[U_ETHER_ADDR_LEN];        BYTE                        abyPermanentNetAddr[U_ETHER_ADDR_LEN];        // SW network address//    BYTE                        abySoftwareNetAddr[U_ETHER_ADDR_LEN];    BOOL                        bExistSWNetAddr;        // Adapter statistics    SStatCounter                scStatistic;        // 802.11 counter    SDot11Counters              s802_11Counter;        //    // Maintain statistical debug info.    //    ULONG                       packetsReceived;    ULONG                       packetsReceivedDropped;    ULONG                       packetsReceivedOverflow;    ULONG                       packetsSent;    ULONG                       packetsSentDropped;    ULONG                       SendContextsInUse;    ULONG                       RcvBuffersInUse;           // 802.11 management     SMgmtObject                 sMgmtObj;            QWORD                       qwCurrTSF;            UINT                        cbBulkInMax;    BOOL                        bPSRxBeacon;            // 802.11 MAC specific        UINT                        uCurrRSSI;    BYTE                        byCurrSQ;                //Antenna Diversity    BOOL                        bTxRxAntInv;    DWORD                       dwRxAntennaSel;    DWORD                       dwTxAntennaSel;    BYTE                        byAntennaCount;    BYTE                        byRxAntennaMode;    BYTE                        byTxAntennaMode;    BYTE                        byRadioCtl;    BYTE                        bHWRadioOff;    //SQ3 functions for antenna diversity    struct timer_list           TimerSQ3Tmax1;    struct timer_list           TimerSQ3Tmax2;    struct timer_list           TimerSQ3Tmax3;    BOOL                        bDiversityRegCtlON;    BOOL                        bDiversityEnable;    ULONG                       ulDiversityNValue;    ULONG                       ulDiversityMValue;    BYTE                        byTMax;    BYTE                        byTMax2;    BYTE                        byTMax3;    ULONG                       ulSQ3TH;        ULONG                       uDiversityCnt;    BYTE                        byAntennaState;    ULONG                       ulRatio_State0;    ULONG                       ulRatio_State1;    ULONG                       ulSQ3_State0;    ULONG                       ulSQ3_State1;        ULONG                       aulSQ3Val[MAX_RATE];    ULONG                       aulPktNum[MAX_RATE];                // IFS & Cw    UINT                        uSIFS;    //Current SIFS    UINT                        uDIFS;    //Current DIFS    UINT                        uEIFS;    //Current EIFS    UINT                        uSlot;    //Current SlotTime    UINT                        uCwMin;   //Current CwMin    UINT                        uCwMax;   //CwMax is fixed on 1023.    // PHY parameter    BYTE                        bySIFS;    BYTE                        byDIFS;    BYTE                        byEIFS;    BYTE                        bySlot;    BYTE                        byCWMaxMin;    // Rate    VIA_BB_TYPE                 byBBType; //0: 11A, 1:11B, 2:11G    VIA_PKT_TYPE                byPacketType; //0:11a,1:11b,2:11gb(only CCK in BasicRate),3:11ga(OFDM in Basic Rate)    WORD                        wBasicRate;    BYTE                        byACKRate;        BYTE                        byTopOFDMBasicRate;    BYTE                        byTopCCKBasicRate;            DWORD                       dwAotoRateTxOkCnt;    DWORD                       dwAotoRateTxFailCnt;    DWORD                       dwErrorRateThreshold[13];    DWORD                       dwTPTable[MAX_RATE];    BYTE                        abyEEPROM[EEP_MAX_CONTEXT_SIZE];  //DWORD alignment        BYTE                        byMinChannel;    BYTE                        byMaxChannel;    UINT                        uConnectionRate;    BYTE                        byPreambleType;    BYTE                        byShortPreamble;    // CARD_PHY_TYPE        BYTE                        eConfigPHYMode;        // For RF Power table    BYTE                        byCCKPwr;    BYTE                        byOFDMPwrG;    BYTE                        byOFDMPwrA;    BYTE                        byCurPwr;    BYTE                        abyCCKPwrTbl[14];    BYTE                        abyOFDMPwrTbl[14];    BYTE                        abyOFDMAPwrTbl[42];            WORD                        wCurrentRate;    WORD                        wRTSThreshold;    WORD                        wFragmentationThreshold;    BYTE                        byShortRetryLimit;    BYTE                        byLongRetryLimit;    CARD_OP_MODE                eOPMode;        BOOL                        bBSSIDFilter;        WORD                        wMaxTransmitMSDULifetime;    BYTE                        abyBSSID[U_ETHER_ADDR_LEN];    BYTE                        abyDesireBSSID[U_ETHER_ADDR_LEN];        WORD                        wCTSDuration;       // update while speed change    WORD                        wACKDuration;       // update while speed change    WORD                        wRTSTransmitLen;    // update while speed change    BYTE                        byRTSServiceField;  // update while speed change    BYTE                        byRTSSignalField;   // update while speed change    DWORD                       dwMaxReceiveLifetime;       // dot11MaxReceiveLifetime    BOOL                        bCCK;    BOOL                        bEncryptionEnable;    BOOL                        bLongHeader;    BOOL                        bSoftwareGenCrcErr;    BOOL                        bShortSlotTime;    BOOL                        bProtectMode;    BOOL                        bNonERPPresent;    BOOL                        bBarkerPreambleMd;        BYTE                        byERPFlag;    WORD                        wUseProtectCntDown;    BOOL                        bRadioControlOff;    BOOL                        bRadioOff;        // Power save    BOOL                        bEnablePSMode;    WORD                        wListenInterval;        BOOL                        bPWBitOn;    WMAC_POWER_MODE             ePSMode;    ULONG                       ulPSModeWaitTx;    BOOL                        bPSModeTxBurst;        // Beacon releated    WORD                    wSeqCounter;        BOOL                    bBeaconBufReady;        BOOL                    bBeaconSent;    BOOL                    bFixRate;    BYTE                    byCurrentCh;    UINT                    uScanTime;        CMD_STATE               eCommandState;    CMD_CODE                eCommand;    BOOL                    bBeaconTx;    BYTE                    byScanBBType;            BOOL                    bStopBeacon;    BOOL                    bStopDataPkt;    BOOL                    bStopTx0Pkt;        UINT                    uAutoReConnectTime;    UINT                    uIsroamingTime;        // 802.11 counter        CMD_ITEM                eCmdQueue[CMD_Q_SIZE];    UINT                    uCmdDequeueIdx;    UINT                    uCmdEnqueueIdx;    UINT                    cbFreeCmdQueue;    BOOL                    bCmdRunning;    BOOL                    bCmdClear;    BOOL                    bNeedRadioOFF;    BOOL                    bEnableRoaming;  //DavidWang    BOOL                    bIsRoaming;  //DavidWang    BOOL                    bFastRoaming;  //DavidWang    BYTE                    bSameBSSMaxNum;  //Davidwang    BYTE                    bSameBSSCurNum;  //DavidWang    BOOL                    bRoaming;    BOOL                    b11hEable;    ULONG                   ulTxPower;        // Encryption        NDIS_802_11_WEP_STATUS  eEncryptionStatus;    BOOL                    bTransmitKey;//2007-0925-01<Add>by MikeLiu//mike add :save old Encryption    NDIS_802_11_WEP_STATUS  eOldEncryptionStatus;    SKeyManagement          sKey;    DWORD                   dwIVCounter;    RC4Ext                  SBox;    BYTE                    abyPRNG[WLAN_WEPMAX_KEYLEN+3];    BYTE                    byKeyIndex;        BOOL                    bAES;    BYTE                    byCntMeasure;            UINT                    uKeyLength;    BYTE                    abyKey[WLAN_WEP232_KEYLEN];    // for AP mode    UINT                    uAssocCount;    BOOL                    bMoreData;    // QoS    BOOL                    bGrpAckPolicy;    BYTE                    byAutoFBCtrl;    BOOL                    bTxMICFail;    BOOL                    bRxMICFail;            // For Update BaseBand VGA Gain Offset    BOOL                    bUpdateBBVGA;    UINT                    uBBVGADiffCount;    BYTE                    byBBVGANew;    BYTE                    byBBVGACurrent;    BYTE                    abyBBVGA[BB_VGA_LEVEL];    LONG                    ldBmThreshold[BB_VGA_LEVEL];        BYTE                    byBBPreEDRSSI;    BYTE                    byBBPreEDIndex;                BOOL                    bRadioCmd;    DWORD                   dwDiagRefCount;        // For FOE Tuning    BYTE                    byFOETuning;              // For Auto Power Tunning        BYTE                    byAutoPwrTunning;        // BaseBand Loopback Use    BYTE                    byBBCR4d;    BYTE                    byBBCRc9;        BYTE                    byBBCR88;    BYTE                    byBBCR09;               // command timer    struct timer_list       sTimerCommand;    //2007-0115-01<Add>by MikeLiu#ifdef TxInSleep     struct timer_list       sTimerTxData;       ULONG                       nTxDataTimeCout;     BOOL  fTxDataInSleep;     BOOL  IsTxDataTrigger;#endif#ifdef SndEvt_ToAPI      //notify event to application layerstruct net_device       *evtdev;                     BOOL       bEVTDevEnable;		ULONG         ulNTYcount;      struct sk_buff        *skbevt;WLAN_INFOR_POOL ItemInforPool;#endif    SEthernetHeader         sTxEthHeader;    SEthernetHeader         sRxEthHeader;    BYTE                    abyBroadcastAddr[U_ETHER_ADDR_LEN];    BYTE                    abySNAP_RFC1042[U_ETHER_ADDR_LEN];    BYTE                    abySNAP_Bridgetunnel[U_ETHER_ADDR_LEN];                // Pre-Authentication & PMK cache    SPMKID                  gsPMKID;    SPMKIDCandidateEvent    gsPMKIDCandidate;                // for 802.11h    BOOL                    b11hEnable;    BOOL                    bChannelSwitch;    BYTE                    byNewChannel;    BYTE                    byChannelSwitchCount;    //WPA supplicant daemon	struct net_device       *wpadev;	BOOL                    bWPADevEnable;    struct sk_buff          *skb;    //--#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT        BOOL                 bwextstep0;        BOOL                 bwextstep1;        BOOL                 bwextstep2;        BOOL                 bwextstep3;        BOOL                 bWPASuppWextEnabled;#endif#ifdef HOSTAP    // user space daemon: hostapd, is used for HOSTAP	BOOL                    bEnableHostapd;	BOOL                    bEnable8021x;	BOOL                    bEnableHostWEP;		struct net_device       *apdev;	int (*tx_80211)(struct sk_buff *skb, struct net_device *dev);#endif       UINT                    uChannel;    #ifdef WIRELESS_EXT	struct iw_statistics	wstats;		// wireless stats#endif /* WIRELESS_EXT */        BOOL                    bCommit;    } DEVICE_INFO, *PSDevice;#define EnqueueRCB(_Head, _Tail, _RCB)                  \{                                                       \    if (!_Head) {                                       \        _Head = _RCB;                                   \    }                                                   \    else {                                              \        _Tail->Next = _RCB;                             \    }                                                   \    _RCB->Next = NULL;                                  \    _Tail = _RCB;                                       \}#define DequeueRCB(Head, Tail)                          \{                                                       \    PRCB   RCB = Head;                                  \    if (!RCB->Next) {                                   \        Tail = NULL;                                    \    }                                                   \    Head = RCB->Next;                                   \}#define ADD_ONE_WITH_WRAP_AROUND(uVar, uModulo) {   \    if ((uVar) >= ((uModulo) - 1))                  \        (uVar) = 0;                                 \    else                                            \        (uVar)++;                                   \}#define fMP_RESET_IN_PROGRESS               0x00000001#define fMP_DISCONNECTED                    0x00000002 #define fMP_HALT_IN_PROGRESS                0x00000004#define fMP_SURPRISE_REMOVED                0x00000008#define fMP_RECV_LOOKASIDE                  0x00000010#define fMP_INIT_IN_PROGRESS                0x00000020#define fMP_SEND_SIDE_RESOURCE_ALLOCATED    0x00000040#define fMP_RECV_SIDE_RESOURCE_ALLOCATED    0x00000080#define fMP_POST_READS                      0x00000100#define fMP_POST_WRITES                     0x00000200#define fMP_CONTROL_READS                   0x00000400#define fMP_CONTROL_WRITES                  0x00000800#define MP_SET_FLAG(_M, _F)             ((_M)->Flags |= (_F))#define MP_CLEAR_FLAG(_M, _F)            ((_M)->Flags &= ~(_F))#define MP_TEST_FLAG(_M, _F)            (((_M)->Flags & (_F)) != 0)#define MP_TEST_FLAGS(_M, _F)            (((_M)->Flags & (_F)) == (_F))#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  --------------------------*///BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, UINT uNodeIndex);BOOL device_alloc_frag_buf(PSDevice pDevice, PSDeFragControlBlock pDeF);#ifdef SndEvt_ToAPI VOID evt_notify(PSDevice pDevice,int msgtype,int value);#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -