Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
r8192U.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/slab.h>
#include <linux/netdevice.h>
#include <linux/usb.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 <asm/io.h>
#include "ieee80211/ieee80211.h"

Go to the source code of this file.

Data Structures

struct  _tx_desc_819x_usb
 
struct  _tx_desc_cmd_819x_usb
 
struct  _tx_fwinfo_819x_usb
 
struct  rtl8192_rx_info
 
struct  rx_desc_819x_usb
 
struct  rx_drvinfo_819x_usb
 
struct  _rt_firmare_seg_container
 
struct  _rt_firmware
 
struct  _rt_firmware_info_819xUsb
 
struct  buffer
 
struct  rtl_reg_debug
 
struct  _rt_9x_tx_rate_history
 
struct  _RT_SMOOTH_DATA_4RF
 
struct  Stats
 
struct  ChnlAccessSetting
 
struct  _BB_REGISTER_DEFINITION
 
struct  _rate_adaptive
 
struct  _txbbgain_struct
 
struct  _ccktxbbgain_struct
 
struct  _init_gain
 
struct  _phy_ofdm_rx_status_report_819xusb
 
struct  _phy_cck_rx_status_report_819xusb
 
struct  _phy_ofdm_rx_status_rxsc_sgien_exintfflag
 
struct  r8192_priv
 

Macros

#define RTL8192U
 
#define RTL819xU_MODULE_NAME   "rtl819xU"
 
#define FALSE   0
 
#define TRUE   1
 
#define MAX_KEY_LEN   61
 
#define KEY_BUF_SIZE   5
 
#define BIT0   0x00000001
 
#define BIT1   0x00000002
 
#define BIT2   0x00000004
 
#define BIT3   0x00000008
 
#define BIT4   0x00000010
 
#define BIT5   0x00000020
 
#define BIT6   0x00000040
 
#define BIT7   0x00000080
 
#define BIT8   0x00000100
 
#define BIT9   0x00000200
 
#define BIT10   0x00000400
 
#define BIT11   0x00000800
 
#define BIT12   0x00001000
 
#define BIT13   0x00002000
 
#define BIT14   0x00004000
 
#define BIT15   0x00008000
 
#define BIT16   0x00010000
 
#define BIT17   0x00020000
 
#define BIT18   0x00040000
 
#define BIT19   0x00080000
 
#define BIT20   0x00100000
 
#define BIT21   0x00200000
 
#define BIT22   0x00400000
 
#define BIT23   0x00800000
 
#define BIT24   0x01000000
 
#define BIT25   0x02000000
 
#define BIT26   0x04000000
 
#define BIT27   0x08000000
 
#define BIT28   0x10000000
 
#define BIT29   0x20000000
 
#define BIT30   0x40000000
 
#define BIT31   0x80000000
 
#define Rx_Smooth_Factor   20
 
#define DMESG(x, a...)
 
#define DMESGW(x, a...)
 
#define DMESGE(x, a...)
 
#define RT_TRACE(component, x, args...)
 
#define COMP_TRACE   BIT0
 
#define COMP_DBG   BIT1
 
#define COMP_INIT   BIT2
 
#define COMP_RECV   BIT3
 
#define COMP_SEND   BIT4
 
#define COMP_IO   BIT5
 
#define COMP_POWER   BIT6
 
#define COMP_EPROM   BIT7
 
#define COMP_SWBW   BIT8
 
#define COMP_POWER_TRACKING   BIT9
 
#define COMP_TURBO   BIT10
 
#define COMP_QOS   BIT11
 
#define COMP_RATE   BIT12
 
#define COMP_RM   BIT13
 
#define COMP_DIG   BIT14
 
#define COMP_PHY   BIT15
 
#define COMP_CH   BIT16
 
#define COMP_TXAGC   BIT17
 
#define COMP_HIPWR   BIT18
 
#define COMP_HALDM   BIT19
 
#define COMP_SEC   BIT20
 
#define COMP_LED   BIT21
 
#define COMP_RF   BIT22
 
#define COMP_RXDESC   BIT23
 
#define COMP_FIRMWARE   BIT24
 
#define COMP_HT   BIT25
 
#define COMP_AMSDU   BIT26
 
#define COMP_SCAN   BIT27
 
#define COMP_DOWN   BIT29
 
#define COMP_RESET   BIT30
 
#define COMP_ERR   BIT31
 
#define RTL819x_DEBUG
 
#define assert(expr)
 
#define RT_DEBUG_DATA(level, data, datalen)
 
#define QSLT_BK   0x1
 
#define QSLT_BE   0x0
 
#define QSLT_VI   0x4
 
#define QSLT_VO   0x6
 
#define QSLT_BEACON   0x10
 
#define QSLT_HIGH   0x11
 
#define QSLT_MGNT   0x12
 
#define QSLT_CMD   0x13
 
#define DESC90_RATE1M   0x00
 
#define DESC90_RATE2M   0x01
 
#define DESC90_RATE5_5M   0x02
 
#define DESC90_RATE11M   0x03
 
#define DESC90_RATE6M   0x04
 
#define DESC90_RATE9M   0x05
 
#define DESC90_RATE12M   0x06
 
#define DESC90_RATE18M   0x07
 
