linux/drivers/staging/rtl8192e/rtl8192e/rtl_core.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
 *
 * Based on the r8180 driver, which is:
 * Copyright 2004-2005 Andrea Merello <[email protected]>, et al.
 *
 * Contact Information: wlanfae <[email protected]>
 */
#include <linux/uaccess.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/ieee80211.h>
#include "rtl_core.h"
#include "r8192E_phy.h"
#include "r8192E_phyreg.h"
#include "r8190P_rtl8256.h"
#include "r8192E_cmdpkt.h"

#include "rtl_wx.h"
#include "rtl_dm.h"

#include "rtl_pm.h"

int hwwep =;
static char *ifname =;

static struct pci_device_id rtl8192_pci_id_tbl[] =;

MODULE_DEVICE_TABLE();

static int _rtl92e_pci_probe(struct pci_dev *pdev,
			     const struct pci_device_id *id);
static void _rtl92e_pci_disconnect(struct pci_dev *pdev);
static irqreturn_t _rtl92e_irq(int irq, void *netdev);

static SIMPLE_DEV_PM_OPS(rtl92e_pm_ops, rtl92e_suspend, rtl92e_resume);

static struct pci_driver rtl8192_pci_driver =;

static short _rtl92e_is_tx_queue_empty(struct net_device *dev);
static void _rtl92e_watchdog_wq_cb(void *data);
static void _rtl92e_watchdog_timer_cb(struct timer_list *t);
static void _rtl92e_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
				   int rate);
static int _rtl92e_hard_start_xmit(struct sk_buff *skb, struct net_device *dev);
static void _rtl92e_tx_cmd(struct net_device *dev, struct sk_buff *skb);
static short _rtl92e_tx(struct net_device *dev, struct sk_buff *skb);
static short _rtl92e_pci_initdescring(struct net_device *dev);
static void _rtl92e_irq_tx_tasklet(struct tasklet_struct *t);
static void _rtl92e_irq_rx_tasklet(struct tasklet_struct *t);
static void _rtl92e_cancel_deferred_work(struct r8192_priv *priv);
static int _rtl92e_up(struct net_device *dev);
static int _rtl92e_try_up(struct net_device *dev);
static int _rtl92e_down(struct net_device *dev, bool shutdownrf);
static void _rtl92e_restart(void *data);

/****************************************************************************
 *  -----------------------------IO STUFF-------------------------
 ****************************************************************************/

u8 rtl92e_readb(struct net_device *dev, int x)
{}

u32 rtl92e_readl(struct net_device *dev, int x)
{}

u16 rtl92e_readw(struct net_device *dev, int x)
{}

void rtl92e_writeb(struct net_device *dev, int x, u8 y)
{}

void rtl92e_writel(struct net_device *dev, int x, u32 y)
{}

void rtl92e_writew(struct net_device *dev, int x, u16 y)
{}

/****************************************************************************
 *  -----------------------------GENERAL FUNCTION-------------------------
 ****************************************************************************/
bool rtl92e_set_rf_state(struct net_device *dev,
			 enum rt_rf_power_state state_to_set,
			 RT_RF_CHANGE_SOURCE change_source)
{}

static short _rtl92e_check_nic_enough_desc(struct net_device *dev, int prio)
{}

static void _rtl92e_tx_timeout(struct net_device *dev, unsigned int txqueue)
{}

static void _rtl92e_update_cap(struct net_device *dev, u16 cap)
{}

static const struct rtllib_qos_parameters def_qos_parameters =;

static void _rtl92e_update_beacon(void *data)
{}

static void _rtl92e_qos_activate(void *data)
{}

static int _rtl92e_qos_handle_probe_response(struct r8192_priv *priv,
					     int active_network,
					     struct rtllib_network *network)
{}

static int _rtl92e_handle_beacon(struct net_device *dev,
				 struct rtllib_beacon *beacon,
				 struct rtllib_network *network)
{}

static int _rtl92e_qos_assoc_resp(struct r8192_priv *priv,
				  struct rtllib_network *network)
{}

static int _rtl92e_handle_assoc_response(struct net_device *dev,
				 struct rtllib_assoc_response_frame *resp,
				 struct rtllib_network *network)
{}

void rtl92e_config_rate(struct net_device *dev, u16 *rate_config)
{}

static void _rtl92e_refresh_support_rate(struct r8192_priv *priv)
{}

void rtl92e_set_wireless_mode(struct net_device *dev, u8 wireless_mode)
{}

static int _rtl92e_sta_up(struct net_device *dev)
{}

static int _rtl92e_sta_down(struct net_device *dev, bool shutdownrf)
{}

static void _rtl92e_init_priv_handler(struct net_device *dev)
{}

static void _rtl92e_init_priv_variable(struct net_device *dev)
{}

static void _rtl92e_init_priv_lock(struct r8192_priv *priv)
{}

