linux/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
	Copyright (C) 2010 Willow Garage <http://www.willowgarage.com>
	Copyright (C) 2004 - 2010 Ivo van Doorn <[email protected]>
	<http://rt2x00.serialmonkey.com>

 */

/*
	Module: rt2x00lib
	Abstract: rt2x00 generic device routines.
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/log2.h>
#include <linux/of.h>
#include <linux/of_net.h>

#include "rt2x00.h"
#include "rt2x00lib.h"

/*
 * Utility functions.
 */
u32 rt2x00lib_get_bssidx(struct rt2x00_dev *rt2x00dev,
			 struct ieee80211_vif *vif)
{}
EXPORT_SYMBOL_GPL();

/*
 * Radio control handlers.
 */
int rt2x00lib_enable_radio(struct rt2x00_dev *rt2x00dev)
{}

void rt2x00lib_disable_radio(struct rt2x00_dev *rt2x00dev)
{}

static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac,
					  struct ieee80211_vif *vif)
{}

static void rt2x00lib_intf_scheduled(struct work_struct *work)
{}

static void rt2x00lib_autowakeup(struct work_struct *work)
{}

/*
 * Interrupt context handlers.
 */
static void rt2x00lib_bc_buffer_iter(void *data, u8 *mac,
				     struct ieee80211_vif *vif)
{}

static void rt2x00lib_beaconupdate_iter(void *data, u8 *mac,
					struct ieee80211_vif *vif)
{}

void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_pretbtt(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_dmastart(struct queue_entry *entry)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_dmadone(struct queue_entry *entry)
{}
EXPORT_SYMBOL_GPL();

static inline int rt2x00lib_txdone_bar_status(struct queue_entry *entry)
{}

static void rt2x00lib_fill_tx_status(struct rt2x00_dev *rt2x00dev,
				     struct ieee80211_tx_info *tx_info,
				     struct skb_frame_desc *skbdesc,
				     struct txdone_entry_desc *txdesc,
				     bool success)
{}

static void rt2x00lib_clear_entry(struct rt2x00_dev *rt2x00dev,
				  struct queue_entry *entry)
{}

void rt2x00lib_txdone_nomatch(struct queue_entry *entry,
			      struct txdone_entry_desc *txdesc)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_txdone(struct queue_entry *entry,
		      struct txdone_entry_desc *txdesc)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_txdone_noinfo(struct queue_entry *entry, u32 status)
{}
EXPORT_SYMBOL_GPL();

static u8 *rt2x00lib_find_ie(u8 *data, unsigned int len, u8 ie)
{}

static void rt2x00lib_sleep(struct work_struct *work)
{}

static void rt2x00lib_rxdone_check_ba(struct rt2x00_dev *rt2x00dev,
				      struct sk_buff *skb,
				      struct rxdone_entry_desc *rxdesc)
{}

static void rt2x00lib_rxdone_check_ps(struct rt2x00_dev *rt2x00dev,
				      struct sk_buff *skb,
				      struct rxdone_entry_desc *rxdesc)
{}

static int rt2x00lib_rxdone_read_signal(struct rt2x00_dev *rt2x00dev,
					struct rxdone_entry_desc *rxdesc)
{}

void rt2x00lib_rxdone(struct queue_entry *entry, gfp_t gfp)
{}
EXPORT_SYMBOL_GPL();

/*
 * Driver initialization handlers.
 */
const struct rt2x00_rate rt2x00_supported_rates[12] =;

static void rt2x00lib_channel(struct ieee80211_channel *entry,
			      const int channel, const int tx_power,
			      const int value)
{}

static void rt2x00lib_rate(struct ieee80211_rate *entry,
			   const u16 index, const struct rt2x00_rate *rate)
{}

void rt2x00lib_set_mac_address(struct rt2x00_dev *rt2x00dev, u8 *eeprom_mac_addr)
{}
EXPORT_SYMBOL_GPL();

static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev,
				    struct hw_mode_spec *spec)
{}

static void rt2x00lib_remove_hw(struct rt2x00_dev *rt2x00dev)
{}

static const struct ieee80211_tpt_blink rt2x00_tpt_blink[] =;

static int rt2x00lib_probe_hw(struct rt2x00_dev *rt2x00dev)
{}

/*
 * Initialization/uninitialization handlers.
 */
static void rt2x00lib_uninitialize(struct rt2x00_dev *rt2x00dev)
{}

static int rt2x00lib_initialize(struct rt2x00_dev *rt2x00dev)
{}

int rt2x00lib_start(struct rt2x00_dev *rt2x00dev)
{}

void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev)
{}

static inline void rt2x00lib_set_if_combinations(struct rt2x00_dev *rt2x00dev)
{}

static unsigned int rt2x00dev_extra_tx_headroom(struct rt2x00_dev *rt2x00dev)
{}

/*
 * driver allocation handlers.
 */
int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

/*
 * Device state handlers
 */
int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
{}
EXPORT_SYMBOL_GPL();

/*
 * rt2x00lib module information.
 */
MODULE_AUTHOR();
MODULE_VERSION();
MODULE_DESCRIPTION();
MODULE_LICENSE();