Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
rtl_core.c File Reference
#include <linux/uaccess.h>
#include <linux/pci.h>
#include <linux/vmalloc.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"

Go to the source code of this file.

Functions

 MODULE_DEVICE_TABLE (pci, rtl8192_pci_id_tbl)
 
void write_nic_io_byte (struct net_device *dev, int x, u8 y)
 
void write_nic_io_word (struct net_device *dev, int x, u16 y)
 
void write_nic_io_dword (struct net_device *dev, int x, u32 y)
 
u8 read_nic_io_byte (struct net_device *dev, int x)
 
u16 read_nic_io_word (struct net_device *dev, int x)
 
u32 read_nic_io_dword (struct net_device *dev, int x)
 
u8 read_nic_byte (struct net_device *dev, int x)
 
u32 read_nic_dword (struct net_device *dev, int x)
 
u16 read_nic_word (struct net_device *dev, int x)
 
void write_nic_byte (struct net_device *dev, int x, u8 y)
 
void write_nic_dword (struct net_device *dev, int x, u32 y)
 
void write_nic_word (struct net_device *dev, int x, u16 y)
 
bool MgntActSet_RF_State (struct net_device *dev, enum rt_rf_power_state StateToSet, RT_RF_CHANGE_SOURCE ChangeSource, bool ProtectOrNot)
 
void rtl8192_tx_timeout (struct net_device *dev)
 
void rtl8192_irq_enable (struct net_device *dev)
 
void rtl8192_irq_disable (struct net_device *dev)
 
void rtl8192_set_chan (struct net_device *dev, short ch)
 
void rtl8192_update_cap (struct net_device *dev, u16 cap)
 
void rtl8192_config_rate (struct net_device *dev, u16 *rate_config)
 
void rtl8192_SetWirelessMode (struct net_device *dev, u8 wireless_mode)
 
short rtl8192_is_tx_queue_empty (struct net_device *dev)
 
void rtl819x_watchdog_wqcallback (void *data)
 
void watch_dog_timer_callback (unsigned long data)
 
void rtl8192_rx_enable (struct net_device *dev)
 
void rtl8192_tx_enable (struct net_device *dev)
 
void rtl8192_data_hard_stop (struct net_device *dev)
 
void rtl8192_data_hard_resume (struct net_device *dev)
 
void rtl8192_hard_data_xmit (struct sk_buff *skb, struct net_device *dev, int rate)
 
int rtl8192_hard_start_xmit (struct sk_buff *skb, struct net_device *dev)
 
void rtl8192_tx_cmd (struct net_device *dev, struct sk_buff *skb)
 
short rtl8192_tx (struct net_device *dev, struct sk_buff *skb)
 
short rtl8192_pci_initdescring (struct net_device *dev)
 
void rtl8192_pci_resetdescring (struct net_device *dev)
 
void rtl819x_UpdateRxPktTimeStamp (struct net_device *dev, struct rtllib_rx_stats *stats)
 
long rtl819x_translate_todbm (struct r8192_priv *priv, u8 signal_strength_index)
 
void rtl819x_update_rxsignalstatistics8190pci (struct r8192_priv *priv, struct rtllib_rx_stats *pprevious_stats)
 
void rtl819x_process_cck_rxpathsel (struct r8192_priv *priv, struct rtllib_rx_stats *pprevious_stats)
 
u8 rtl819x_query_rxpwrpercentage (char antpower)
 
u8 rtl819x_evm_dbtopercentage (char value)
 
void rtl8192_record_rxdesc_forlateruse (struct rtllib_rx_stats *psrc_stats, struct rtllib_rx_stats *ptarget_stats)
 
void rtl8192_irq_tx_tasklet (struct r8192_priv *priv)
 
void rtl8192_irq_rx_tasklet (struct r8192_priv *priv)
 
void rtl8192_cancel_deferred_work (struct r8192_priv *priv)
 
int _rtl8192_up (struct net_device *dev, bool is_silent_reset)
 
int rtl8192_up (struct net_device *dev)
 
int rtl8192_down (struct net_device *dev, bool shutdownrf)
 
void rtl8192_commit (struct net_device *dev)
 
void rtl8192_restart (void *data)
 
irqreturn_type rtl8192_interrupt (int irq, void *netdev, struct pt_regs *regs)
 
bool NicIFEnableNIC (struct net_device *dev)
 
bool NicIFDisableNIC (struct net_device *dev)
 