static void _rtl92e_init_priv_task(struct net_device *dev)
{}

static short _rtl92e_get_channel_map(struct net_device *dev)
{}

static short _rtl92e_init(struct net_device *dev)
{}

/***************************************************************************
 * -------------------------------WATCHDOG STUFF---------------------------
 **************************************************************************/
static short _rtl92e_is_tx_queue_empty(struct net_device *dev)
{}

static enum reset_type _rtl92e_tx_check_stuck(struct net_device *dev)
{}

static enum reset_type _rtl92e_rx_check_stuck(struct net_device *dev)
{}

static void _rtl92e_if_check_reset(struct net_device *dev)
{}

static void _rtl92e_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum,
				    u32 *TotalRxDataNum)
{}

static void _rtl92e_watchdog_wq_cb(void *data)
{}

static void _rtl92e_watchdog_timer_cb(struct timer_list *t)
{}

/****************************************************************************
 * ---------------------------- NIC TX/RX STUFF---------------------------
 ****************************************************************************/
void rtl92e_rx_enable(struct net_device *dev)
{}

void rtl92e_tx_enable(struct net_device *dev)
{}

static void _rtl92e_free_rx_ring(struct net_device *dev)
{}

static void _rtl92e_free_tx_ring(struct net_device *dev, unsigned int prio)
{}

static void _rtl92e_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
				   int rate)
{}

static int _rtl92e_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
{}

static void _rtl92e_tx_isr(struct net_device *dev, int prio)
{}

static void _rtl92e_tx_cmd(struct net_device *dev, struct sk_buff *skb)
{}

static short _rtl92e_tx(struct net_device *dev, struct sk_buff *skb)
{}

static short _rtl92e_alloc_rx_ring(struct net_device *dev)
{}

static int _rtl92e_alloc_tx_ring(struct net_device *dev, unsigned int prio,
				 unsigned int entries)
{}

static short _rtl92e_pci_initdescring(struct net_device *dev)
{}

void rtl92e_reset_desc_ring(struct net_device *dev)
{}

long rtl92e_translate_to_dbm(struct r8192_priv *priv, u8 signal_strength_index)
{}

void rtl92e_update_rx_statistics(struct r8192_priv *priv,
				 struct rtllib_rx_stats *pprevious_stats)
{}

u8 rtl92e_rx_db_to_percent(s8 antpower)
{}	/* QueryRxPwrPercentage */

u8 rtl92e_evm_db_to_percent(s8 value)
{}

void rtl92e_copy_mpdu_stats(struct rtllib_rx_stats *psrc_stats,
			    struct rtllib_rx_stats *ptarget_stats)
{}

static void _rtl92e_rx_normal(struct net_device *dev)
{}

static void _rtl92e_tx_resume(struct net_device *dev)
{}

static void _rtl92e_irq_tx_tasklet(struct tasklet_struct *t)
{}

static void _rtl92e_irq_rx_tasklet(struct tasklet_struct *t)
{}

/****************************************************************************
 * ---------------------------- NIC START/CLOSE STUFF---------------------------
 ****************************************************************************/
static void _rtl92e_cancel_deferred_work(struct r8192_priv *priv)
{}

static int _rtl92e_up(struct net_device *dev)
{}

static int _rtl92e_open(struct net_device *dev)
{}

static int _rtl92e_try_up(struct net_device *dev)
{}

static int _rtl92e_close(struct net_device *dev)
{}

static int _rtl92e_down(struct net_device *dev, bool shutdownrf)
{}

void rtl92e_commit(struct net_device *dev)
{}

static void _rtl92e_restart(void *data)
{}

static void _rtl92e_set_multicast(struct net_device *dev)
{}

static int _rtl92e_set_mac_adr(struct net_device *dev, void *mac)
{}

static irqreturn_t _rtl92e_irq(int irq, void *netdev)
{}

/****************************************************************************
 * ---------------------------- PCI_STUFF---------------------------
 ****************************************************************************/
static const struct net_device_ops rtl8192_netdev_ops =;

static int _rtl92e_pci_probe(struct pci_dev *pdev,
			     const struct pci_device_id *id)
{}

static void _rtl92e_pci_disconnect(struct pci_dev *pdev)
{}

bool rtl92e_enable_nic(struct net_device *dev)
{}

module_pci_driver();

void rtl92e_check_rfctrl_gpio_timer(struct timer_list *t)
{}

/***************************************************************************
 * ------------------- module init / exit stubs ----------------
 ***************************************************************************/
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_VERSION();
MODULE_LICENSE();
MODULE_FIRMWARE();
MODULE_FIRMWARE();
MODULE_FIRMWARE();

module_param(ifname, charp, 0644);
module_param(hwwep, int, 0644);

MODULE_PARM_DESC();
MODULE_PARM_DESC();