Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
rtl_core.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/rtnetlink.h>
#include <linux/wireless.h>
#include <linux/timer.h>
#include <linux/proc_fs.h>
#include <linux/if_arp.h>
#include <linux/random.h>
#include <linux/io.h>
#include "../rtllib.h"
#include "../dot11d.h"
#include "r8192E_firmware.h"
#include "r8192E_hw.h"
#include "r8190P_def.h"
#include "r8192E_dev.h"
#include "rtl_eeprom.h"
#include "rtl_ps.h"
#include "rtl_pci.h"
#include "rtl_cam.h"

Go to the source code of this file.

Data Structures

struct  buffer
 
struct  rtl_reg_debug
 
struct  rt_tx_rahis
 
struct  rt_smooth_data_4rf
 
struct  rt_stats
 
struct  channel_access_setting
 
struct  txbbgain_struct
 
struct  ccktxbbgain
 
struct  init_gain
 
struct  tx_ring
 
struct  rtl8192_tx_ring
 
struct  rtl819x_ops
 
struct  r8192_priv
 

Macros

#define DRV_NAME   "rtl819xE"
 
#define DRV_COPYRIGHT   "Copyright(c) 2008 - 2010 Realsil Semiconductor Corporation"
 
#define DRV_AUTHOR   "<[email protected]>"
 
#define DRV_VERSION   "0014.0401.2010"
 
#define IS_HARDWARE_TYPE_819xP(_priv)
 
#define IS_HARDWARE_TYPE_8192SE(_priv)   (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192SE)
 
#define IS_HARDWARE_TYPE_8192CE(_priv)   (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192CE)
 
#define IS_HARDWARE_TYPE_8192CU(_priv)   (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192CU)
 
#define IS_HARDWARE_TYPE_8192DE(_priv)   (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192DE)
 
#define IS_HARDWARE_TYPE_8192DU(_priv)   (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192DU)
 
#define RTL_PCI_DEVICE(vend, dev, cfg)
 
#define irqreturn_type   irqreturn_t
 
#define rtl8192_interrupt(x, y, z)   rtl8192_interrupt_rsl(x, y)
 
#define RTL_MAX_SCAN_SIZE   128
 
#define RTL_RATE_MAX   30
 
#define TOTAL_CAM_ENTRY   32
 
#define CAM_CONTENT_COUNT   8
 
#define BIT(_i)   (1<<(_i))
 
#define IS_NIC_DOWN(priv)   (!(priv)->up)
 
#define IS_ADAPTER_SENDS_BEACON(dev)   0
 
#define IS_UNDER_11N_AES_MODE(_rtllib)
 
#define HAL_MEMORY_MAPPED_IO_RANGE_8190PCI   0x1000
 
#define HAL_HW_PCI_REVISION_ID_8190PCI   0x00
 
#define HAL_MEMORY_MAPPED_IO_RANGE_8192PCIE   0x4000
 
#define HAL_HW_PCI_REVISION_ID_8192PCIE   0x01
 
#define HAL_MEMORY_MAPPED_IO_RANGE_8192SE   0x4000
 
#define HAL_HW_PCI_REVISION_ID_8192SE   0x10
 
#define HAL_HW_PCI_REVISION_ID_8192CE   0x1
 
#define HAL_MEMORY_MAPPED_IO_RANGE_8192CE   0x4000
 
#define HAL_HW_PCI_REVISION_ID_8192DE   0x0
 
#define HAL_MEMORY_MAPPED_IO_RANGE_8192DE   0x4000
 
#define HAL_HW_PCI_8180_DEVICE_ID   0x8180
 
#define HAL_HW_PCI_8185_DEVICE_ID   0x8185
 
#define HAL_HW_PCI_8188_DEVICE_ID   0x8188
 
#define HAL_HW_PCI_8198_DEVICE_ID   0x8198
 
#define HAL_HW_PCI_8190_DEVICE_ID   0x8190
 
#define HAL_HW_PCI_8192_DEVICE_ID   0x8192
 
#define HAL_HW_PCI_8192SE_DEVICE_ID   0x8192
 
#define HAL_HW_PCI_8174_DEVICE_ID   0x8174
 
#define HAL_HW_PCI_8173_DEVICE_ID   0x8173
 
#define HAL_HW_PCI_8172_DEVICE_ID   0x8172
 
#define HAL_HW_PCI_8171_DEVICE_ID   0x8171
 
#define HAL_HW_PCI_0045_DEVICE_ID   0x0045
 
