diff options
Diffstat (limited to 'drivers/staging/vt6656/card.h')
-rw-r--r-- | drivers/staging/vt6656/card.h | 62 |
1 files changed, 28 insertions, 34 deletions
diff --git a/drivers/staging/vt6656/card.h b/drivers/staging/vt6656/card.h index aa90c2cb4461..6c91343d0d14 100644 --- a/drivers/staging/vt6656/card.h +++ b/drivers/staging/vt6656/card.h @@ -33,63 +33,57 @@ /*--------------------- Export Definitions -------------------------*/ - /*--------------------- Export Classes ----------------------------*/ -// Init card type +/* init card type */ typedef enum _CARD_PHY_TYPE { - - PHY_TYPE_AUTO=0, + PHY_TYPE_AUTO = 0, PHY_TYPE_11B, PHY_TYPE_11G, PHY_TYPE_11A } CARD_PHY_TYPE, *PCARD_PHY_TYPE; typedef enum _CARD_OP_MODE { - - OP_MODE_INFRASTRUCTURE=0, + OP_MODE_INFRASTRUCTURE = 0, OP_MODE_ADHOC, OP_MODE_AP, OP_MODE_UNKNOWN } CARD_OP_MODE, *PCARD_OP_MODE; #define CB_MAX_CHANNEL_24G 14 -//#define CB_MAX_CHANNEL_5G 24 -#define CB_MAX_CHANNEL_5G 42 //[20050104] add channel9(5045MHz), 41==>42 +/* #define CB_MAX_CHANNEL_5G 24 */ +#define CB_MAX_CHANNEL_5G 42 /* add channel9(5045MHz), 41==>42 */ #define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G) /*--------------------- Export Variables --------------------------*/ /*--------------------- Export Functions --------------------------*/ -BOOL CARDbSetMediaChannel(PVOID pDeviceHandler, UINT uConnectionChannel); -void CARDvSetRSPINF(PVOID pDeviceHandler, BYTE byBBType); -void vUpdateIFS(PVOID pDeviceHandler); -void CARDvUpdateBasicTopRate(PVOID pDeviceHandler); -BOOL CARDbAddBasicRate(PVOID pDeviceHandler, WORD wRateIdx); -BOOL CARDbIsOFDMinBasicRate(PVOID pDeviceHandler); -void CARDvAdjustTSF(PVOID pDeviceHandler, BYTE byRxRate, QWORD qwBSSTimestamp, QWORD qwLocalTSF); -BOOL CARDbGetCurrentTSF (PVOID pDeviceHandler, PQWORD pqwCurrTSF); -BOOL CARDbClearCurrentTSF(PVOID pDeviceHandler); -void CARDvSetFirstNextTBTT(PVOID pDeviceHandler, WORD wBeaconInterval); -void CARDvUpdateNextTBTT(PVOID pDeviceHandler, QWORD qwTSF, WORD wBeaconInterval); +BOOL CARDbSetMediaChannel(void *pDeviceHandler, + unsigned int uConnectionChannel); +void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType); +void vUpdateIFS(void *pDeviceHandler); +void CARDvUpdateBasicTopRate(void *pDeviceHandler); +BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx); +BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler); +void CARDvAdjustTSF(void *pDeviceHandler, BYTE byRxRate, + QWORD qwBSSTimestamp, QWORD qwLocalTSF); +BOOL CARDbGetCurrentTSF(void *pDeviceHandler, PQWORD pqwCurrTSF); +BOOL CARDbClearCurrentTSF(void *pDeviceHandler); +void CARDvSetFirstNextTBTT(void *pDeviceHandler, WORD wBeaconInterval); +void CARDvUpdateNextTBTT(void *pDeviceHandler, QWORD qwTSF, + WORD wBeaconInterval); QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval); QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2); -BOOL CARDbRadioPowerOff(PVOID pDeviceHandler); -BOOL CARDbRadioPowerOn(PVOID pDeviceHandler); -BYTE CARDbyGetPktType(PVOID pDeviceHandler); -void CARDvSetBSSMode(PVOID pDeviceHandler); - -BOOL -CARDbChannelSwitch ( - IN PVOID pDeviceHandler, - IN BYTE byMode, - IN BYTE byNewChannel, - IN BYTE byCount - ); - -#endif // __CARD_H__ - +BOOL CARDbRadioPowerOff(void *pDeviceHandler); +BOOL CARDbRadioPowerOn(void *pDeviceHandler); +BYTE CARDbyGetPktType(void *pDeviceHandler); +void CARDvSetBSSMode(void *pDeviceHandler); +BOOL CARDbChannelSwitch(void *pDeviceHandler, + BYTE byMode, + BYTE byNewChannel, + BYTE byCount); +#endif /* __CARD_H__ */ |