Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
[linux-btrfs-devel.git] / drivers / staging / vt6655 / rf.h
blob1f8d82e130419cb04448ae3030c6cb3719714a3a
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: rf.h
22 * Purpose:
24 * Author: Jerry Chen
26 * Date: Feb. 19, 2004
30 #ifndef __RF_H__
31 #define __RF_H__
33 #include "ttype.h"
34 #include "device.h"
36 /*--------------------- Export Definitions -------------------------*/
38 // Baseband RF pair definition in eeprom (Bits 6..0)
40 #define RF_RFMD2959 0x01
41 #define RF_MAXIMAG 0x02
42 #define RF_AIROHA 0x03
44 //#define RF_GCT5103 0x04
45 #define RF_UW2451 0x05
46 #define RF_MAXIMG 0x06
47 #define RF_MAXIM2829 0x07 // RobertYu: 20041118
48 #define RF_UW2452 0x08 // RobertYu: 20041210
49 #define RF_AIROHA7230 0x0a // RobertYu: 20050104
50 #define RF_UW2453 0x0b
52 #define RF_VT3226 0x09
53 #define RF_AL2230S 0x0e
55 #define RF_NOTHING 0x7E
56 #define RF_EMU 0x80
57 #define RF_MASK 0x7F
59 #define ZONE_FCC 0
60 #define ZONE_MKK1 1
61 #define ZONE_ETSI 2
62 #define ZONE_IC 3
63 #define ZONE_SPAIN 4
64 #define ZONE_FRANCE 5
65 #define ZONE_MKK 6
66 #define ZONE_ISRAEL 7
68 //[20050104] CB_MAXIM2829_CHANNEL_5G_HIGH, CB_UW2452_CHANNEL_5G_HIGH: 40==>41
69 #define CB_MAXIM2829_CHANNEL_5G_HIGH 41 //Index41: channel = 100, Tf = 5500MHz, set the (A3:A0=0101) D6=1
70 #define CB_UW2452_CHANNEL_5G_HIGH 41 //[20041210] Index41: channel = 100, Tf = 5500MHz, change VCO2->VCO3
73 /*--------------------- Export Classes ----------------------------*/
75 /*--------------------- Export Variables --------------------------*/
77 /*--------------------- Export Functions --------------------------*/
79 bool IFRFbWriteEmbeded(unsigned long dwIoBase, unsigned long dwData);
80 bool RFbSelectChannel(unsigned long dwIoBase, unsigned char byRFType, unsigned char byChannel);
81 bool RFbInit (
82 PSDevice pDevice
84 bool RFvWriteWakeProgSyn(unsigned long dwIoBase, unsigned char byRFType, unsigned int uChannel);
85 bool RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH);
86 bool RFbRawSetPower(
87 PSDevice pDevice,
88 unsigned char byPwr,
89 unsigned int uRATE
92 void
93 RFvRSSITodBm(
94 PSDevice pDevice,
95 unsigned char byCurrRSSI,
96 long *pldBm
99 //{{ RobertYu: 20050104
100 bool RFbAL7230SelectChannelPostProcess(unsigned long dwIoBase, unsigned char byOldChannel, unsigned char byNewChannel);
101 //}} RobertYu
103 #endif // __RF_H__