linux/drivers/net/wireless/zydas/zd1211rw/zd_rf.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/* ZD1211 USB-WLAN driver for Linux
 *
 * Copyright (C) 2005-2007 Ulrich Kunitz <[email protected]>
 * Copyright (C) 2006-2007 Daniel Drake <[email protected]>
 */

#ifndef _ZD_RF_H
#define _ZD_RF_H

#define UW2451_RF
#define UCHIP_RF
#define AL2230_RF
#define AL7230B_RF
#define THETA_RF
#define AL2210_RF
#define MAXIM_NEW_RF
#define UW2453_RF
#define AL2230S_RF
#define RALINK_RF
#define INTERSIL_RF
#define RF2959_RF
#define MAXIM_NEW2_RF
#define PHILIPS_RF

#define RF_CHANNEL(ch)

/* Provides functions of the RF transceiver. */

enum {};

struct zd_rf {};

const char *zd_rf_name(u8 type);
void zd_rf_init(struct zd_rf *rf);
void zd_rf_clear(struct zd_rf *rf);
int zd_rf_init_hw(struct zd_rf *rf, u8 type);

int zd_rf_scnprint_id(struct zd_rf *rf, char *buffer, size_t size);

int zd_rf_set_channel(struct zd_rf *rf, u8 channel);

int zd_switch_radio_on(struct zd_rf *rf);
int zd_switch_radio_off(struct zd_rf *rf);

int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel);
int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel);

static inline int zd_rf_should_update_pwr_int(struct zd_rf *rf)
{}

static inline int zd_rf_should_patch_cck_gain(struct zd_rf *rf)
{}

/* Functions for individual RF chips */

int zd_rf_init_rf2959(struct zd_rf *rf);
int zd_rf_init_al2230(struct zd_rf *rf);
int zd_rf_init_al7230b(struct zd_rf *rf);
int zd_rf_init_uw2453(struct zd_rf *rf);

#endif /* _ZD_RF_H */