0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __RF_H__
0015 #define __RF_H__
0016
0017 #include "device.h"
0018
0019
0020
0021
0022
0023 #define RF_RFMD2959 0x01
0024 #define RF_MAXIMAG 0x02
0025 #define RF_AIROHA 0x03
0026
0027 #define RF_UW2451 0x05
0028 #define RF_MAXIMG 0x06
0029 #define RF_MAXIM2829 0x07
0030 #define RF_UW2452 0x08
0031 #define RF_AIROHA7230 0x0a
0032 #define RF_UW2453 0x0b
0033
0034 #define RF_VT3226 0x09
0035 #define RF_AL2230S 0x0e
0036
0037 #define RF_NOTHING 0x7E
0038 #define RF_EMU 0x80
0039 #define RF_MASK 0x7F
0040
0041 #define ZONE_FCC 0
0042 #define ZONE_MKK1 1
0043 #define ZONE_ETSI 2
0044 #define ZONE_IC 3
0045 #define ZONE_SPAIN 4
0046 #define ZONE_FRANCE 5
0047 #define ZONE_MKK 6
0048 #define ZONE_ISRAEL 7
0049
0050
0051 #define CB_MAXIM2829_CHANNEL_5G_HIGH 41
0052 #define CB_UW2452_CHANNEL_5G_HIGH 41
0053
0054
0055
0056
0057
0058
0059
0060 bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData);
0061 bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, u16 byChannel);
0062 bool RFbInit(struct vnt_private *priv);
0063 bool rf_write_wake_prog_syn(struct vnt_private *priv, unsigned char rf_type, u16 channel);
0064 bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH);
0065 bool RFbRawSetPower(struct vnt_private *priv, unsigned char byPwr,
0066 unsigned int rate);
0067
0068 void RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,
0069 long *pldBm);
0070
0071
0072 bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, u16 byOldChannel, u16 byNewChannel);
0073
0074
0075 #endif