linux/drivers/staging/vt6656/rf.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * Purpose: rf function code
 *
 * Author: Jerry Chen
 *
 * Date: Feb. 19, 2004
 *
 * Functions:
 *	vnt_rf_write_embedded	- Embedded write RF register via MAC
 *
 * Revision History:
 *	RF_VT3226: RobertYu:20051111, VT3226C0 and before
 *	RF_VT3226D0: RobertYu:20051228
 *	RF_VT3342A0: RobertYu:20060609
 *
 */

#include <linux/errno.h>
#include "mac.h"
#include "rf.h"
#include "baseband.h"
#include "usbpipe.h"

#define CB_AL2230_INIT_SEQ
#define CB_AL7230_INIT_SEQ
#define CB_VT3226_INIT_SEQ
#define CB_VT3342_INIT_SEQ

static u8 al2230_init_table[CB_AL2230_INIT_SEQ][3] =;

static u8 al2230_channel_table0[CB_MAX_CHANNEL_24G][3] =;

static u8 al2230_channel_table1[CB_MAX_CHANNEL_24G][3] =;

static u8 vt3226_init_table[CB_VT3226_INIT_SEQ][3] =;

static u8 vt3226d0_init_table[CB_VT3226_INIT_SEQ][3] =;

static u8 vt3226_channel_table0[CB_MAX_CHANNEL_24G][3] =;

static u8 vt3226_channel_table1[CB_MAX_CHANNEL_24G][3] =;

static const u32 vt3226d0_lo_current_table[CB_MAX_CHANNEL_24G] =;

enum {};

struct vnt_table_info {};

static const struct vnt_table_info vnt_table_seq[][3] =;

/*
 * Description: Write to IF/RF, by embedded programming
 */
int vnt_rf_write_embedded(struct vnt_private *priv, u32 data)
{}

static u8 vnt_rf_addpower(struct vnt_private *priv)
{}

/* Set Tx power by power level and rate */
static int vnt_rf_set_txpower(struct vnt_private *priv, u8 power,
			      struct ieee80211_channel *ch)
{}

/* Set Tx power by channel number type */
int vnt_rf_setpower(struct vnt_private *priv,
		    struct ieee80211_channel *ch)
{}

/* Convert rssi to dbm */
void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm)
{}

int vnt_rf_table_download(struct vnt_private *priv)
{}