#define DESC90_RATE24M   0x08
 
#define DESC90_RATE36M   0x09
 
#define DESC90_RATE48M   0x0a
 
#define DESC90_RATE54M   0x0b
 
#define DESC90_RATEMCS0   0x00
 
#define DESC90_RATEMCS1   0x01
 
#define DESC90_RATEMCS2   0x02
 
#define DESC90_RATEMCS3   0x03
 
#define DESC90_RATEMCS4   0x04
 
#define DESC90_RATEMCS5   0x05
 
#define DESC90_RATEMCS6   0x06
 
#define DESC90_RATEMCS7   0x07
 
#define DESC90_RATEMCS8   0x08
 
#define DESC90_RATEMCS9   0x09
 
#define DESC90_RATEMCS10   0x0a
 
#define DESC90_RATEMCS11   0x0b
 
#define DESC90_RATEMCS12   0x0c
 
#define DESC90_RATEMCS13   0x0d
 
#define DESC90_RATEMCS14   0x0e
 
#define DESC90_RATEMCS15   0x0f
 
#define DESC90_RATEMCS32   0x20
 
#define RTL819X_DEFAULT_RF_TYPE   RF_1T2R
 
#define IEEE80211_WATCH_DOG_TIME   2000
 
#define PHY_Beacon_RSSI_SLID_WIN_MAX   10
 
#define OFDM_Table_Length   19
 
#define CCK_Table_length   12
 
#define MAX_DEV_ADDR_SIZE   8 /* support till 64 bit bus width OS */
 
#define MAX_FIRMWARE_INFORMATION_SIZE   32 /*2006/04/30 by Emily forRTL8190*/
 
#define MAX_802_11_HEADER_LENGTH   (40 + MAX_FIRMWARE_INFORMATION_SIZE)
 
#define ENCRYPTION_MAX_OVERHEAD   128
 
#define USB_HWDESC_HEADER_LEN   sizeof(tx_desc_819x_usb)
 
#define TX_PACKET_SHIFT_BYTES   (USB_HWDESC_HEADER_LEN + sizeof(tx_fwinfo_819x_usb))
 
#define MAX_FRAGMENT_COUNT   8
 
#define MAX_TRANSMIT_BUFFER_SIZE   8000
 
#define scrclng   4
 
#define RTL8190_MAX_FIRMWARE_CODE_SIZE   64000
 
#define MAX_RECEIVE_BUFFER_SIZE   9100
 
#define NUM_OF_FIRMWARE_QUEUE   10
 
#define NUM_OF_PAGES_IN_FW   0x100
 
#define NUM_OF_PAGE_IN_FW_QUEUE_BE   0x020
 
#define NUM_OF_PAGE_IN_FW_QUEUE_BK   0x020
 
#define NUM_OF_PAGE_IN_FW_QUEUE_VI   0x040
 
#define NUM_OF_PAGE_IN_FW_QUEUE_VO   0x040
 
#define NUM_OF_PAGE_IN_FW_QUEUE_HCCA   0
 
#define NUM_OF_PAGE_IN_FW_QUEUE_CMD   0x4
 
#define NUM_OF_PAGE_IN_FW_QUEUE_MGNT   0x20
 
#define NUM_OF_PAGE_IN_FW_QUEUE_HIGH   0
 
#define NUM_OF_PAGE_IN_FW_QUEUE_BCN   0x4
 
#define NUM_OF_PAGE_IN_FW_QUEUE_PUB   0x18
 
#define APPLIED_RESERVED_QUEUE_IN_FW   0x80000000
 
#define RSVD_FW_QUEUE_PAGE_BK_SHIFT   0x00
 
#define RSVD_FW_QUEUE_PAGE_BE_SHIFT   0x08
 
#define RSVD_FW_QUEUE_PAGE_VI_SHIFT   0x10
 
#define RSVD_FW_QUEUE_PAGE_VO_SHIFT   0x18
 
#define RSVD_FW_QUEUE_PAGE_MGNT_SHIFT   0x10
 
#define RSVD_FW_QUEUE_PAGE_CMD_SHIFT   0x08
 
#define RSVD_FW_QUEUE_PAGE_BCN_SHIFT   0x00
 
#define RSVD_FW_QUEUE_PAGE_PUB_SHIFT   0x08
 
#define EPROM_93c46   0
 
#define EPROM_93c56   1
 
#define DEFAULT_FRAG_THRESHOLD   2342U
 
#define MIN_FRAG_THRESHOLD   256U
 
#define DEFAULT_BEACONINTERVAL   0x64U
 
#define DEFAULT_BEACON_ESSID   "Rtl819xU"
 
#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 MAX_8192U_RX_SIZE   8192
 
#define HAL_PRIME_CHNL_OFFSET_DONT_CARE   0
 
#define HAL_PRIME_CHNL_OFFSET_LOWER   1
 
#define HAL_PRIME_CHNL_OFFSET_UPPER   2
 
#define TxBBGainTableLength   37
 
#define CCKTxBBGainTableLength   23
 

Typedefs

typedef struct _tx_desc_819x_usb tx_desc_819x_usb
 
typedef struct _tx_desc_819x_usbptx_desc_819x_usb
 
