Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.13 117 lines 3.4 kB view raw
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 * 20 * File: baseband.h 21 * 22 * Purpose: Implement functions to access baseband 23 * 24 * Author: Jerry Chen 25 * 26 * Date: Jun. 5, 2002 27 * 28 * Revision History: 29 * 06-10-2003 Bryan YC Fan: Re-write codes to support VT3253 spec. 30 * 08-26-2003 Kyle Hsu : Add defines of packet type and TX rate. 31 */ 32 33#ifndef __BASEBAND_H__ 34#define __BASEBAND_H__ 35 36#include "tether.h" 37#include "device.h" 38 39#define PREAMBLE_LONG 0 40#define PREAMBLE_SHORT 1 41 42/* 43 * Registers in the BASEBAND 44 */ 45#define BB_MAX_CONTEXT_SIZE 256 46 47#define C_SIFS_A 16 /* usec */ 48#define C_SIFS_BG 10 49 50#define C_EIFS 80 /* usec */ 51 52#define C_SLOT_SHORT 9 /* usec */ 53#define C_SLOT_LONG 20 54 55#define C_CWMIN_A 15 /* slot time */ 56#define C_CWMIN_B 31 57 58#define C_CWMAX 1023 /* slot time */ 59 60/* 0:11A 1:11B 2:11G */ 61#define BB_TYPE_11A 0 62#define BB_TYPE_11B 1 63#define BB_TYPE_11G 2 64 65/* 0:11a, 1:11b, 2:11gb (only CCK in BasicRate), 3:11ga (OFDM in BasicRate) */ 66#define PK_TYPE_11A 0 67#define PK_TYPE_11B 1 68#define PK_TYPE_11GB 2 69#define PK_TYPE_11GA 3 70 71#define TOP_RATE_54M 0x80000000 72#define TOP_RATE_48M 0x40000000 73#define TOP_RATE_36M 0x20000000 74#define TOP_RATE_24M 0x10000000 75#define TOP_RATE_18M 0x08000000 76#define TOP_RATE_12M 0x04000000 77#define TOP_RATE_11M 0x02000000 78#define TOP_RATE_9M 0x01000000 79#define TOP_RATE_6M 0x00800000 80#define TOP_RATE_55M 0x00400000 81#define TOP_RATE_2M 0x00200000 82#define TOP_RATE_1M 0x00100000 83 84/* Length, Service, and Signal fields of Phy for Tx */ 85struct vnt_phy_field { 86 u8 signal; 87 u8 service; 88 __le16 len; 89} __packed; 90 91unsigned int 92BBuGetFrameTime( 93 u8 byPreambleType, 94 u8 byFreqType, 95 unsigned int cbFrameLength, 96 u16 wRate 97 ); 98 99void BBvCalculateParameter(struct vnt_private *, u32 cbFrameLength, 100 u16 wRate, u8 byPacketType, struct vnt_phy_field *); 101 102/* timer for antenna diversity */ 103 104void TimerSQ3CallBack(struct vnt_private *); 105void TimerSQ3Tmax3CallBack(struct vnt_private *); 106 107void BBvAntennaDiversity(struct vnt_private *, u8 byRxRate, u8 bySQ3); 108 109void BBvSetShortSlotTime(struct vnt_private *); 110void BBvSetVGAGainOffset(struct vnt_private *, u8 byData); 111void BBvSetAntennaMode(struct vnt_private *, u8 byAntennaMode); 112int BBbVT3184Init(struct vnt_private *); 113void BBvSetDeepSleep(struct vnt_private *); 114void BBvExitDeepSleep(struct vnt_private *); 115void BBvUpdatePreEDThreshold(struct vnt_private *, int bScanning); 116 117#endif /* __BASEBAND_H__ */