linux/drivers/staging/vt6655/rf.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * Purpose:
 *
 * Author: Jerry Chen
 *
 * Date: Feb. 19, 2004
 *
 */

#ifndef __RF_H__
#define __RF_H__

#include "device.h"

/*---------------------  Export Definitions -------------------------*/
/*
 * Baseband RF pair definition in eeprom (Bits 6..0)
 */
#define RF_RFMD2959
#define RF_MAXIMAG
#define RF_AIROHA

#define RF_UW2451
#define RF_MAXIMG
#define RF_MAXIM2829
#define RF_UW2452
#define RF_AIROHA7230
#define RF_UW2453

#define RF_VT3226
#define RF_AL2230S

#define RF_NOTHING
#define RF_EMU
#define RF_MASK

#define ZONE_FCC
#define ZONE_MKK1
#define ZONE_ETSI
#define ZONE_IC
#define ZONE_SPAIN
#define ZONE_FRANCE
#define ZONE_MKK
#define ZONE_ISRAEL

/* [20050104] CB_MAXIM2829_CHANNEL_5G_HIGH, CB_UW2452_CHANNEL_5G_HIGH: 40==>41 */
#define CB_MAXIM2829_CHANNEL_5G_HIGH
#define CB_UW2452_CHANNEL_5G_HIGH

/*---------------------  Export Classes  ----------------------------*/

/*---------------------  Export Variables  --------------------------*/

/*---------------------  Export Functions  --------------------------*/

bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData);
bool RFbSelectChannel(struct vnt_private *priv, unsigned char rf_type, u16 byChannel);
bool RFbInit(struct vnt_private *priv);
bool rf_write_wake_prog_syn(struct vnt_private *priv, unsigned char rf_type, u16 channel);
bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH);
bool RFbRawSetPower(struct vnt_private *priv, unsigned char byPwr,
		    unsigned int rate);

void RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,
		  long *pldBm);

#endif /* __RF_H__ */