typedef struct
_tx_desc_cmd_819x_usb 
tx_desc_cmd_819x_usb
 
typedef struct
_tx_desc_cmd_819x_usb
ptx_desc_cmd_819x_usb
 
typedef struct _tx_fwinfo_819x_usb tx_fwinfo_819x_usb
 
typedef struct
_tx_fwinfo_819x_usb
ptx_fwinfo_819x_usb
 
typedef struct rtl8192_rx_info rtl8192_rx_info
 
typedef struct rx_desc_819x_usb rx_desc_819x_usb
 
typedef struct rx_desc_819x_usbprx_desc_819x_usb
 
typedef struct rx_drvinfo_819x_usb rx_drvinfo_819x_usb
 
typedef struct
rx_drvinfo_819x_usb
prx_drvinfo_819x_usb
 
typedef enum rf_optype rf_op_type
 
typedef enum _rtl819xUsb_loopback rtl819xUsb_loopback_e
 
typedef enum _desc_packet_type_e desc_packet_type_e
 
typedef enum _firmware_status firmware_status_e
 
typedef struct
_rt_firmare_seg_container 
fw_seg_container
 
typedef struct
_rt_firmare_seg_container
pfw_seg_container
 
typedef struct _rt_firmware rt_firmware
 
typedef struct _rt_firmwareprt_firmware
 
typedef struct
_rt_firmware_info_819xUsb 
rt_firmware_info_819xUsb
 
typedef struct
_rt_firmware_info_819xUsb
prt_firmware_info_819xUsb
 
typedef enum _WIRELESS_MODE WIRELESS_MODE
 
typedef struct buffer buffer
 
typedef struct rtl_reg_debug rtl_reg_debug
 
typedef struct
_rt_9x_tx_rate_history 
rt_tx_rahis_t
 
typedef struct
_rt_9x_tx_rate_history
prt_tx_rahis_t
 
typedef struct _RT_SMOOTH_DATA_4RF RT_SMOOTH_DATA_4RF
 
typedef struct
_RT_SMOOTH_DATA_4RF
PRT_SMOOTH_DATA_4RF
 
typedef struct Stats Stats
 
typedef struct ChnlAccessSettingPCHANNEL_ACCESS_SETTING
 
typedef struct ChnlAccessSetting CHANNEL_ACCESS_SETTING
 
typedef struct
_BB_REGISTER_DEFINITION 
BB_REGISTER_DEFINITION_T
 
typedef struct
_BB_REGISTER_DEFINITION
PBB_REGISTER_DEFINITION_T
 
typedef enum _RT_RF_TYPE_819xU RT_RF_TYPE_819xU
 
typedef enum _RT_RF_TYPE_819xUPRT_RF_TYPE_819xU
 
typedef struct _rate_adaptive rate_adaptive
 
typedef struct _rate_adaptiveprate_adaptive
 
typedef struct _txbbgain_struct txbbgain_struct
 
typedef struct _txbbgain_structptxbbgain_struct
 
typedef struct _ccktxbbgain_struct ccktxbbgain_struct
 
typedef struct
_ccktxbbgain_struct
pccktxbbgain_struct
 
typedef struct _init_gain init_gain
 
typedef struct _init_gainpinit_gain
 
typedef struct
_phy_ofdm_rx_status_report_819xusb 
phy_sts_ofdm_819xusb_t
 
typedef struct
_phy_cck_rx_status_report_819xusb 
phy_sts_cck_819xusb_t
 
typedef struct
_phy_ofdm_rx_status_rxsc_sgien_exintfflag 
phy_ofdm_rx_status_rxsc_sgien_exintfflag
 
typedef enum _RT_CUSTOMER_ID RT_CUSTOMER_ID
 
typedef enum _RT_CUSTOMER_IDPRT_CUSTOMER_ID
 
typedef enum _LED_STRATEGY_8190 LED_STRATEGY_8190
 
typedef enum _LED_STRATEGY_8190PLED_STRATEGY_8190
 
typedef enum _RESET_TYPE RESET_TYPE
 
typedef enum
_tag_TxCmd_Config_Index 
DCMD_TXCMD_OP
 
typedef struct r8192_priv r8192_priv
 

Enumerations

enum  rf_optype {
  RF_OP_BY_SW_3WIRE = 0, RF_OP_BY_FW, RF_OP_MAX, RF_OP_BY_SW_3WIRE = 0,
  RF_OP_BY_FW, RF_OP_MAX, RF_OP_BY_SW_3WIRE = 0, RF_OP_BY_FW,
  RF_OP_MAX, RF_OP_By_SW_3wire = 0, RF_OP_By_FW, RF_OP_MAX,
  RF_OP_By_SW_3wire = 0, RF_OP_By_FW, RF_OP_MAX
}
 
enum  _rtl819xUsb_loopback { RTL819xU_NO_LOOPBACK = 0, RTL819xU_MAC_LOOPBACK = 1, RTL819xU_DMA_LOOPBACK = 2, RTL819xU_CCK_LOOPBACK = 3 }
 
enum  _desc_packet_type_e { DESC_PACKET_TYPE_INIT = 0, DESC_PACKET_TYPE_NORMAL = 1 }
 