void check_rfctrl_gpio_timer (unsigned long data)
 
 module_init (rtl8192_pci_module_init)
 
 module_exit (rtl8192_pci_module_exit)
 
 MODULE_DESCRIPTION ("Linux driver for Realtek RTL819x WiFi cards")
 
 MODULE_AUTHOR (DRV_COPYRIGHT" "DRV_AUTHOR)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE (RTL8192E_BOOT_IMG_FW)
 
 MODULE_FIRMWARE (RTL8192E_MAIN_IMG_FW)
 
 MODULE_FIRMWARE (RTL8192E_DATA_IMG_FW)
 
 module_param (ifname, charp, S_IRUGO|S_IWUSR)
 
 module_param (hwwep, int, S_IRUGO|S_IWUSR)
 
 module_param (channels, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (ifname," Net interface name, wlan%d=default")
 
 MODULE_PARM_DESC (hwwep," Try to use hardware WEP support(default use hw. set 0 to use software security)")
 
 MODULE_PARM_DESC (channels," Channel bitmask for specific locales. NYI")
 

Variables

int hwwep = 1
 
int WDCAPARA_ADD [] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO}
 

Function Documentation

int _rtl8192_up ( struct net_device dev,
bool  is_silent_reset 
)

Definition at line 2464 of file rtl_core.c.

void check_rfctrl_gpio_timer ( unsigned long  data)

Definition at line 3105 of file rtl_core.c.

bool MgntActSet_RF_State ( struct net_device dev,
enum rt_rf_power_state  StateToSet,
RT_RF_CHANGE_SOURCE  ChangeSource,
bool  ProtectOrNot 
)

Definition at line 315 of file rtl_core.c.