#define HAL_HW_PCI_0046_DEVICE_ID   0x0046
 
#define HAL_HW_PCI_0044_DEVICE_ID   0x0044
 
#define HAL_HW_PCI_0047_DEVICE_ID   0x0047
 
#define HAL_HW_PCI_700F_DEVICE_ID   0x700F
 
#define HAL_HW_PCI_701F_DEVICE_ID   0x701F
 
#define HAL_HW_PCI_DLINK_DEVICE_ID   0x3304
 
#define HAL_HW_PCI_8192CET_DEVICE_ID   0x8191
 
#define HAL_HW_PCI_8192CE_DEVICE_ID   0x8178
 
#define HAL_HW_PCI_8191CE_DEVICE_ID   0x8177
 
#define HAL_HW_PCI_8188CE_DEVICE_ID   0x8176
 
#define HAL_HW_PCI_8192CU_DEVICE_ID   0x8191
 
#define HAL_HW_PCI_8192DE_DEVICE_ID   0x092D
 
#define HAL_HW_PCI_8192DU_DEVICE_ID   0x092D
 
#define RTL819X_DEFAULT_RF_TYPE   RF_1T2R
 
#define RTLLIB_WATCH_DOG_TIME   2000
 
#define MAX_DEV_ADDR_SIZE   8 /*support till 64 bit bus width OS*/
 
#define MAX_FIRMWARE_INFORMATION_SIZE   32
 
#define MAX_802_11_HEADER_LENGTH   (40 + MAX_FIRMWARE_INFORMATION_SIZE)
 
#define ENCRYPTION_MAX_OVERHEAD   128
 
#define MAX_FRAGMENT_COUNT   8
 
#define MAX_TRANSMIT_BUFFER_SIZE
 
#define scrclng   4
 
#define DEFAULT_FRAG_THRESHOLD   2342U
 
#define MIN_FRAG_THRESHOLD   256U
 
#define DEFAULT_BEACONINTERVAL   0x64U
 
#define DEFAULT_SSID   ""
 
#define DEFAULT_RETRY_RTS   7
 
#define DEFAULT_RETRY_DATA   7
 
#define PRISM_HDR_SIZE   64
 
#define PHY_RSSI_SLID_WIN_MAX   100
 
#define RTL_IOCTL_WPA_SUPPLICANT   (SIOCIWFIRSTPRIV + 30)
 
#define TxBBGainTableLength   37
 
#define CCKTxBBGainTableLength   23
 
#define CHANNEL_PLAN_LEN   10
 
#define sCrcLng   4
 
#define NIC_SEND_HANG_THRESHOLD_NORMAL   4
 
#define NIC_SEND_HANG_THRESHOLD_POWERSAVE   8
 
#define MAX_TX_QUEUE   9
 
#define MAX_RX_QUEUE   1
 
#define MAX_RX_COUNT   64
 
#define MAX_TX_QUEUE_COUNT   9
 

Enumerations

enum  RTL819x_PHY_PARAM {
  RTL819X_PHY_MACPHY_REG = 0, RTL819X_PHY_MACPHY_REG_PG = 1, RTL8188C_PHY_MACREG = 2, RTL8192C_PHY_MACREG = 3,
  RTL819X_PHY_REG = 4, RTL819X_PHY_REG_1T2R = 5, RTL819X_PHY_REG_to1T1R = 6, RTL819X_PHY_REG_to1T2R = 7,
  RTL819X_PHY_REG_to2T2R = 8, RTL819X_PHY_REG_PG = 9, RTL819X_AGC_TAB = 10, RTL819X_PHY_RADIO_A = 11,
  RTL819X_PHY_RADIO_A_1T = 12, RTL819X_PHY_RADIO_A_2T = 13, RTL819X_PHY_RADIO_B = 14, RTL819X_PHY_RADIO_B_GM = 15,
  RTL819X_PHY_RADIO_C = 16, RTL819X_PHY_RADIO_D = 17, RTL819X_EEPROM_MAP = 18, RTL819X_EFUSE_MAP = 19
}
 
enum  nic_t {
  NIC_8185 = 1, NIC_8185B, NIC_UNKNOWN = 0, NIC_8192E = 1,
  NIC_8190P = 2, NIC_8192SE = 4, NIC_8192CE = 5, NIC_8192CU = 6,
  NIC_8192DE = 7, NIC_8192DU = 8, NIC_8192U = 1, NIC_8190P = 2,
  NIC_8192E = 3
}
 