enum  _firmware_status {
  FW_STATUS_0_INIT = 0, FW_STATUS_1_MOVE_BOOT_CODE = 1, FW_STATUS_2_MOVE_MAIN_CODE = 2, FW_STATUS_3_TURNON_CPU = 3,
  FW_STATUS_4_MOVE_DATA_CODE = 4, FW_STATUS_5_READY = 5
}
 
enum  _WIRELESS_MODE {
  WIRELESS_MODE_UNKNOWN = 0x00, WIRELESS_MODE_A = 0x01, WIRELESS_MODE_B = 0x02, WIRELESS_MODE_G = 0x04,
  WIRELESS_MODE_AUTO = 0x08, WIRELESS_MODE_UNKNOWN = 0x00, WIRELESS_MODE_A = 0x01, WIRELESS_MODE_B = 0x02,
  WIRELESS_MODE_G = 0x04, WIRELESS_MODE_AUTO = 0x08, WIRELESS_MODE_N_24G = 0x10, WIRELESS_MODE_N_5G = 0x20
}
 
enum  _RT_RF_TYPE_819xU {
  RF_TYPE_MIN = 0, RF_8225, RF_8256, RF_8258,
  RF_PSEUDO_11N = 4
}
 
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
}
 
enum  _LED_STRATEGY_8190 {
  SW_LED_MODE0, SW_LED_MODE1, SW_LED_MODE2, SW_LED_MODE3,
  SW_LED_MODE4, HW_LED
}
 
enum  _RESET_TYPE { RESET_TYPE_NORESET = 0x00, RESET_TYPE_NORMAL = 0x01, RESET_TYPE_SILENT = 0x02 }
 
enum  _tag_TxCmd_Config_Index {
  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  priority_t {
  BULK_PRIORITY = 0x01, LOW_PRIORITY, NORM_PRIORITY, VO_PRIORITY,
  VI_PRIORITY, BE_PRIORITY, BK_PRIORITY, RSVD2,
  RSVD3, BEACON_PRIORITY, HIGH_PRIORITY, MANAGE_PRIORITY,
  RSVD4, RSVD5, UART_PRIORITY
}
 
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
}
 

Functions

bool init_firmware (struct net_device *dev)
 
short rtl819xU_tx_cmd (struct net_device *dev, struct sk_buff *skb)
 
short rtl8192_tx (struct net_device *dev, struct sk_buff *skb)
 
u32 read_cam (struct net_device *dev, u8 addr)
 
void write_cam (struct net_device *dev, u8 addr, u32 data)
 
u8 read_nic_byte (struct net_device *dev, int x)
 
