1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 #ifndef __RF_H__
  17 #define __RF_H__
  18 
  19 #include "device.h"
  20 
  21 
  22 
  23 
  24 
  25 #define RF_RFMD2959             0x01
  26 #define RF_MAXIMAG              0x02
  27 #define RF_AIROHA               0x03
  28 
  29 #define RF_UW2451               0x05
  30 #define RF_MAXIMG               0x06
  31 #define RF_MAXIM2829            0x07 
  32 #define RF_UW2452               0x08 
  33 #define RF_AIROHA7230           0x0a 
  34 #define RF_UW2453               0x0b
  35 
  36 #define RF_VT3226               0x09
  37 #define RF_AL2230S              0x0e
  38 
  39 #define RF_NOTHING              0x7E
  40 #define RF_EMU                  0x80
  41 #define RF_MASK                 0x7F
  42 
  43 #define ZONE_FCC                0
  44 #define ZONE_MKK1               1
  45 #define ZONE_ETSI               2
  46 #define ZONE_IC                 3
  47 #define ZONE_SPAIN              4
  48 #define ZONE_FRANCE             5
  49 #define ZONE_MKK                6
  50 #define ZONE_ISRAEL             7
  51 
  52 
  53 #define CB_MAXIM2829_CHANNEL_5G_HIGH    41 
  54 #define CB_UW2452_CHANNEL_5G_HIGH       41 
  55 
  56 
  57 
  58 
  59 
  60 
  61 
  62 bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData);
  63 bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, u16 byChannel);
  64 bool RFbInit(
  65         struct vnt_private *priv
  66 );
  67 bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, u16 uChannel);
  68 bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH);
  69 bool RFbRawSetPower(
  70         struct vnt_private *priv,
  71         unsigned char byPwr,
  72         unsigned int rate
  73 );
  74 
  75 void
  76 RFvRSSITodBm(
  77         struct vnt_private *priv,
  78         unsigned char byCurrRSSI,
  79         long    *pldBm
  80 );
  81 
  82 
  83 bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, u16 byOldChannel, u16 byNewChannel);
  84 
  85 
  86 #endif