enum  rt_eeprom_type {
  EEPROM_93C46, EEPROM_93C56, EEPROM_BOOT_EFUSE, EEPROM_93C46,
  EEPROM_93C56, EEPROM_BOOT_EFUSE
}
 
enum  dcmg_txcmd_op {
  TXCMD_TXRA_HISTORY_CTRL = 0xFF900000, TXCMD_RESET_TX_PKT_BUFF = 0xFF900001, TXCMD_RESET_RX_PKT_BUFF = 0xFF900002, TXCMD_SET_TX_DURATION = 0xFF900003,
  TXCMD_SET_RX_RSSI = 0xFF900004, TXCMD_SET_TX_PWR_TRACKING = 0xFF900005, TXCMD_XXXX_CTRL
}
 
enum  rt_rf_type_819xu {
  RF_TYPE_MIN = 0, RF_8225, RF_8256, RF_8258,
  RF_6052 = 4, RF_PSEUDO_11N = 5
}
 
enum  rf_step { RF_STEP_INIT = 0, RF_STEP_NORMAL, RF_STEP_MAX }
 
enum  rt_status { RT_STATUS_SUCCESS, RT_STATUS_FAILURE, RT_STATUS_PENDING, RT_STATUS_RESOURCE }
 
enum  rt_customer_id {
  RT_CID_DEFAULT = 0, RT_CID_8187_ALPHA0 = 1, RT_CID_8187_SERCOMM_PS = 2, RT_CID_8187_HW_LED = 3,
  RT_CID_8187_NETGEAR = 4, RT_CID_WHQL = 5, RT_CID_819x_CAMEO = 6, RT_CID_819x_RUNTOP = 7,
  RT_CID_819x_Senao = 8, RT_CID_TOSHIBA = 9, RT_CID_819x_Netcore = 10, RT_CID_Nettronix = 11,
  RT_CID_DLINK = 12, RT_CID_PRONET = 13, RT_CID_COREGA = 14, RT_CID_819x_ALPHA = 15,
  RT_CID_819x_Sitecom = 16, RT_CID_CCX = 17, RT_CID_819x_Lenovo = 18, RT_CID_819x_QMI = 19,
  RT_CID_819x_Edimax_Belkin = 20, RT_CID_819x_Sercomm_Belkin = 21, RT_CID_819x_CAMEO1 = 22, RT_CID_819x_MSI = 23,
  RT_CID_819x_Acer = 24, RT_CID_819x_HP = 27, RT_CID_819x_CLEVO = 28, RT_CID_819x_Arcadyan_Belkin = 29,
  RT_CID_819x_SAMSUNG = 30, RT_CID_819x_WNC_COREGA = 31
}
 
enum  reset_type {
  RESET_TYPE_INVISIBLE = 0, RESET_TYPE_ALL = 1, RESET_TYPE_WORLD = 2, RESET_TYPE_DISABLE = 3,
  RESET_TYPE_MAX_METHOD, RESET_TYPE_TX_WATCHDOG, RESET_TYPE_INT_ERROR, RESET_TYPE_RX_RECOVERY,
  RESET_TYPE_RX_DESC_FETCH, RESET_TYPE_TX_DESC_FETCH, RESET_TYPE_TX_SKIP, RESET_TYPE_MC_FAILURE,
  RESET_TYPE_MAX, FORCE_BIG_HAMMER, SOFT_RESET, RESET_TYPE_NORESET = 0x00,
  RESET_TYPE_NORMAL = 0x01, RESET_TYPE_SILENT = 0x02
}
 
enum  ic_inferiority_8192s { IC_INFERIORITY_A = 0, IC_INFERIORITY_B = 1 }
 
enum  pci_bridge_vendor {
  PCI_BRIDGE_VENDOR_INTEL = 0x0, PCI_BRIDGE_VENDOR_ATI, PCI_BRIDGE_VENDOR_AMD, PCI_BRIDGE_VENDOR_SIS,
  PCI_BRIDGE_VENDOR_UNKNOWN, PCI_BRIDGE_VENDOR_MAX, PCI_BRIDGE_VENDOR_INTEL = 0x0, PCI_BRIDGE_VENDOR_ATI,
  PCI_BRIDGE_VENDOR_AMD, PCI_BRIDGE_VENDOR_SIS, PCI_BRIDGE_VENDOR_UNKNOWN, PCI_BRIDGE_VENDOR_MAX
}
 