u8 read_nic_byte_E (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_byte_E (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_rtx_disable (struct net_device *)
 
void rtl8192_rx_enable (struct net_device *)
 
void rtl8192_tx_enable (struct net_device *)
 
void rtl8192_disassociate (struct net_device *dev)
 
void rtl8185_set_rf_pins_enable (struct net_device *dev, u32 a)
 
void rtl8192_set_anaparam (struct net_device *dev, u32 a)
 
void rtl8185_set_anaparam2 (struct net_device *dev, u32 a)
 
void rtl8192_update_msr (struct net_device *dev)
 
int rtl8192_down (struct net_device *dev)
 
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 write_phy (struct net_device *dev, u8 adr, u8 data)
 
void write_phy_cck (struct net_device *dev, u8 adr, u32 data)
 
void write_phy_ofdm (struct net_device *dev, u8 adr, u32 data)
 
void rtl8185_tx_antenna (struct net_device *dev, u8 ant)
 
void rtl8192_set_rxconf (struct net_device *dev)
 
void rtl819xusb_beacon_tx (struct net_device *dev, u16 tx_rate)
 
void EnableHWSecurityConfig8192 (struct net_device *dev)
 
void setKey (struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType, u8 *MacAddr, u8 DefaultKey, u32 *KeyContent)
 

Variables

u32 rt_global_debug_component
 

Macro Definition Documentation

#define APPLIED_RESERVED_QUEUE_IN_FW   0x80000000

Definition at line 521 of file r8192U.h.

#define assert (   expr)
Value:
if (!(expr)) { \
printk( "Assertion failed! %s,%s,%s,line=%d\n", \
#expr,__FILE__,__FUNCTION__,__LINE__); \
}

Definition at line 138 of file r8192U.h.

#define BIT0   0x00000001

Definition at line 51 of file r8192U.h.

#define BIT1   0x00000002

Definition at line 52 of file r8192U.h.

#define BIT10   0x00000400

Definition at line 61 of file r8192U.h.

#define BIT11   0x00000800

Definition at line 62 of file r8192U.h.

#define BIT12   0x00001000

Definition at line 63 of file r8192U.h.

#define BIT13   0x00002000

Definition at line 64 of file r8192U.h.

#define BIT14   0x00004000

Definition at line 65 of file r8192U.h.

#define BIT15   0x00008000

Definition at line 66 of file r8192U.h.

#define BIT16   0x00010000

Definition at line 67 of file r8192U.h.

#define BIT17   0x00020000

Definition at line 68 of file r8192U.h.

#define BIT18   0x00040000

Definition at line 69 of file r8192U.h.

#define BIT19   0x00080000

Definition at line 70 of file r8192U.h.

#define BIT2   0x00000004

Definition at line 53 of file r8192U.h.

#define BIT20   0x00100000

Definition at line 71 of file r8192U.h.

#define BIT21   0x00200000

Definition at line 72 of file r8192U.h.

#define BIT22   0x00400000

Definition at line 73 of file r8192U.h.

#define BIT23   0x00800000

Definition at line 74 of file r8192U.h.

#define BIT24   0x01000000

Definition at line 75 of file r8192U.h.

#define BIT25   0x02000000

Definition at line 76 of file r8192U.h.

#define BIT26   0x04000000

Definition at line 77 of file r8192U.h.

#define BIT27   0x08000000

Definition at line 78 of file r8192U.h.

#define BIT28   0x10000000

Definition at line 79 of file r8192U.h.

#define BIT29   0x20000000

Definition at line 80 of file r8192U.h.

#define BIT3   0x00000008

Definition at line 54 of file r8192U.h.

#define BIT30   0x40000000

Definition at line 81 of file r8192U.h.

#define BIT31   0x80000000

Definition at line 82 of file r8192U.h.

#define BIT4   0x00000010

Definition at line 55 of file r8192U.h.

#define BIT5   0x00000020

Definition at line 56 of file r8192U.h.

#define BIT6   0x00000040

Definition at line 57 of file r8192U.h.

#define BIT7   0x00000080

Definition at line 58 of file r8192U.h.

#define BIT8   0x00000100

Definition at line 59 of file r8192U.h.

#define BIT9   0x00000200

Definition at line 60 of file r8192U.h.

#define CCK_Table_length   12

Definition at line 213 of file r8192U.h.

#define CCKTxBBGainTableLength   23

Definition at line 776 of file r8192U.h.

#define COMP_AMSDU   BIT26

Definition at line 128 of file r8192U.h.

#define COMP_CH   BIT16

Definition at line 114 of file r8192U.h.

#define COMP_DBG   BIT1

Definition at line 97 of file r8192U.h.

#define COMP_DIG   BIT14

Definition at line 112 of file r8192U.h.

#define COMP_DOWN   BIT29

Definition at line 132 of file r8192U.h.

#define COMP_EPROM   BIT7

Definition at line 105 of file r8192U.h.

#define COMP_ERR   BIT31

Definition at line 134 of file r8192U.h.

#define COMP_FIRMWARE   BIT24

Definition at line 126 of file r8192U.h.

#define COMP_HALDM   BIT19

Definition at line 117 of file r8192U.h.

#define COMP_HIPWR   BIT18

Definition at line 116 of file r8192U.h.

#define COMP_HT   BIT25

Definition at line 127 of file r8192U.h.

#define COMP_INIT   BIT2

Definition at line 98 of file r8192U.h.

#define COMP_IO   BIT5

Definition at line 103 of file r8192U.h.

#define COMP_LED   BIT21

Definition at line 119 of file r8192U.h.

#define COMP_PHY   BIT15

Definition at line 113 of file r8192U.h.

#define COMP_POWER   BIT6

Definition at line 104 of file r8192U.h.

#define COMP_POWER_TRACKING   BIT9

Definition at line 107 of file r8192U.h.

#define COMP_QOS   BIT11

Definition at line 109 of file r8192U.h.

#define COMP_RATE   BIT12

Definition at line 110 of file r8192U.h.

#define COMP_RECV   BIT3

Definition at line 101 of file r8192U.h.

#define COMP_RESET   BIT30

Definition at line 133 of file r8192U.h.

#define COMP_RF   BIT22

Definition at line 120 of file r8192U.h.

#define COMP_RM   BIT13

Definition at line 111 of file r8192U.h.

#define COMP_RXDESC   BIT23

Definition at line 122 of file r8192U.h.

#define COMP_SCAN   BIT27

Definition at line 130 of file r8192U.h.

#define COMP_SEC   BIT20

Definition at line 118 of file r8192U.h.

#define COMP_SEND   BIT4

Definition at line 102 of file r8192U.h.

#define COMP_SWBW   BIT8

Definition at line 106 of file r8192U.h.

#define COMP_TRACE   BIT0

Definition at line 96 of file r8192U.h.

#define COMP_TURBO   BIT10

Definition at line 108 of file r8192U.h.

#define COMP_TXAGC   BIT17

Definition at line 115 of file r8192U.h.

#define DEFAULT_BEACON_ESSID   "Rtl819xU"

Definition at line 539 of file r8192U.h.

#define DEFAULT_BEACONINTERVAL   0x64U

Definition at line 538 of file r8192U.h.

#define DEFAULT_FRAG_THRESHOLD   2342U

Definition at line 536 of file r8192U.h.

#define DEFAULT_RETRY_DATA   7

Definition at line 543 of file r8192U.h.

#define DEFAULT_RETRY_RTS   7

Definition at line 542 of file r8192U.h.

#define DEFAULT_SSID   ""

Definition at line 541 of file r8192U.h.

#define DESC90_RATE11M   0x03

Definition at line 180 of file r8192U.h.

#define DESC90_RATE12M   0x06

Definition at line 183 of file r8192U.h.

#define DESC90_RATE18M   0x07

Definition at line 184 of file r8192U.h.

#define DESC90_RATE1M   0x00

Definition at line 177 of file r8192U.h.

#define DESC90_RATE24M   0x08

Definition at line 185 of file r8192U.h.

#define DESC90_RATE2M   0x01

Definition at line 178 of file r8192U.h.

#define DESC90_RATE36M   0x09

Definition at line 186 of file r8192U.h.

#define DESC90_RATE48M   0x0a

Definition at line 187 of file r8192U.h.

#define DESC90_RATE54M   0x0b

Definition at line 188 of file r8192U.h.

#define DESC90_RATE5_5M   0x02

Definition at line 179 of file r8192U.h.

#define DESC90_RATE6M   0x04

Definition at line 181 of file r8192U.h.

#define DESC90_RATE9M   0x05

Definition at line 182 of file r8192U.h.

#define DESC90_RATEMCS0   0x00

Definition at line 189 of file r8192U.h.

#define DESC90_RATEMCS1   0x01

Definition at line 190 of file r8192U.h.

#define DESC90_RATEMCS10   0x0a

Definition at line 199 of file r8192U.h.

#define DESC90_RATEMCS11   0x0b

Definition at line 200 of file r8192U.h.

#define DESC90_RATEMCS12   0x0c

Definition at line 201 of file r8192U.h.

#define DESC90_RATEMCS13   0x0d

Definition at line 202 of file r8192U.h.

#define DESC90_RATEMCS14   0x0e

Definition at line 203 of file r8192U.h.

#define DESC90_RATEMCS15   0x0f

Definition at line 204 of file r8192U.h.

#define DESC90_RATEMCS2   0x02

Definition at line 191 of file r8192U.h.

#define DESC90_RATEMCS3   0x03

Definition at line 192 of file r8192U.h.

#define DESC90_RATEMCS32   0x20

Definition at line 205 of file r8192U.h.

#define DESC90_RATEMCS4   0x04

Definition at line 193 of file r8192U.h.

#define DESC90_RATEMCS5   0x05

Definition at line 194 of file r8192U.h.

#define DESC90_RATEMCS6   0x06

Definition at line 195 of file r8192U.h.

#define DESC90_RATEMCS7   0x07

Definition at line 196 of file r8192U.h.

#define DESC90_RATEMCS8   0x08

Definition at line 197 of file r8192U.h.

#define DESC90_RATEMCS9   0x09

Definition at line 198 of file r8192U.h.

#define DMESG (   x,
  a... 
)

Definition at line 86 of file r8192U.h.

#define DMESGE (   x,
  a... 
)

Definition at line 88 of file r8192U.h.

#define DMESGW (   x,
  a... 
)

