Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
0004  * All rights reserved.
0005  *
0006  * Purpose:
0007  *
0008  * Author: Jerry Chen
0009  *
0010  * Date: Feb. 19, 2004
0011  *
0012  */
0013 
0014 #ifndef __RF_H__
0015 #define __RF_H__
0016 
0017 #include "device.h"
0018 
0019 /*---------------------  Export Definitions -------------------------*/
0020 /*
0021  * Baseband RF pair definition in eeprom (Bits 6..0)
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 /* RobertYu: 20041118 */
0030 #define RF_UW2452               0x08 /* RobertYu: 20041210 */
0031 #define RF_AIROHA7230           0x0a /* RobertYu: 20050104 */
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 /* [20050104] CB_MAXIM2829_CHANNEL_5G_HIGH, CB_UW2452_CHANNEL_5G_HIGH: 40==>41 */
0051 #define CB_MAXIM2829_CHANNEL_5G_HIGH    41 /* Index41: channel = 100, Tf = 5500MHz, set the (A3:A0=0101) D6=1 */
0052 #define CB_UW2452_CHANNEL_5G_HIGH       41 /* [20041210] Index41: channel = 100, Tf = 5500MHz, change VCO2->VCO3 */
0053 
0054 /*---------------------  Export Classes  ----------------------------*/
0055 
0056 /*---------------------  Export Variables  --------------------------*/
0057 
0058 /*---------------------  Export Functions  --------------------------*/
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 /* {{ RobertYu: 20050104 */
0072 bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, u16 byOldChannel, u16 byNewChannel);
0073 /* }} RobertYu */
0074 
0075 #endif /* __RF_H__ */