enum  two_port_status {
  TWO_PORT_STATUS__DEFAULT_ONLY, TWO_PORT_STATUS__EXTENSION_ONLY, TWO_PORT_STATUS__EXTENSION_FOLLOW_DEFAULT, TWO_PORT_STATUS__DEFAULT_G_EXTENSION_N20,
  TWO_PORT_STATUS__ADHOC, TWO_PORT_STATUS__WITHOUT_ANY_ASSOCIATE
}
 

Functions

void rtl8192_tx_cmd (struct net_device *dev, struct sk_buff *skb)
 
short rtl8192_tx (struct net_device *dev, struct sk_buff *skb)
 
u8 read_nic_io_byte (struct net_device *dev, int x)
 
u32 read_nic_io_dword (struct net_device *dev, int x)
 
u16 read_nic_io_word (struct net_device *dev, int x)
 
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_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_word (struct net_device *dev, int x, u16 y)
 
void write_nic_dword (struct net_device *dev, int x, u32 y)
 
void force_pci_posting (struct net_device *dev)
 
void rtl8192_rx_enable (struct net_device *)
 
void rtl8192_tx_enable (struct net_device *)
 
int rtl8192_hard_start_xmit (struct sk_buff *skb, struct net_device *dev)
 
void rtl8192_hard_data_xmit (struct sk_buff *skb, struct net_device *dev, int rate)
 
void rtl8192_data_hard_stop (struct net_device *dev)
 
void rtl8192_data_hard_resume (struct net_device *dev)
 
void rtl8192_restart (void *data)
 
void rtl819x_watchdog_wqcallback (void *data)
 
void rtl8192_hw_sleep_wq (void *data)
 
void watch_dog_timer_callback (unsigned long data)
 
void rtl8192_irq_rx_tasklet (struct r8192_priv *priv)
 
void rtl8192_irq_tx_tasklet (struct r8192_priv *priv)
 
int rtl8192_down (struct net_device *dev, bool shutdownrf)
 
int rtl8192_up (struct net_device *dev)
 
void rtl8192_commit (struct net_device *dev)
 
void rtl8192_set_chan (struct net_device *dev, short ch)
 
void check_rfctrl_gpio_timer (unsigned long data)
 
void rtl8192_hw_wakeup_wq (void *data)
 
irqreturn_type rtl8192_interrupt (int irq, void *netdev, struct pt_regs *regs)
 
short rtl8192_pci_initdescring (struct net_device *dev)
 
void rtl8192_cancel_deferred_work (struct r8192_priv *priv)
 
int _rtl8192_up (struct net_device *dev, bool is_silent_reset)
 
short rtl8192_is_tx_queue_empty (struct net_device *dev)
 
void rtl8192_irq_disable (struct net_device *dev)
 
void rtl8192_tx_timeout (struct net_device *dev)
 
void rtl8192_pci_resetdescring (struct net_device *dev)
 
void rtl8192_SetWirelessMode (struct net_device *dev, u8 wireless_mode)
 
void rtl8192_irq_enable (struct net_device *dev)
 
void rtl8192_config_rate (struct net_device *dev, u16 *rate_config)
 
void rtl8192_update_cap (struct net_device *dev, u16 cap)
 
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)
 
u8 rtl819x_evm_dbtopercentage (char value)
 
void rtl819x_process_cck_rxpathsel (struct r8192_priv *priv, struct rtllib_rx_stats *pprevious_stats)
 
u8 rtl819x_query_rxpwrpercentage (char antpower)
 
void rtl8192_record_rxdesc_forlateruse (struct rtllib_rx_stats *psrc_stats, struct rtllib_rx_stats *ptarget_stats)
 
bool NicIFEnableNIC (struct net_device *dev)
 
bool NicIFDisableNIC (struct net_device *dev)
 
bool MgntActSet_RF_State (struct net_device *dev, enum rt_rf_power_state StateToSet, RT_RF_CHANGE_SOURCE ChangeSource, bool ProtectOrNot)
 
void ActUpdateChannelAccessSetting (struct net_device *dev, enum wireless_mode WirelessMode, struct channel_access_setting *ChnlAccessSetting)
 
void rtl8192_proc_init_one (struct net_device *dev)
 
void rtl8192_proc_remove_one (struct net_device *dev)
 
void rtl8192_proc_module_init (void)
 
void rtl8192_proc_module_remove (void)
 

Variables

struct tx_ring __packed
 
struct ethtool_ops rtl819x_ethtool_ops
 

Macro Definition Documentation

#define BIT (   _i)    (1<<(_i))

Definition at line 103 of file rtl_core.h.

#define CAM_CONTENT_COUNT   8

Definition at line 100 of file rtl_core.h.