Definition at line 87 of file r8192U.h.

#define ENCRYPTION_MAX_OVERHEAD   128

Definition at line 425 of file r8192U.h.

#define EPROM_93c46   0

Definition at line 533 of file r8192U.h.

#define EPROM_93c56   1

Definition at line 534 of file r8192U.h.

#define FALSE   0

Definition at line 46 of file r8192U.h.

#define HAL_PRIME_CHNL_OFFSET_DONT_CARE   0

Definition at line 708 of file r8192U.h.

#define HAL_PRIME_CHNL_OFFSET_LOWER   1

Definition at line 709 of file r8192U.h.

#define HAL_PRIME_CHNL_OFFSET_UPPER   2

Definition at line 710 of file r8192U.h.

#define IEEE80211_WATCH_DOG_TIME   2000

Definition at line 209 of file r8192U.h.

#define KEY_BUF_SIZE   5

Definition at line 49 of file r8192U.h.

#define MAX_802_11_HEADER_LENGTH   (40 + MAX_FIRMWARE_INFORMATION_SIZE)

Definition at line 424 of file r8192U.h.

#define MAX_8192U_RX_SIZE   8192

Definition at line 601 of file r8192U.h.

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

Definition at line 422 of file r8192U.h.

#define MAX_FIRMWARE_INFORMATION_SIZE   32 /*2006/04/30 by Emily forRTL8190*/

Definition at line 423 of file r8192U.h.

#define MAX_FRAGMENT_COUNT   8

Definition at line 428 of file r8192U.h.

#define MAX_KEY_LEN   61

Definition at line 48 of file r8192U.h.

#define MAX_RECEIVE_BUFFER_SIZE   9100

Definition at line 485 of file r8192U.h.

#define MAX_TRANSMIT_BUFFER_SIZE   8000

Definition at line 433 of file r8192U.h.

#define MIN_FRAG_THRESHOLD   256U

Definition at line 537 of file r8192U.h.

#define NUM_OF_FIRMWARE_QUEUE   10

Definition at line 492 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_BCN   0x4

Definition at line 516 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_BE   0x020

Definition at line 508 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_BK   0x020

Definition at line 509 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_CMD   0x4

Definition at line 513 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_HCCA   0

Definition at line 512 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_HIGH   0

Definition at line 515 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_MGNT   0x20

Definition at line 514 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_PUB   0x18

Definition at line 517 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_VI   0x040

Definition at line 510 of file r8192U.h.

#define NUM_OF_PAGE_IN_FW_QUEUE_VO   0x040

