2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 * Purpose: Provide functions to setup NIC operation mode
33 #if !defined(__TTYPE_H__)
38 /*--------------------- Export Definitions -------------------------*/
41 /*--------------------- Export Classes ----------------------------*/
45 typedef enum _CARD_PHY_TYPE {
51 } CARD_PHY_TYPE, DEF* PCARD_PHY_TYPE;
53 typedef enum _CARD_OP_MODE {
55 OP_MODE_INFRASTRUCTURE=0,
59 } CARD_OP_MODE, *PCARD_OP_MODE;
61 #define CB_MAX_CHANNEL_24G 14
62 //#define CB_MAX_CHANNEL_5G 24
63 #define CB_MAX_CHANNEL_5G 42 //[20050104] add channel9(5045MHz), 41==>42
64 #define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G)
66 /*--------------------- Export Variables --------------------------*/
68 /*--------------------- Export Functions --------------------------*/
70 extern "C" { /* Assume C declarations for C++ */
71 #endif /* __cplusplus */
74 BOOL CARDbSetMediaChannel(PVOID pDeviceHandler, UINT uConnectionChannel);
75 void CARDvSetRSPINF(PVOID pDeviceHandler, BYTE byBBType);
76 void vUpdateIFS(PVOID pDeviceHandler);
77 void CARDvUpdateBasicTopRate(PVOID pDeviceHandler);
78 BOOL CARDbAddBasicRate(PVOID pDeviceHandler, WORD wRateIdx);
79 BOOL CARDbIsOFDMinBasicRate(PVOID pDeviceHandler);
80 void CARDvAdjustTSF(PVOID pDeviceHandler, BYTE byRxRate, QWORD qwBSSTimestamp, QWORD qwLocalTSF);
81 BOOL CARDbGetCurrentTSF (PVOID pDeviceHandler, PQWORD pqwCurrTSF);
82 BOOL CARDbClearCurrentTSF(PVOID pDeviceHandler);
83 void CARDvSetFirstNextTBTT(PVOID pDeviceHandler, WORD wBeaconInterval);
84 void CARDvUpdateNextTBTT(PVOID pDeviceHandler, QWORD qwTSF, WORD wBeaconInterval);
85 QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
86 QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
87 BOOL CARDbRadioPowerOff(PVOID pDeviceHandler);
88 BOOL CARDbRadioPowerOn(PVOID pDeviceHandler);
89 BYTE CARDbyGetPktType(PVOID pDeviceHandler);
90 void CARDvSetBSSMode(PVOID pDeviceHandler);
94 IN PVOID pDeviceHandler,
102 } /* End of extern "C" { */
103 #endif /* __cplusplus */