#define CCKTxBBGainTableLength   23

Definition at line 180 of file rtl_core.h.

#define CHANNEL_PLAN_LEN   10

Definition at line 182 of file rtl_core.h.

#define DEFAULT_BEACONINTERVAL   0x64U

Definition at line 168 of file rtl_core.h.

#define DEFAULT_FRAG_THRESHOLD   2342U

Definition at line 166 of file rtl_core.h.

#define DEFAULT_RETRY_DATA   7

Definition at line 172 of file rtl_core.h.

#define DEFAULT_RETRY_RTS   7

Definition at line 171 of file rtl_core.h.

#define DEFAULT_SSID   ""

Definition at line 170 of file rtl_core.h.

#define DRV_AUTHOR   "<[email protected]>"

Definition at line 69 of file rtl_core.h.

#define DRV_COPYRIGHT   "Copyright(c) 2008 - 2010 Realsil Semiconductor Corporation"

Definition at line 67 of file rtl_core.h.

#define DRV_NAME   "rtl819xE"

Definition at line 50 of file rtl_core.h.

#define DRV_VERSION   "0014.0401.2010"

Definition at line 70 of file rtl_core.h.

#define ENCRYPTION_MAX_OVERHEAD   128

Definition at line 158 of file rtl_core.h.

#define HAL_HW_PCI_0044_DEVICE_ID   0x0044

Definition at line 138 of file rtl_core.h.

#define HAL_HW_PCI_0045_DEVICE_ID   0x0045

Definition at line 136 of file rtl_core.h.

#define HAL_HW_PCI_0046_DEVICE_ID   0x0046

Definition at line 137 of file rtl_core.h.

#define HAL_HW_PCI_0047_DEVICE_ID   0x0047

Definition at line 139 of file rtl_core.h.

#define HAL_HW_PCI_700F_DEVICE_ID   0x700F

Definition at line 140 of file rtl_core.h.

#define HAL_HW_PCI_701F_DEVICE_ID   0x701F

Definition at line 141 of file rtl_core.h.

#define HAL_HW_PCI_8171_DEVICE_ID   0x8171

Definition at line 135 of file rtl_core.h.

#define HAL_HW_PCI_8172_DEVICE_ID   0x8172

Definition at line 134 of file rtl_core.h.

#define HAL_HW_PCI_8173_DEVICE_ID   0x8173

Definition at line 133 of file rtl_core.h.

#define HAL_HW_PCI_8174_DEVICE_ID   0x8174

Definition at line 132 of file rtl_core.h.

#define HAL_HW_PCI_8180_DEVICE_ID   0x8180

Definition at line 125 of file rtl_core.h.

#define HAL_HW_PCI_8185_DEVICE_ID   0x8185

Definition at line 126 of file rtl_core.h.

#define HAL_HW_PCI_8188_DEVICE_ID   0x8188

Definition at line 127 of file rtl_core.h.

#define HAL_HW_PCI_8188CE_DEVICE_ID   0x8176

Definition at line 146 of file rtl_core.h.

#define HAL_HW_PCI_8190_DEVICE_ID   0x8190

Definition at line 129 of file rtl_core.h.

#define HAL_HW_PCI_8191CE_DEVICE_ID   0x8177

Definition at line 145 of file rtl_core.h.

#define HAL_HW_PCI_8192_DEVICE_ID   0x8192

Definition at line 130 of file rtl_core.h.

#define HAL_HW_PCI_8192CE_DEVICE_ID   0x8178

Definition at line 144 of file rtl_core.h.

#define HAL_HW_PCI_8192CET_DEVICE_ID   0x8191

Definition at line 143 of file rtl_core.h.

#define HAL_HW_PCI_8192CU_DEVICE_ID   0x8191

Definition at line 147 of file rtl_core.h.

#define HAL_HW_PCI_8192DE_DEVICE_ID   0x092D

Definition at line 148 of file rtl_core.h.

#define HAL_HW_PCI_8192DU_DEVICE_ID   0x092D

Definition at line 149 of file rtl_core.h.

#define HAL_HW_PCI_8192SE_DEVICE_ID   0x8192

Definition at line 131 of file rtl_core.h.

#define HAL_HW_PCI_8198_DEVICE_ID   0x8198

Definition at line 128 of file rtl_core.h.

#define HAL_HW_PCI_DLINK_DEVICE_ID   0x3304

Definition at line 142 of file rtl_core.h.

#define HAL_HW_PCI_REVISION_ID_8190PCI   0x00