Definition at line 511 of file r8192U.h.

#define NUM_OF_PAGES_IN_FW   0x100

Definition at line 493 of file r8192U.h.

#define OFDM_Table_Length   19

Definition at line 212 of file r8192U.h.

#define PHY_Beacon_RSSI_SLID_WIN_MAX   10

Definition at line 210 of file r8192U.h.

#define PHY_RSSI_SLID_WIN_MAX   100

Definition at line 546 of file r8192U.h.

#define PRISM_HDR_SIZE   64

Definition at line 544 of file r8192U.h.

#define QSLT_BE   0x0

Definition at line 169 of file r8192U.h.

#define QSLT_BEACON   0x10

Definition at line 172 of file r8192U.h.

#define QSLT_BK   0x1

Definition at line 168 of file r8192U.h.

#define QSLT_CMD   0x13

Definition at line 175 of file r8192U.h.

#define QSLT_HIGH   0x11

Definition at line 173 of file r8192U.h.

#define QSLT_MGNT   0x12

Definition at line 174 of file r8192U.h.

#define QSLT_VI   0x4

Definition at line 170 of file r8192U.h.

#define QSLT_VO   0x6

Definition at line 171 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_BCN_SHIFT   0x00

Definition at line 528 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_BE_SHIFT   0x08

Definition at line 523 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_BK_SHIFT   0x00

Definition at line 522 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_CMD_SHIFT   0x08

Definition at line 527 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_MGNT_SHIFT   0x10

Definition at line 526 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_PUB_SHIFT   0x08

Definition at line 529 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_VI_SHIFT   0x10

Definition at line 524 of file r8192U.h.

#define RSVD_FW_QUEUE_PAGE_VO_SHIFT   0x18

Definition at line 525 of file r8192U.h.

#define RT_DEBUG_DATA (   level,
  data,
  datalen 
)
Value:
do{ if ((rt_global_debug_component & (level)) == (level)) \
{ \
int i; \
u8* pdata = (u8*) data; \
for(i=0; i<(int)(datalen); i++) \
{ \
printk("%2x ", pdata[i]); \
if ((i+1)%16 == 0) printk("\n"); \
} \
printk("\n"); \
} \
} while (0)

Definition at line 145 of file r8192U.h.

#define RT_TRACE (   component,
  x,
  args... 
)
Value:
printk(KERN_DEBUG RTL819xU_MODULE_NAME ":" x "\n" , \
##args);\
}while(0);

Definition at line 90 of file r8192U.h.

#define RTL8190_MAX_FIRMWARE_CODE_SIZE   64000

Definition at line 479 of file r8192U.h.

#define RTL8192U

Definition at line 43 of file r8192U.h.

#define RTL819x_DEBUG

Definition at line 136 of file r8192U.h.

#define RTL819X_DEFAULT_RF_TYPE   RF_1T2R

Definition at line 207 of file r8192U.h.

#define RTL819xU_MODULE_NAME   "rtl819xU"

Definition at line 44 of file r8192U.h.

#define RTL_IOCTL_WPA_SUPPLICANT   SIOCIWFIRSTPRIV+30

Definition at line 560 of file r8192U.h.

#define Rx_Smooth_Factor   20

Definition at line 85 of file r8192U.h.

#define scrclng   4

Definition at line 441 of file r8192U.h.

#define TRUE   1

Definition at line 47 of file r8192U.h.

#define TX_PACKET_SHIFT_BYTES   (USB_HWDESC_HEADER_LEN + sizeof(tx_fwinfo_819x_usb))

Definition at line 427 of file r8192U.h.

#define TxBBGainTableLength   37

Definition at line 775 of file r8192U.h.

#define USB_HWDESC_HEADER_LEN   sizeof(tx_desc_819x_usb)

Definition at line 426 of file r8192U.h.

Typedef Documentation

typedef struct buffer buffer
typedef enum _RESET_TYPE RESET_TYPE
typedef enum rf_optype rf_op_type
typedef struct Stats Stats

Enumeration Type Documentation

Enumerator:
DESC_PACKET_TYPE_INIT 
DESC_PACKET_TYPE_NORMAL 

Definition at line 458 of file r8192U.h.

Enumerator:
FW_STATUS_0_INIT 
FW_STATUS_1_MOVE_BOOT_CODE 
FW_STATUS_2_MOVE_MAIN_CODE 
FW_STATUS_3_TURNON_CPU 
FW_STATUS_4_MOVE_DATA_CODE 
FW_STATUS_5_READY 

Definition at line 463 of file r8192U.h.

Enumerator:
SW_LED_MODE0 
SW_LED_MODE1 
SW_LED_MODE2 
SW_LED_MODE3 
SW_LED_MODE4 
HW_LED 

Definition at line 858 of file r8192U.h.

Enumerator:
RESET_TYPE_NORESET 
RESET_TYPE_NORMAL 
RESET_TYPE_SILENT 

Definition at line 867 of file r8192U.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 

Definition at line 836 of file r8192U.h.

Enumerator:
RF_TYPE_MIN 
RF_8225 
RF_8256 
RF_8258 
RF_PSEUDO_11N 

Definition at line 743 of file r8192U.h.