MODULE_AUTHOR ( DRV_COPYRIGHT" "  DRV_AUTHOR)
MODULE_DESCRIPTION ( "Linux driver for Realtek RTL819x WiFi cards )
MODULE_DEVICE_TABLE ( pci  ,
rtl8192_pci_id_tbl   
)
module_exit ( rtl8192_pci_module_exit  )
MODULE_FIRMWARE ( RTL8192E_BOOT_IMG_FW  )
MODULE_FIRMWARE ( RTL8192E_MAIN_IMG_FW  )
MODULE_FIRMWARE ( RTL8192E_DATA_IMG_FW  )
module_init ( rtl8192_pci_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( ifname  ,
charp  ,
S_IRUGO S_IWUSR 
)
module_param ( hwwep  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( channels  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( ifname  ,
" Net interface  name 
)
MODULE_PARM_DESC ( hwwep  ,
" Try to use hardware WEP support(default use hw. set 0 to use software security)"   
)
MODULE_PARM_DESC ( channels  ,
" Channel bitmask for specific locales. NYI"   
)
MODULE_VERSION ( DRV_VERSION  )
bool NicIFDisableNIC ( struct net_device dev)

Definition at line 3064 of file rtl_core.c.

bool NicIFEnableNIC ( struct net_device dev)

Definition at line 3032 of file rtl_core.c.

u8 read_nic_byte ( struct net_device dev,
int  x 
)

Definition at line 276 of file rtl_core.c.

u32 read_nic_dword ( struct net_device dev,
int  x 
)

Definition at line 281 of file rtl_core.c.

u8 read_nic_io_byte ( struct net_device dev,
int  x 
)

Definition at line 199 of file rtl_core.c.

u32 read_nic_io_dword ( struct net_device dev,
int  x 
)

Definition at line 250 of file rtl_core.c.

u16 read_nic_io_word ( struct net_device dev,
int  x 
)

Definition at line 224 of file rtl_core.c.

u16 read_nic_word ( struct net_device dev,
int  x 
)

Definition at line 286 of file rtl_core.c.

void rtl8192_cancel_deferred_work ( struct r8192_priv priv)

Definition at line 2455 of file rtl_core.c.

void rtl8192_commit ( struct net_device dev)

Definition at line 2523 of file rtl_core.c.

void rtl8192_config_rate ( struct net_device dev,
u16 rate_config 
)

Definition at line 763 of file rtl_core.c.

void rtl8192_data_hard_resume ( struct net_device dev)

Definition at line 1865 of file rtl_core.c.

void rtl8192_data_hard_stop ( struct net_device dev)

Definition at line 1860 of file rtl_core.c.

int rtl8192_down ( struct net_device dev,
bool  shutdownrf 
)

Definition at line 2515 of file rtl_core.c.

void rtl8192_hard_data_xmit ( struct sk_buff skb,
struct net_device dev,
int  rate 
)

Definition at line 1869 of file rtl_core.c.

int rtl8192_hard_start_xmit ( struct sk_buff skb,
struct net_device dev 
)

Definition at line 1904 of file rtl_core.c.

irqreturn_type rtl8192_interrupt ( int  irq,
void netdev,
struct pt_regs regs 
)

Definition at line 2700 of file rtl_core.c.

void rtl8192_irq_disable ( struct net_device dev)

Definition at line 495 of file rtl_core.c.

void rtl8192_irq_enable ( struct net_device dev)

Definition at line 487 of file rtl_core.c.

void rtl8192_irq_rx_tasklet ( struct r8192_priv priv)

Definition at line 2441 of file rtl_core.c.

void rtl8192_irq_tx_tasklet ( struct r8192_priv priv)

Definition at line 2436 of file rtl_core.c.

short rtl8192_is_tx_queue_empty ( struct net_device dev)

Definition at line 1348 of file rtl_core.c.

short rtl8192_pci_initdescring ( struct net_device dev)

Definition at line 2151 of file rtl_core.c.

void rtl8192_pci_resetdescring ( struct net_device dev)

Definition at line 2177 of file rtl_core.c.

void rtl8192_record_rxdesc_forlateruse ( struct rtllib_rx_stats psrc_stats,
struct rtllib_rx_stats ptarget_stats 
)

Definition at line 2299 of file rtl_core.c.

void rtl8192_restart ( void data)

Definition at line 2535 of file rtl_core.c.

void rtl8192_rx_enable ( struct net_device dev)

Definition at line 1797 of file rtl_core.c.

void rtl8192_set_chan ( struct net_device dev,
short  ch 
)

Definition at line 504 of file rtl_core.c.

void rtl8192_SetWirelessMode ( struct net_device dev,
u8  wireless_mode 
)

Definition at line 893 of file rtl_core.c.

short rtl8192_tx ( struct net_device dev,
struct sk_buff skb 
)

Definition at line 1994 of file rtl_core.c.

void rtl8192_tx_cmd ( struct net_device dev,
struct sk_buff skb 
)

Definition at line 1969 of file rtl_core.c.

void rtl8192_tx_enable ( struct net_device dev)

Definition at line 1803 of file rtl_core.c.

void rtl8192_tx_timeout ( struct net_device dev)

Definition at line 479 of file rtl_core.c.

int rtl8192_up ( struct net_device dev)

Definition at line 2485 of file rtl_core.c.

void rtl8192_update_cap ( struct net_device dev,
u16  cap 
)

Definition at line 518 of file rtl_core.c.

u8 rtl819x_evm_dbtopercentage ( char  value)

Definition at line 2279 of file rtl_core.c.

void rtl819x_process_cck_rxpathsel ( struct r8192_priv priv,
struct rtllib_rx_stats pprevious_stats 
)

Definition at line 2261 of file rtl_core.c.

u8 rtl819x_query_rxpwrpercentage ( char  antpower)

Definition at line 2267 of file rtl_core.c.

long rtl819x_translate_todbm ( struct r8192_priv priv,
u8  signal_strength_index 
)

Definition at line 2227 of file rtl_core.c.

void rtl819x_update_rxsignalstatistics8190pci ( struct r8192_priv priv,
struct rtllib_rx_stats pprevious_stats 
)

Definition at line 2239 of file rtl_core.c.

void rtl819x_UpdateRxPktTimeStamp ( struct net_device dev,
struct rtllib_rx_stats stats 
)

Definition at line 2216 of file rtl_core.c.

void rtl819x_watchdog_wqcallback ( void data)

Definition at line 1633 of file rtl_core.c.

void watch_dog_timer_callback ( unsigned long  data)

Definition at line 1786 of file rtl_core.c.

void write_nic_byte ( struct net_device dev,
int  x,
u8  y 
)

Definition at line 291 of file rtl_core.c.

void write_nic_dword ( struct net_device dev,
int  x,
u32  y 
)

Definition at line 298 of file rtl_core.c.

void write_nic_io_byte ( struct net_device dev,
int  x,
u8  y 
)

Definition at line 131 of file rtl_core.c.

void write_nic_io_dword ( struct net_device dev,
int  x,
u32  y 
)

Definition at line 177 of file rtl_core.c.

void write_nic_io_word ( struct net_device dev,
int  x,
u16  y 
)

Definition at line 154 of file rtl_core.c.

void write_nic_word ( struct net_device dev,
int  x,
u16  y 
)

Definition at line 305 of file rtl_core.c.

Variable Documentation

int hwwep = 1

Definition at line 58 of file rtl_core.c.

Definition at line 589 of file rtl_core.c.