Definition at line 115 of file rtl_core.h.

#define HAL_HW_PCI_REVISION_ID_8192CE   0x1

Definition at line 120 of file rtl_core.h.

#define HAL_HW_PCI_REVISION_ID_8192DE   0x0

Definition at line 122 of file rtl_core.h.

#define HAL_HW_PCI_REVISION_ID_8192PCIE   0x01

Definition at line 117 of file rtl_core.h.

#define HAL_HW_PCI_REVISION_ID_8192SE   0x10

Definition at line 119 of file rtl_core.h.

#define HAL_MEMORY_MAPPED_IO_RANGE_8190PCI   0x1000

Definition at line 114 of file rtl_core.h.

#define HAL_MEMORY_MAPPED_IO_RANGE_8192CE   0x4000

Definition at line 121 of file rtl_core.h.

#define HAL_MEMORY_MAPPED_IO_RANGE_8192DE   0x4000

Definition at line 123 of file rtl_core.h.

#define HAL_MEMORY_MAPPED_IO_RANGE_8192PCIE   0x4000

Definition at line 116 of file rtl_core.h.

#define HAL_MEMORY_MAPPED_IO_RANGE_8192SE   0x4000

Definition at line 118 of file rtl_core.h.

#define irqreturn_type   irqreturn_t

Definition at line 91 of file rtl_core.h.

#define IS_ADAPTER_SENDS_BEACON (   dev)    0

Definition at line 108 of file rtl_core.h.

#define IS_HARDWARE_TYPE_8192CE (   _priv)    (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192CE)

Definition at line 77 of file rtl_core.h.

#define IS_HARDWARE_TYPE_8192CU (   _priv)    (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192CU)

Definition at line 79 of file rtl_core.h.

#define IS_HARDWARE_TYPE_8192DE (   _priv)    (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192DE)

Definition at line 81 of file rtl_core.h.

#define IS_HARDWARE_TYPE_8192DU (   _priv)    (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192DU)

Definition at line 83 of file rtl_core.h.

#define IS_HARDWARE_TYPE_8192SE (   _priv)    (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192SE)

Definition at line 75 of file rtl_core.h.

