Linux Kernel
3.7.1
|
#include <asm/uaccess.h>
#include "r8192U_hw.h"
#include "r8192U.h"
#include "r8190_rtl8256.h"
#include "r8180_93cx6.h"
#include "r8192U_wx.h"
#include "r819xU_phy.h"
#include "r819xU_phyreg.h"
#include "r819xU_cmdpkt.h"
#include "r8192U_dm.h"
#include <linux/usb.h>
#include <linux/slab.h>
#include "dot11d.h"
Go to the source code of this file.
Data Structures | |
struct | _CHANNEL_LIST |
Macros | |
#define | CONFIG_RTL8192_IO_MAP |
#define | TOTAL_CAM_ENTRY 32 |
#define | CAM_CONTENT_COUNT 8 |
#define | rx_hal_is_cck_rate(_pdrvinfo) |
#define | SHORT_SLOT_TIME 9 |
#define | NON_SHORT_SLOT_TIME 20 |
#define | DRV_NAME "wlan0" |
#define | DEFAULT_EDCA 0x005e4332 |
Typedefs | |
typedef struct _CHANNEL_LIST | CHANNEL_LIST |
typedef struct _CHANNEL_LIST * | PCHANNEL_LIST |
Variables | |
u32 | rt_global_debug_component |
int | WDCAPARA_ADD [] = {EDCAPARA_BE,EDCAPARA_BK,EDCAPARA_VI,EDCAPARA_VO} |
#define CAM_CONTENT_COUNT 8 |
Definition at line 104 of file r8192U_core.c.
#define CONFIG_RTL8192_IO_MAP |
Definition at line 59 of file r8192U_core.c.
#define DEFAULT_EDCA 0x005e4332 |
#define DRV_NAME "wlan0" |
Definition at line 2836 of file r8192U_core.c.
#define NON_SHORT_SLOT_TIME 20 |
Definition at line 1636 of file r8192U_core.c.
#define rx_hal_is_cck_rate | ( | _pdrvinfo | ) |
Definition at line 243 of file r8192U_core.c.
#define SHORT_SLOT_TIME 9 |
Definition at line 1635 of file r8192U_core.c.
#define TOTAL_CAM_ENTRY 32 |
Definition at line 103 of file r8192U_core.c.
typedef struct _CHANNEL_LIST CHANNEL_LIST |
typedef struct _CHANNEL_LIST * PCHANNEL_LIST |
double __adddf3 | ( | double | a, |
double | b | ||
) |
Definition at line 30 of file r8192U_core.c.
double __addsf3 | ( | float | a, |
float | b | ||
) |
Definition at line 31 of file r8192U_core.c.
double __extendsfdf2 | ( | float | a | ) |
Definition at line 33 of file r8192U_core.c.
unsigned int __fixunsdfsi | ( | double | d | ) |
Definition at line 29 of file r8192U_core.c.
double __floatsidf | ( | int | i | ) |
Definition at line 28 of file r8192U_core.c.
double __subdf3 | ( | double | a, |
double | b | ||
) |
Definition at line 32 of file r8192U_core.c.
int _rtl8192_up | ( | struct net_device * | dev | ) |
Definition at line 4151 of file r8192U_core.c.
int alloc_tx_beacon_desc_ring | ( | struct net_device * | dev, |
int | count | ||
) |
Definition at line 1061 of file r8192U_core.c.
void CAM_read_entry | ( | struct net_device * | dev, |
u32 | iIndex | ||
) |
Definition at line 4007 of file r8192U_core.c.
void CamResetAllEntry | ( | struct net_device * | dev | ) |
Definition at line 251 of file r8192U_core.c.
void CamRestoreAllEntry | ( | struct net_device * | dev | ) |
Definition at line 3758 of file r8192U_core.c.
short check_nic_enough_desc | ( | struct net_device * | dev, |
int | queue_index | ||
) |
Definition at line 774 of file r8192U_core.c.
Definition at line 1716 of file r8192U_core.c.
void dump_eprom | ( | struct net_device * | dev | ) |
Definition at line 793 of file r8192U_core.c.
void EnableHWSecurityConfig8192 | ( | struct net_device * | dev | ) |
ieee->hwsec_support) //add hwsec_support flag to totol control hw_sec on/off
Definition at line 5938 of file r8192U_core.c.
|
inline |
Definition at line 464 of file r8192U_core.c.
u32 get_rxpacket_shiftbytes_819xusb | ( | struct ieee80211_rx_stats * | pstats | ) |
Definition at line 891 of file r8192U_core.c.
bool GetHalfNmodeSupportByAPs819xUsb | ( | struct net_device * | dev | ) |
Definition at line 2602 of file r8192U_core.c.
bool GetNmodeSupportBySecCfg8192 | ( | struct net_device * | dev | ) |
Definition at line 2570 of file r8192U_core.c.
u32 GetRxPacketShiftBytes819xUsb | ( | struct ieee80211_rx_stats * | Status, |
bool | bIsRxAggrSubframe | ||
) |
Definition at line 5407 of file r8192U_core.c.
bool HalRxCheckStuck819xUsb | ( | struct net_device * | dev | ) |
Definition at line 3612 of file r8192U_core.c.
bool HalTxCheckStuck819xUsb | ( | struct net_device * | dev | ) |
Definition at line 3547 of file r8192U_core.c.
Definition at line 4451 of file r8192U_core.c.
Definition at line 461 of file ieee80211_crypt_ccmp.c.
Definition at line 455 of file ieee80211_crypt_ccmp.c.
Definition at line 225 of file ieee80211_crypt.c.
Definition at line 204 of file ieee80211_crypt.c.
Definition at line 741 of file ieee80211_crypt_tkip.c.
Definition at line 735 of file ieee80211_crypt_tkip.c.
Definition at line 283 of file ieee80211_crypt_wep.c.
Definition at line 277 of file ieee80211_crypt_wep.c.
Definition at line 305 of file ieee80211_module.c.
Definition at line 279 of file ieee80211_module.c.
Definition at line 1066 of file r8192U_core.c.
Definition at line 1874 of file r8192U_core.c.
MODULE_DEVICE_TABLE | ( | usb | , |
rtl8192_usb_id_tbl | |||
) |
module_exit | ( | rtl8192_usb_module_exit | ) |
module_init | ( | rtl8192_usb_module_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | ifname | , |
charp | , | ||
S_IRUGO| | S_IWUSR | ||
) |
MODULE_PARM_DESC | ( | ifname | , |
" Net interface | name | ||
) |
MODULE_VERSION | ( | "V 1.1" | ) |
Definition at line 1920 of file r8192U_core.c.
Definition at line 755 of file r8192U_core.c.
void query_rx_cmdpkt_desc_status | ( | struct sk_buff * | skb, |
struct ieee80211_rx_stats * | stats | ||
) |
Definition at line 5633 of file r8192U_core.c.
void query_rxdesc_status | ( | struct sk_buff * | skb, |
struct ieee80211_rx_stats * | stats, | ||
bool | bIsRxAggrSubframe | ||
) |
Definition at line 5284 of file r8192U_core.c.
Definition at line 1963 of file r8192U_core.c.
int r8192_set_mac_adr | ( | struct net_device * | dev, |
void * | mac | ||
) |
Definition at line 4321 of file r8192U_core.c.
u32 read_cam | ( | struct net_device * | dev, |
u8 | addr | ||
) |
Definition at line 275 of file r8192U_core.c.
u8 read_nic_byte | ( | struct net_device * | dev, |
int | indx | ||
) |
Definition at line 378 of file r8192U_core.c.
u8 read_nic_byte_E | ( | struct net_device * | dev, |
int | indx | ||
) |
Definition at line 297 of file r8192U_core.c.
u32 read_nic_dword | ( | struct net_device * | dev, |
int | indx | ||
) |
Definition at line 434 of file r8192U_core.c.
u16 read_nic_word | ( | struct net_device * | dev, |
int | indx | ||
) |
Definition at line 399 of file r8192U_core.c.
u16 read_nic_word_E | ( | struct net_device * | dev, |
int | indx | ||
) |
Definition at line 417 of file r8192U_core.c.
bool rtl8192_adapter_start | ( | struct net_device * | dev | ) |
Definition at line 3281 of file r8192U_core.c.
void rtl8192_beacon_stop | ( | struct net_device * | dev | ) |
Definition at line 1568 of file r8192U_core.c.
void rtl8192_cancel_deferred_work | ( | struct r8192_priv * | priv | ) |
Definition at line 2455 of file rtl_core.c.
int rtl8192_close | ( | struct net_device * | dev | ) |
Definition at line 4204 of file r8192U_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 1587 of file r8192U_core.c.
void rtl8192_data_hard_resume | ( | struct net_device * | dev | ) |
Definition at line 1187 of file r8192U_core.c.
void rtl8192_data_hard_stop | ( | struct net_device * | dev | ) |
Definition at line 1181 of file r8192U_core.c.
int rtl8192_down | ( | struct net_device * | dev | ) |
Definition at line 4219 of file r8192U_core.c.
void rtl8192_dump_reg | ( | struct net_device * | dev | ) |
Definition at line 801 of file r8192U_core.c.
short rtl8192_get_channel_map | ( | struct net_device * | dev | ) |
Definition at line 3124 of file r8192U_core.c.
u8 rtl8192_getSupportedWireleeMode | ( | struct net_device * | dev | ) |
Definition at line 2631 of file r8192U_core.c.
Definition at line 1195 of file r8192U_core.c.
int rtl8192_hard_start_xmit | ( | struct sk_buff * | skb, |
struct net_device * | dev | ||
) |
Definition at line 1230 of file r8192U_core.c.
void rtl8192_hwconfig | ( | struct net_device * | dev | ) |
Definition at line 3192 of file r8192U_core.c.
short rtl8192_init | ( | struct net_device * | dev | ) |
Definition at line 3137 of file r8192U_core.c.
Definition at line 4337 of file r8192U_core.c.
void rtl8192_irq_rx_tasklet | ( | struct r8192_priv * | priv | ) |
Definition at line 2441 of file rtl_core.c.
Definition at line 1707 of file r8192U_core.c.
void rtl8192_link_change | ( | struct net_device * | dev | ) |
Definition at line 2304 of file r8192U_core.c.
void rtl8192_net_update | ( | struct net_device * | dev | ) |
Definition at line 1663 of file r8192U_core.c.
int rtl8192_open | ( | struct net_device * | dev | ) |
Definition at line 4182 of file r8192U_core.c.
void rtl8192_proc_init_one | ( | struct net_device * | dev | ) |
Definition at line 704 of file r8192U_core.c.
Definition at line 670 of file r8192U_core.c.
Definition at line 677 of file r8192U_core.c.
void rtl8192_proc_remove_one | ( | struct net_device * | dev | ) |
Definition at line 683 of file r8192U_core.c.
void rtl8192_process_phyinfo | ( | struct r8192_priv * | priv, |
u8 * | buffer, | ||
struct ieee80211_rx_stats * | pprevious_stats, | ||
struct ieee80211_rx_stats * | pcurrent_stats | ||
) |
Definition at line 4552 of file r8192U_core.c.
void rtl8192_qos_activate | ( | struct work_struct * | work | ) |
Definition at line 2361 of file r8192U_core.c.
Definition at line 1099 of file r8192U_core.c.
void rtl8192_record_rxdesc_forlateruse | ( | struct ieee80211_rx_stats * | psrc_stats, |
struct ieee80211_rx_stats * | ptarget_stats | ||
) |
Definition at line 5124 of file r8192U_core.c.
void rtl8192_refresh_supportrate | ( | struct r8192_priv * | priv | ) |
Definition at line 2616 of file r8192U_core.c.
void rtl8192_restart | ( | struct work_struct * | work | ) |
Definition at line 4288 of file r8192U_core.c.
void rtl8192_rtx_disable | ( | struct net_device * | dev | ) |
Definition at line 1030 of file r8192U_core.c.
Definition at line 5655 of file r8192U_core.c.
void rtl8192_rx_enable | ( | struct net_device * | dev | ) |
Definition at line 1012 of file r8192U_core.c.
Definition at line 5419 of file r8192U_core.c.
void rtl8192_set_chan | ( | struct net_device * | dev, |
short | ch | ||
) |
Definition at line 863 of file r8192U_core.c.
void rtl8192_set_mode | ( | struct net_device * | dev, |
int | mode | ||
) |
Definition at line 823 of file r8192U_core.c.
void rtl8192_set_rxconf | ( | struct net_device * | dev | ) |
Definition at line 958 of file r8192U_core.c.
void rtl8192_SetWirelessMode | ( | struct net_device * | dev, |
u8 | wireless_mode | ||
) |
Definition at line 2651 of file r8192U_core.c.
void rtl8192_try_wake_queue | ( | struct net_device * | dev, |
int | pri | ||
) |
Definition at line 5924 of file r8192U_core.c.
short rtl8192_tx | ( | struct net_device * | dev, |
struct sk_buff * | skb | ||
) |
Definition at line 1985 of file r8192U_core.c.
void rtl8192_tx_enable | ( | struct net_device * | dev | ) |
Definition at line 1024 of file r8192U_core.c.
int rtl8192_up | ( | struct net_device * | dev | ) |
Definition at line 4194 of file r8192U_core.c.
void rtl8192_update_beacon | ( | struct work_struct * | work | ) |
Definition at line 2345 of file r8192U_core.c.
void rtl8192_update_cap | ( | struct net_device * | dev, |
u16 | cap | ||
) |
Definition at line 1638 of file r8192U_core.c.
void rtl8192_update_msr | ( | struct net_device * | dev | ) |
Definition at line 835 of file r8192U_core.c.
void rtl8192_update_ratr_table | ( | struct net_device * | dev | ) |
Definition at line 2121 of file r8192E_dev.c.
void rtl8192_usb_deleteendpoints | ( | struct net_device * | dev | ) |
Definition at line 2271 of file r8192U_core.c.
short rtl8192_usb_initendpoints | ( | struct net_device * | dev | ) |
Definition at line 2192 of file r8192U_core.c.
RESET_TYPE rtl819x_ifcheck_resetornot | ( | struct net_device * | dev | ) |
This function is called by Checkforhang to check whether we should ask OS to reset driver
pAdapter | The adapter context for this miniport |
Note:NIC with USB interface sholud not call this function because we cannot scan descriptor to judge whether there is tx stuck. Note: This function may be required to be rewrite for Vista OS. <<<Assumption: Tx spinlock has been acquired >>>
8185 and 8185b does not implement this function. This is added by Emily at 2006.11.24
Definition at line 3716 of file r8192U_core.c.
void rtl819x_ifsilentreset | ( | struct net_device * | dev | ) |
Definition at line 3898 of file r8192U_core.c.
Definition at line 4826 of file r8192U_core.c.
Definition at line 4536 of file r8192U_core.c.
void rtl819x_update_rxcounts | ( | struct r8192_priv * | priv, |
u32 * | TotalRxBcnNum, | ||
u32 * | TotalRxDataNum | ||
) |
Definition at line 4046 of file r8192U_core.c.
void rtl819x_watchdog_wqcallback | ( | struct work_struct * | work | ) |
Definition at line 4068 of file r8192U_core.c.
Definition at line 1793 of file r8192U_core.c.
short rtl819xU_tx_cmd | ( | struct net_device * | dev, |
struct sk_buff * | skb | ||
) |
Definition at line 1808 of file r8192U_core.c.
void rtl819xusb_beacon_tx | ( | struct net_device * | dev, |
u16 | tx_rate | ||
) |
Definition at line 1703 of file r8192U_core.c.
void rtl819xusb_process_received_packet | ( | struct net_device * | dev, |
struct ieee80211_rx_stats * | pstats | ||
) |
Definition at line 5578 of file r8192U_core.c.
u32 rtl819xusb_rx_command_packet | ( | struct net_device * | dev, |
struct ieee80211_rx_stats * | pstats | ||
) |
Definition at line 1157 of file r8192U_core.c.
RESET_TYPE RxCheckStuck | ( | struct net_device * | dev | ) |
Definition at line 3677 of file r8192U_core.c.
void setKey | ( | struct net_device * | dev, |
u8 | EntryNo, | ||
u8 | KeyIndex, | ||
u16 | KeyType, | ||
u8 * | MacAddr, | ||
u8 | DefaultKey, | ||
u32 * | KeyContent | ||
) |
Definition at line 5972 of file r8192U_core.c.
void TranslateRxSignalStuff819xUsb | ( | struct sk_buff * | skb, |
struct ieee80211_rx_stats * | pstats, | ||
rx_drvinfo_819x_usb * | pdrvinfo | ||
) |
Definition at line 5135 of file r8192U_core.c.
void tx_timeout | ( | struct net_device * | dev | ) |
Definition at line 782 of file r8192U_core.c.
RESET_TYPE TxCheckStuck | ( | struct net_device * | dev | ) |
Definition at line 3568 of file r8192U_core.c.
unsigned int txqueue2outpipe | ( | struct r8192_priv * | priv, |
unsigned int | tx_queue | ||
) |
Definition at line 1798 of file r8192U_core.c.
void UpdateReceivedRateHistogramStatistics8190 | ( | struct net_device * | dev, |
struct ieee80211_rx_stats * | stats | ||
) |
Function: UpdateReceivedRateHistogramStatistics Overview: Record the received data rate
Input: struct net_device *dev struct ieee80211_rx_stats *stats
Output:
(priv->stats.ReceivedRateHistogram[] is updated)
Return: None
Definition at line 5216 of file r8192U_core.c.
void UpdateRxPktTimeStamp8190 | ( | struct net_device * | dev, |
struct ieee80211_rx_stats * | stats | ||
) |
Function: UpdateRxPktTimeStamp Overview: Record the TSF time stamp when receiving a packet
Input: PADAPTER Adapter PRT_RFD pRfd,
Output: PRT_RFD pRfd (pRfd->Status.TimeStampHigh is updated) (pRfd->Status.TimeStampLow is updated) Return: None
Definition at line 4521 of file r8192U_core.c.
Definition at line 1786 of file rtl_core.c.
void write_cam | ( | struct net_device * | dev, |
u8 | addr, | ||
u32 | data | ||
) |
Definition at line 269 of file r8192U_core.c.
void write_nic_byte | ( | struct net_device * | dev, |
int | indx, | ||
u8 | data | ||
) |
Definition at line 316 of file r8192U_core.c.
void write_nic_byte_E | ( | struct net_device * | dev, |
int | indx, | ||
u8 | data | ||
) |
Definition at line 281 of file r8192U_core.c.
void write_nic_dword | ( | struct net_device * | dev, |
int | indx, | ||
u32 | data | ||
) |
Definition at line 356 of file r8192U_core.c.
void write_nic_word | ( | struct net_device * | dev, |
int | indx, | ||
u16 | data | ||
) |
Definition at line 336 of file r8192U_core.c.
u32 rt_global_debug_component |
Definition at line 82 of file r8192U_core.c.
int WDCAPARA_ADD[] = {EDCAPARA_BE,EDCAPARA_BK,EDCAPARA_VI,EDCAPARA_VO} |
Definition at line 2360 of file r8192U_core.c.