Linux Kernel
3.7.1
|
#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 |
Variables | |
struct tx_ring | __packed |
struct ethtool_ops | rtl819x_ethtool_ops |
#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 | ) |
Definition at line 72 of file rtl_core.h.
Definition at line 106 of file rtl_core.h.
#define IS_UNDER_11N_AES_MODE | ( | _rtllib | ) |
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.
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 |
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.
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.
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.
enum dcmg_txcmd_op |
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.
enum ic_inferiority_8192s |
Definition at line 306 of file rtl_core.h.
enum nic_t |
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.
enum pci_bridge_vendor |
Definition at line 311 of file rtl_core.h.
enum reset_type |
Definition at line 300 of file rtl_core.h.
enum rf_step |
Definition at line 254 of file rtl_core.h.
enum rt_customer_id |
Definition at line 267 of file rtl_core.h.
enum rt_eeprom_type |
Definition at line 229 of file rtl_core.h.
enum rt_rf_type_819xu |
Definition at line 245 of file rtl_core.h.
enum rt_status |
Definition at line 260 of file rtl_core.h.
enum RTL819x_PHY_PARAM |
Definition at line 195 of file rtl_core.h.
enum two_port_status |
Definition at line 454 of file rtl_core.h.
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.
Definition at line 3105 of file rtl_core.c.
|
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.
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_proc_init_one | ( | struct net_device * | dev | ) |
Definition at line 860 of file rtl_debug.c.
Definition at line 809 of file rtl_debug.c.
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.
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.
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.
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.
Definition at line 1633 of file rtl_core.c.
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.
struct ethtool_ops rtl819x_ethtool_ops |
Definition at line 50 of file rtl_ethtool.c.