Merge tag 'usb-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / vt6656 / rf.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 *
20 * File: rf.h
21 *
22 * Purpose:
23 *
24 * Author: Jerry Chen
25 *
26 * Date: Feb. 19, 2004
27 *
28 */
29
92b96797
FB
30#ifndef __RF_H__
31#define __RF_H__
32
92b96797 33#include "device.h"
9d26d60f 34
92b96797
FB
35//
36// Baseband RF pair definition in eeprom (Bits 6..0)
37//
38#define RF_RFMD2959 0x01
39#define RF_MAXIMAG 0x02
40#define RF_AL2230 0x03
41#define RF_GCT5103 0x04
42#define RF_UW2451 0x05
43#define RF_MAXIMG 0x06
44#define RF_MAXIM2829 0x07
45#define RF_UW2452 0x08
46#define RF_VT3226 0x09
47#define RF_AIROHA7230 0x0a
48#define RF_UW2453 0x0b
49#define RF_VT3226D0 0x0c //RobertYu:20051114
50#define RF_VT3342A0 0x0d //RobertYu:20060609
51#define RF_AL2230S 0x0e
52
53#define RF_EMU 0x80
54#define RF_MASK 0x7F
55
da033bfd 56extern const u8 RFaby11aChannelIndex[200];
92b96797 57
da033bfd
MP
58int IFRFbWriteEmbedded(struct vnt_private *, u32 dwData);
59int RFbSetPower(struct vnt_private *, u32 uRATE, u32 uCH);
60int RFbRawSetPower(struct vnt_private *, u8 byPwr, u32 uRATE);
61void RFvRSSITodBm(struct vnt_private *, u8 byCurrRSSI, long *pldBm);
62void RFbRFTableDownload(struct vnt_private *pDevice);
92b96797 63
e7b07d1d 64#endif /* __RF_H__ */