#define IS_HARDWARE_TYPE_819xP (   _priv)
Value:
((((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8190P) || \
(((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192E))

Definition at line 72 of file rtl_core.h.

#define IS_NIC_DOWN (   priv)    (!(priv)->up)

Definition at line 106 of file rtl_core.h.

#define IS_UNDER_11N_AES_MODE (   _rtllib)
Value:
((_rtllib->pHTInfo->bCurrentHTSupport == true) && \
(_rtllib->pairwise_key_type == KEY_TYPE_CCMP))

Definition at line 110 of file rtl_core.h.

#define MAX_802_11_HEADER_LENGTH   (40 + MAX_FIRMWARE_INFORMATION_SIZE)

Definition at line 157 of file rtl_core.h.

#define MAX_DEV_ADDR_SIZE   8 /*support till 64 bit bus width OS*/

Definition at line 155 of file rtl_core.h.

#define MAX_FIRMWARE_INFORMATION_SIZE   32

Definition at line 156 of file rtl_core.h.

#define MAX_FRAGMENT_COUNT   8

Definition at line 159 of file rtl_core.h.

#define MAX_RX_COUNT   64

Definition at line 192 of file rtl_core.h.

#define MAX_RX_QUEUE   1

Definition at line 190 of file rtl_core.h.

#define MAX_TRANSMIT_BUFFER_SIZE
Value:

Definition at line 160 of file rtl_core.h.

#define MAX_TX_QUEUE   9

Definition at line 188 of file rtl_core.h.

#define MAX_TX_QUEUE_COUNT   9

Definition at line 193 of file rtl_core.h.

#define MIN_FRAG_THRESHOLD   256U

Definition at line 167 of file rtl_core.h.

#define NIC_SEND_HANG_THRESHOLD_NORMAL   4

Definition at line 185 of file rtl_core.h.

#define NIC_SEND_HANG_THRESHOLD_POWERSAVE   8

Definition at line 186 of file rtl_core.h.

#define PHY_RSSI_SLID_WIN_MAX   100

Definition at line 175 of file rtl_core.h.

#define PRISM_HDR_SIZE   64

Definition at line 173 of file rtl_core.h.

#define rtl8192_interrupt (   x,
  y,
 
)    rtl8192_interrupt_rsl(x, y)

Definition at line 93 of file rtl_core.h.

#define RTL819X_DEFAULT_RF_TYPE   RF_1T2R

Definition at line 151 of file rtl_core.h.

#define RTL_IOCTL_WPA_SUPPLICANT   (SIOCIWFIRSTPRIV + 30)

Definition at line 177 of file rtl_core.h.

#define RTL_MAX_SCAN_SIZE   128

Definition at line 95 of file rtl_core.h.

#define RTL_PCI_DEVICE (   vend,
  dev,
  cfg 
)
Value:
.vendor = (vend), .device = (dev), \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID , \
.driver_data = (kernel_ulong_t)&(cfg)

Definition at line 86 of file rtl_core.h.

#define RTL_RATE_MAX   30

Definition at line 97 of file rtl_core.h.

#define RTLLIB_WATCH_DOG_TIME   2000

Definition at line 153 of file rtl_core.h.

#define scrclng   4

Definition at line 164 of file rtl_core.h.

#define sCrcLng   4

Definition at line 183 of file rtl_core.h.

#define TOTAL_CAM_ENTRY   32

Definition at line 99 of file rtl_core.h.

#define TxBBGainTableLength   37

Definition at line 179 of file rtl_core.h.

Enumeration Type Documentation

Enumerator:
TXCMD_TXRA_HISTORY_CTRL 
TXCMD_RESET_TX_PKT_BUFF 
TXCMD_RESET_RX_PKT_BUFF 
TXCMD_SET_TX_DURATION 
TXCMD_SET_RX_RSSI 
TXCMD_SET_TX_PWR_TRACKING 
TXCMD_XXXX_CTRL 

Definition at line 235 of file rtl_core.h.

Enumerator:
IC_INFERIORITY_A 
IC_INFERIORITY_B 

Definition at line 306 of file rtl_core.h.

enum nic_t
Enumerator:
NIC_8185 
NIC_8185B 
NIC_UNKNOWN 
NIC_8192E 
NIC_8190P 
NIC_8192SE 
NIC_8192CE 
NIC_8192CU 
NIC_8192DE 
NIC_8192DU 
NIC_8192U 
NIC_8190P 
NIC_8192E 

Definition at line 218 of file rtl_core.h.

Enumerator:
PCI_BRIDGE_VENDOR_INTEL 
PCI_BRIDGE_VENDOR_ATI 
PCI_BRIDGE_VENDOR_AMD 
PCI_BRIDGE_VENDOR_SIS 
PCI_BRIDGE_VENDOR_UNKNOWN 
PCI_BRIDGE_VENDOR_MAX 
PCI_BRIDGE_VENDOR_INTEL 
PCI_BRIDGE_VENDOR_ATI 
PCI_BRIDGE_VENDOR_AMD 
PCI_BRIDGE_VENDOR_SIS 
PCI_BRIDGE_VENDOR_UNKNOWN 
PCI_BRIDGE_VENDOR_MAX 

Definition at line 311 of file rtl_core.h.

enum reset_type
Enumerator:
RESET_TYPE_INVISIBLE 
RESET_TYPE_ALL 
RESET_TYPE_WORLD 
RESET_TYPE_DISABLE 
RESET_TYPE_MAX_METHOD 
RESET_TYPE_TX_WATCHDOG 
RESET_TYPE_INT_ERROR 
RESET_TYPE_RX_RECOVERY 
RESET_TYPE_RX_DESC_FETCH 
RESET_TYPE_TX_DESC_FETCH 
RESET_TYPE_TX_SKIP 
RESET_TYPE_MC_FAILURE 
RESET_TYPE_MAX 
FORCE_BIG_HAMMER 
SOFT_RESET 
RESET_TYPE_NORESET 
RESET_TYPE_NORMAL 
RESET_TYPE_SILENT 

Definition at line 300 of file rtl_core.h.

enum rf_step
Enumerator:
RF_STEP_INIT 
RF_STEP_NORMAL 
RF_STEP_MAX 

Definition at line 254 of file rtl_core.h.

Enumerator:
RT_CID_DEFAULT 
RT_CID_8187_ALPHA0 
RT_CID_8187_SERCOMM_PS 
RT_CID_8187_HW_LED 
RT_CID_8187_NETGEAR 
RT_CID_WHQL 
RT_CID_819x_CAMEO 
RT_CID_819x_RUNTOP 
RT_CID_819x_Senao 
RT_CID_TOSHIBA 
RT_CID_819x_Netcore 
RT_CID_Nettronix 
RT_CID_DLINK 
RT_CID_PRONET 
RT_CID_COREGA 
RT_CID_819x_ALPHA 
RT_CID_819x_Sitecom 
RT_CID_CCX 
RT_CID_819x_Lenovo 
RT_CID_819x_QMI 
RT_CID_819x_Edimax_Belkin 
RT_CID_819x_Sercomm_Belkin 
RT_CID_819x_CAMEO1 
RT_CID_819x_MSI 
RT_CID_819x_Acer 
RT_CID_819x_HP 
RT_CID_819x_CLEVO 
RT_CID_819x_Arcadyan_Belkin 
RT_CID_819x_SAMSUNG 
RT_CID_819x_WNC_COREGA 

Definition at line 267 of file rtl_core.h.

Enumerator:
EEPROM_93C46 
EEPROM_93C56 
EEPROM_BOOT_EFUSE 
EEPROM_93C46 
EEPROM_93C56 
EEPROM_BOOT_EFUSE 

Definition at line 229 of file rtl_core.h.

Enumerator:
RF_TYPE_MIN 
RF_8225 
RF_8256 
RF_8258 
RF_6052 
RF_PSEUDO_11N 

Definition at line 245 of file rtl_core.h.

enum rt_status
Enumerator:
RT_STATUS_SUCCESS 
RT_STATUS_FAILURE 
RT_STATUS_PENDING 
RT_STATUS_RESOURCE 

Definition at line 260 of file rtl_core.h.

Enumerator:
RTL819X_PHY_MACPHY_REG 
RTL819X_PHY_MACPHY_REG_PG 
RTL8188C_PHY_MACREG 
RTL8192C_PHY_MACREG 
RTL819X_PHY_REG 
RTL819X_PHY_REG_1T2R 
RTL819X_PHY_REG_to1T1R 
RTL819X_PHY_REG_to1T2R 
RTL819X_PHY_REG_to2T2R 
RTL819X_PHY_REG_PG 
RTL819X_AGC_TAB 
RTL819X_PHY_RADIO_A 
RTL819X_PHY_RADIO_A_1T 
RTL819X_PHY_RADIO_A_2T 
RTL819X_PHY_RADIO_B 
RTL819X_PHY_RADIO_B_GM 
RTL819X_PHY_RADIO_C 
RTL819X_PHY_RADIO_D 
RTL819X_EEPROM_MAP 
RTL819X_EFUSE_MAP 

Definition at line 195 of file rtl_core.h.

Enumerator:
TWO_PORT_STATUS__DEFAULT_ONLY 
TWO_PORT_STATUS__EXTENSION_ONLY 
TWO_PORT_STATUS__EXTENSION_FOLLOW_DEFAULT 
TWO_PORT_STATUS__DEFAULT_G_EXTENSION_N20 
TWO_PORT_STATUS__ADHOC 
TWO_PORT_STATUS__WITHOUT_ANY_ASSOCIATE 

Definition at line 454 of file rtl_core.h.

Function Documentation

int _rtl8192_up ( struct net_device dev,
bool  is_silent_reset 
)

Definition at line 2464 of file rtl_core.c.

void ActUpdateChannelAccessSetting ( struct net_device dev,
enum wireless_mode  WirelessMode,
struct channel_access_setting ChnlAccessSetting 
)

Definition at line 2390 of file r8192E_dev.c.

void check_rfctrl_gpio_timer ( unsigned long  data)

Definition at line 3105 of file rtl_core.c.

void force_pci_posting ( struct net_device dev)
inline

Definition at line 201 of file r8180_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.

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 168 of file r8180_core.c.

u32 read_nic_dword ( struct net_device dev,
int  x 
)

Definition at line 173 of file r8180_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 178 of file r8180_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.

void rtl8192_hw_sleep_wq ( void data)

Definition at line 49 of file rtl_ps.c.

void rtl8192_hw_wakeup_wq ( void data)

Definition at line 75 of file rtl_ps.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_proc_init_one ( struct net_device dev)

Definition at line 860 of file rtl_debug.c.

void rtl8192_proc_module_init ( void  )

Definition at line 809 of file rtl_debug.c.

void rtl8192_proc_module_remove ( void  )

Definition at line 816 of file rtl_debug.c.

void rtl8192_proc_remove_one ( struct net_device dev)

Definition at line 822 of file rtl_debug.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 )

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 )

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 183 of file r8180_core.c.

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

Definition at line 189 of file r8180_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 195 of file r8180_core.c.

Variable Documentation

struct ethtool_ops rtl819x_ethtool_ops

Definition at line 50 of file rtl_ethtool.c.