72 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.4 * All rights reserved.5 *6 * Purpose:7 *8 * Author: Jerry Chen9 *10 * Date: Feb. 19, 200411 *12 */13 14#ifndef __RF_H__15#define __RF_H__16 17#include "device.h"18 19/*--------------------- Export Definitions -------------------------*/20/*21 * Baseband RF pair definition in eeprom (Bits 6..0)22 */23#define RF_RFMD2959 0x0124#define RF_MAXIMAG 0x0225#define RF_AIROHA 0x0326 27#define RF_UW2451 0x0528#define RF_MAXIMG 0x0629#define RF_MAXIM2829 0x07 /* RobertYu: 20041118 */30#define RF_UW2452 0x08 /* RobertYu: 20041210 */31#define RF_AIROHA7230 0x0a /* RobertYu: 20050104 */32#define RF_UW2453 0x0b33 34#define RF_VT3226 0x0935#define RF_AL2230S 0x0e36 37#define RF_NOTHING 0x7E38#define RF_EMU 0x8039#define RF_MASK 0x7F40 41#define ZONE_FCC 042#define ZONE_MKK1 143#define ZONE_ETSI 244#define ZONE_IC 345#define ZONE_SPAIN 446#define ZONE_FRANCE 547#define ZONE_MKK 648#define ZONE_ISRAEL 749 50/* [20050104] CB_MAXIM2829_CHANNEL_5G_HIGH, CB_UW2452_CHANNEL_5G_HIGH: 40==>41 */51#define CB_MAXIM2829_CHANNEL_5G_HIGH 41 /* Index41: channel = 100, Tf = 5500MHz, set the (A3:A0=0101) D6=1 */52#define CB_UW2452_CHANNEL_5G_HIGH 41 /* [20041210] Index41: channel = 100, Tf = 5500MHz, change VCO2->VCO3 */53 54/*--------------------- Export Classes ----------------------------*/55 56/*--------------------- Export Variables --------------------------*/57 58/*--------------------- Export Functions --------------------------*/59 60bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData);61bool RFbSelectChannel(struct vnt_private *priv, unsigned char rf_type, u16 byChannel);62bool RFbInit(struct vnt_private *priv);63bool rf_write_wake_prog_syn(struct vnt_private *priv, unsigned char rf_type, u16 channel);64bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH);65bool RFbRawSetPower(struct vnt_private *priv, unsigned char byPwr,66 unsigned int rate);67 68void RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,69 long *pldBm);70 71#endif /* __RF_H__ */72