Staging: vt6656: removed SUCCESS define as it is not used
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / vt6656 / card.h
CommitLineData
92b96797
FB
1/*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
4 *
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.
9 *
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.
14 *
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.
18 *
19 * File: card.h
20 *
21 * Purpose: Provide functions to setup NIC operation mode
22 *
23 * Author: Tevin Chen
24 *
25 * Date: May 21, 1996
26 *
27 */
28
92b96797
FB
29#ifndef __CARD_H__
30#define __CARD_H__
31
92b96797 32#include "ttype.h"
92b96797
FB
33
34/*--------------------- Export Definitions -------------------------*/
35
36
37/*--------------------- Export Classes ----------------------------*/
38
39// Init card type
40
41typedef enum _CARD_PHY_TYPE {
42
43 PHY_TYPE_AUTO=0,
44 PHY_TYPE_11B,
45 PHY_TYPE_11G,
46 PHY_TYPE_11A
193a823c 47} CARD_PHY_TYPE, *PCARD_PHY_TYPE;
92b96797
FB
48
49typedef enum _CARD_OP_MODE {
50
51 OP_MODE_INFRASTRUCTURE=0,
52 OP_MODE_ADHOC,
53 OP_MODE_AP,
54 OP_MODE_UNKNOWN
55} CARD_OP_MODE, *PCARD_OP_MODE;
56
57#define CB_MAX_CHANNEL_24G 14
58//#define CB_MAX_CHANNEL_5G 24
59#define CB_MAX_CHANNEL_5G 42 //[20050104] add channel9(5045MHz), 41==>42
60#define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G)
61
62/*--------------------- Export Variables --------------------------*/
63
64/*--------------------- Export Functions --------------------------*/
92b96797 65
8611a29a
AM
66BOOL CARDbSetMediaChannel(void *pDeviceHandler, UINT uConnectionChannel);
67void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType);
68void vUpdateIFS(void *pDeviceHandler);
69void CARDvUpdateBasicTopRate(void *pDeviceHandler);
70BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx);
71BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler);
72void CARDvAdjustTSF(void *pDeviceHandler, BYTE byRxRate,
73 QWORD qwBSSTimestamp, QWORD qwLocalTSF);
74BOOL CARDbGetCurrentTSF(void *pDeviceHandler, PQWORD pqwCurrTSF);
75BOOL CARDbClearCurrentTSF(void *pDeviceHandler);
76void CARDvSetFirstNextTBTT(void *pDeviceHandler, WORD wBeaconInterval);
77void CARDvUpdateNextTBTT(void *pDeviceHandler, QWORD qwTSF,
78 WORD wBeaconInterval);
92b96797
FB
79QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
80QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
8611a29a
AM
81BOOL CARDbRadioPowerOff(void *pDeviceHandler);
82BOOL CARDbRadioPowerOn(void *pDeviceHandler);
83BYTE CARDbyGetPktType(void *pDeviceHandler);
84void CARDvSetBSSMode(void *pDeviceHandler);
92b96797
FB
85
86BOOL
87CARDbChannelSwitch (
8611a29a 88 void *pDeviceHandler,
592ccfeb
AM
89 BYTE byMode,
90 BYTE byNewChannel,
91 BYTE byCount
92b96797
FB
92 );
93
e7b07d1d 94#endif /* __CARD_H__ */