Enumerator:
RTL819xU_NO_LOOPBACK 
RTL819xU_MAC_LOOPBACK 
RTL819xU_DMA_LOOPBACK 
RTL819xU_CCK_LOOPBACK 

Definition at line 450 of file r8192U.h.

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 874 of file r8192U.h.

Enumerator:
WIRELESS_MODE_UNKNOWN 
WIRELESS_MODE_A 
WIRELESS_MODE_B 
WIRELESS_MODE_G 
WIRELESS_MODE_AUTO 
WIRELESS_MODE_UNKNOWN 
WIRELESS_MODE_A 
WIRELESS_MODE_B 
WIRELESS_MODE_G 
WIRELESS_MODE_AUTO 
WIRELESS_MODE_N_24G 
WIRELESS_MODE_N_5G 

Definition at line 549 of file r8192U.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 1197 of file r8192U.h.

enum priority_t
Enumerator:
BULK_PRIORITY 
LOW_PRIORITY 
NORM_PRIORITY 
VO_PRIORITY 
VI_PRIORITY 
BE_PRIORITY 
BK_PRIORITY 
RSVD2 
RSVD3 
BEACON_PRIORITY 
HIGH_PRIORITY 
MANAGE_PRIORITY 
RSVD4 
RSVD5 
UART_PRIORITY 

Definition at line 1177 of file r8192U.h.

enum rf_optype
Enumerator:
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_BY_SW_3WIRE 
RF_OP_BY_FW 
RF_OP_MAX 
RF_OP_By_SW_3wire 
RF_OP_By_FW 
RF_OP_MAX 
RF_OP_By_SW_3wire 
RF_OP_By_FW 
RF_OP_MAX 

Definition at line 443 of file r8192U.h.

Function Documentation

void EnableHWSecurityConfig8192 ( struct net_device dev)

ieee->hwsec_support) //add hwsec_support flag to totol control hw_sec on/off

Definition at line 52 of file rtl_cam.c.

void force_pci_posting ( struct net_device dev)
inline

Definition at line 201 of file r8180_core.c.

bool init_firmware ( struct net_device dev)

Definition at line 226 of file r8192E_firmware.c.

u32 read_cam ( struct net_device dev,
u8  addr 
)

Definition at line 46 of file rtl_cam.c.

u8 read_nic_byte ( struct net_device dev,
int  x 
)

Definition at line 168 of file r8180_core.c.

u8 read_nic_byte_E ( struct net_device dev,
int  x 
)

Definition at line 297 of file r8192U_core.c.

u32 read_nic_dword ( struct net_device dev,
int  x 
)

Definition at line 173 of file r8180_core.c.

u16 read_nic_word ( struct net_device dev,
int  x 
)

Definition at line 178 of file r8180_core.c.

void rtl8185_set_anaparam2 ( struct net_device dev,
u32  a 
)

Definition at line 3018 of file r8180_core.c.

void rtl8185_set_rf_pins_enable ( struct net_device dev,
u32  a 
)
void rtl8185_tx_antenna ( struct net_device dev,
u8  ant 
)

Definition at line 3048 of file r8180_core.c.

void rtl8192_commit ( struct net_device dev)

Definition at line 2523 of file rtl_core.c.

void rtl8192_disassociate ( struct net_device dev)
int rtl8192_down ( struct net_device dev)

Definition at line 4219 of file r8192U_core.c.

void rtl8192_rtx_disable ( struct net_device )

Definition at line 1030 of file r8192U_core.c.

void rtl8192_rx_enable ( struct net_device )

Definition at line 1797 of file rtl_core.c.

void rtl8192_set_anaparam ( struct net_device dev,
u32  a 
)
void rtl8192_set_chan ( struct net_device dev,
short  ch 
)

Definition at line 504 of file rtl_core.c.

void rtl8192_set_rxconf ( struct net_device dev)

Definition at line 958 of file r8192U_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_enable ( struct net_device )

Definition at line 1803 of file rtl_core.c.

int rtl8192_up ( struct net_device dev)

Definition at line 2485 of file rtl_core.c.

void rtl8192_update_msr ( struct net_device dev)

Definition at line 835 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 setKey ( struct net_device dev,
u8  EntryNo,
u8  KeyIndex,
u16  KeyType,
u8 MacAddr,
u8  DefaultKey,
u32 KeyContent 
)

Definition at line 101 of file rtl_cam.c.

void write_cam ( struct net_device dev,
u8  addr,
u32  data 
)

Definition at line 40 of file rtl_cam.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_byte_E ( struct net_device dev,
int  x,
u8  y 
)

Definition at line 281 of file r8192U_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_word ( struct net_device dev,
int  x,
u16  y 
)

Definition at line 195 of file r8180_core.c.

void write_phy ( struct net_device dev,
u8  adr,
u8  data 
)
void write_phy_cck ( struct net_device dev,
u8  adr,
u32  data 
)

Definition at line 3081 of file r8180_core.c.

void write_phy_ofdm ( struct net_device dev,
u8  adr,
u32  data 
)
inline

Definition at line 3075 of file r8180_core.c.

Variable Documentation

u32 rt_global_debug_component

Definition at line 56 of file rtllib_module.c.