jbd: Fix a race between checkpointing code and journal_get_write_access()
[linux/fpc-iii.git] / drivers / staging / vt6655 / datarate.h
blob5096f3df49933ac1ec4c84e66a8efe629be7e38c
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
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.
20 * File: datarate.h
22 * Purpose: Handles the auto fallback & data rates functions
24 * Author: Lyndon Chen
26 * Date: July 16, 2002
29 #ifndef __DATARATE_H__
30 #define __DATARATE_H__
32 /*--------------------- Export Definitions -------------------------*/
34 #define FALLBACK_PKT_COLLECT_TR_H 50 // pkts
35 #define FALLBACK_PKT_COLLECT_TR_L 10 // pkts
36 #define FALLBACK_POLL_SECOND 5 // 5 sec
37 #define FALLBACK_RECOVER_SECOND 30 // 30 sec
38 #define FALLBACK_THRESHOLD 15 // percent
39 #define UPGRADE_THRESHOLD 5 // percent
40 #define UPGRADE_CNT_THRD 3 // times
41 #define RETRY_TIMES_THRD_H 2 // times
42 #define RETRY_TIMES_THRD_L 1 // times
45 /*--------------------- Export Classes ----------------------------*/
47 /*--------------------- Export Variables --------------------------*/
50 /*--------------------- Export Types ------------------------------*/
53 /*--------------------- Export Functions --------------------------*/
57 VOID
58 RATEvParseMaxRate(
59 IN PVOID pDeviceHandler,
60 IN PWLAN_IE_SUPP_RATES pItemRates,
61 IN PWLAN_IE_SUPP_RATES pItemExtRates,
62 IN BOOL bUpdateBasicRate,
63 OUT PWORD pwMaxBasicRate,
64 OUT PWORD pwMaxSuppRate,
65 OUT PWORD pwSuppRate,
66 OUT PBYTE pbyTopCCKRate,
67 OUT PBYTE pbyTopOFDMRate
70 VOID
71 RATEvTxRateFallBack(
72 IN PVOID pDeviceHandler,
73 IN PKnownNodeDB psNodeDBTable
76 BYTE
77 RATEuSetIE(
78 IN PWLAN_IE_SUPP_RATES pSrcRates,
79 IN PWLAN_IE_SUPP_RATES pDstRates,
80 IN UINT uRateLen
83 WORD
84 wGetRateIdx(
85 IN BYTE byRate
89 BYTE
90 DATARATEbyGetRateIdx(
91 IN BYTE byRate
95 #endif //__DATARATE_H__