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_dm.h File Reference

Go to the source code of this file.

Data Structures

struct  _dynamic_initial_gain_threshold_
 
struct  _Dynamic_Rx_Path_Selection_
 
struct  tag_Tx_Config_Cmd_Format
 

Macros

#define DM_DIG_THRESH_HIGH   40
 
#define DM_DIG_THRESH_LOW   35
 
#define DM_DIG_HIGH_PWR_THRESH_HIGH   75
 
#define DM_DIG_HIGH_PWR_THRESH_LOW   70
 
#define BW_AUTO_SWITCH_HIGH_LOW   25
 
#define BW_AUTO_SWITCH_LOW_HIGH   30
 
#define DM_check_fsync_time_interval   500
 
#define DM_DIG_BACKOFF   12
 
#define DM_DIG_MAX   0x36
 
#define DM_DIG_MIN   0x1c
 
#define DM_DIG_MIN_Netcore   0x12
 
#define RxPathSelection_SS_TH_low   30
 
#define RxPathSelection_diff_TH   18
 
#define RateAdaptiveTH_High   50
 
#define RateAdaptiveTH_Low_20M   30
 
#define RateAdaptiveTH_Low_40M   10
 
#define VeryLowRSSI   15
 
#define CTSToSelfTHVal   30
 
#define E_FOR_TX_POWER_TRACK   300
 
#define TX_POWER_NEAR_FIELD_THRESH_HIGH   68
 
#define TX_POWER_NEAR_FIELD_THRESH_LOW   62
 
#define TX_POWER_ATHEROAP_THRESH_HIGH   78
 
#define TX_POWER_ATHEROAP_THRESH_LOW   72
 
#define Current_Tx_Rate_Reg   0x1b8
 
#define Initial_Tx_Rate_Reg   0x1b9
 
#define Tx_Retry_Count_Reg   0x1ac
 
#define RegC38_TH   20
 

Typedefs

typedef struct
_dynamic_initial_gain_threshold_ 
dig_t
 
typedef enum
tag_dynamic_init_gain_state_definition 
dm_dig_sta_e
 
typedef enum
tag_dynamic_ratr_state_definition 
dm_ratr_sta_e
 
typedef enum
tag_dynamic_init_gain_operation_type_definition 
dm_dig_op_e
 
typedef enum
tag_dig_algorithm_definition 
dm_dig_alg_e
 
typedef enum
tag_dig_dbgmode_definition 
dm_dig_dbg_e
 
typedef enum
tag_dig_connect_definition 
dm_dig_connect_e
 
typedef enum
tag_dig_packetdetection_threshold_definition 
dm_dig_pd_th_e
 
typedef enum
tag_dig_cck_cs_ratio_state_definition 
dm_dig_cs_ratio_e
 
typedef struct
_Dynamic_Rx_Path_Selection_ 
DRxPathSel
 
typedef enum
tag_CCK_Rx_Path_Method_Definition 
DM_CCK_Rx_Path_Method
 
typedef enum
tag_DM_DbgMode_Definition 
DM_DBG_E
 
typedef struct
tag_Tx_Config_Cmd_Format 
DCMD_TXCMD_T
 
typedef struct
tag_Tx_Config_Cmd_Format
PDCMD_TXCMD_T
 

Enumerations

enum  tag_dynamic_init_gain_state_definition { DM_STA_DIG_OFF = 0, DM_STA_DIG_ON, DM_STA_DIG_MAX }
 
enum  tag_dynamic_ratr_state_definition { DM_RATR_STA_HIGH = 0, DM_RATR_STA_MIDDLE = 1, DM_RATR_STA_LOW = 2, DM_RATR_STA_MAX }
 
enum  tag_dynamic_init_gain_operation_type_definition {
  DIG_TYPE_THRESH_HIGH = 0, DIG_TYPE_THRESH_LOW = 1, DIG_TYPE_BACKOFF = 2, DIG_TYPE_RX_GAIN_MIN = 3,
  DIG_TYPE_RX_GAIN_MAX = 4, DIG_TYPE_ENABLE = 5, DIG_TYPE_DISABLE = 6, DIG_OP_TYPE_MAX,
  DIG_TYPE_THRESH_HIGH = 0, DIG_TYPE_THRESH_LOW = 1, DIG_TYPE_BACKOFF = 2, DIG_TYPE_RX_GAIN_MIN = 3,
  DIG_TYPE_RX_GAIN_MAX = 4, DIG_TYPE_ENABLE = 5, DIG_TYPE_DISABLE = 6, DIG_OP_TYPE_MAX,
  DIG_TYPE_THRESH_HIGH = 0, DIG_TYPE_THRESH_LOW = 1, DIG_TYPE_BACKOFF = 2, DIG_TYPE_RX_GAIN_MIN = 3,
  DIG_TYPE_RX_GAIN_MAX = 4, DIG_TYPE_ENABLE = 5, DIG_TYPE_DISABLE = 6, DIG_OP_TYPE_MAX,
  DIG_TYPE_THRESH_HIGH = 0, DIG_TYPE_THRESH_LOW = 1, DIG_TYPE_THRESH_HIGHPWR_HIGH = 2, DIG_TYPE_THRESH_HIGHPWR_LOW = 3,
  DIG_TYPE_DBG_MODE = 4, DIG_TYPE_RSSI = 5, DIG_TYPE_ALGORITHM = 6, DIG_TYPE_BACKOFF = 7,
  DIG_TYPE_PWDB_FACTOR = 8, DIG_TYPE_RX_GAIN_MIN = 9, DIG_TYPE_RX_GAIN_MAX = 10, DIG_TYPE_ENABLE = 20,
  DIG_TYPE_DISABLE = 30, DIG_OP_TYPE_MAX
}
 
enum  tag_dig_algorithm_definition { DIG_ALGO_BY_FALSE_ALARM = 0, DIG_ALGO_BY_RSSI = 1, DIG_ALGO_MAX }
 
enum  tag_dig_dbgmode_definition { DIG_DBG_OFF = 0, DIG_DBG_ON = 1, DIG_DBG_MAX }
 
enum  tag_dig_connect_definition { DIG_DISCONNECT = 0, DIG_CONNECT = 1, DIG_CONNECT_MAX }
 
enum  tag_dig_packetdetection_threshold_definition { DIG_PD_AT_LOW_POWER = 0, DIG_PD_AT_NORMAL_POWER = 1, DIG_PD_AT_HIGH_POWER = 2, DIG_PD_MAX }
 
enum  tag_dig_cck_cs_ratio_state_definition { DIG_CS_RATIO_LOWER = 0, DIG_CS_RATIO_HIGHER = 1, DIG_CS_MAX }
 
enum  tag_CCK_Rx_Path_Method_Definition { CCK_Rx_Version_1 = 0, CCK_Rx_Version_2 = 1, CCK_Rx_Version_MAX }
 
enum  tag_DM_DbgMode_Definition { DM_DBG_OFF = 0, DM_DBG_ON = 1, DM_DBG_MAX }
 

Functions

void init_hal_dm (struct net_device *dev)
 
void deinit_hal_dm (struct net_device *dev)
 
void hal_dm_watchdog (struct net_device *dev)
 
void init_rate_adaptive (struct net_device *dev)
 
void dm_txpower_trackingcallback (struct work_struct *work)
 
void dm_restore_dynamic_mechanism_state (struct net_device *dev)
 
void dm_backup_dynamic_mechanism_state (struct net_device *dev)
 
void dm_change_dynamic_initgain_thresh (struct net_device *dev, u32 dm_type, u32 dm_value)
 
void dm_force_tx_fw_info (struct net_device *dev, u32 force_type, u32 force_value)
 
void dm_init_edca_turbo (struct net_device *dev)
 
void dm_rf_operation_test_callback (unsigned long data)
 
void dm_rf_pathcheck_workitemcallback (struct work_struct *work)
 
void dm_fsync_timer_callback (unsigned long data)
 
void dm_cck_txpower_adjust (struct net_device *dev, bool binch14)
 
void dm_shadow_init (struct net_device *dev)
 
void dm_initialize_txpower_tracking (struct net_device *dev)
 

Variables

dig_t dm_digtable
 
u8 dm_shadow [16][256]
 
DRxPathSel DM_RxPathSelTable
 

Macro Definition Documentation

#define BW_AUTO_SWITCH_HIGH_LOW   25

Definition at line 31 of file r8192U_dm.h.

#define BW_AUTO_SWITCH_LOW_HIGH   30

Definition at line 32 of file r8192U_dm.h.

#define CTSToSelfTHVal   30

Definition at line 49 of file r8192U_dm.h.

#define Current_Tx_Rate_Reg   0x1b8

Definition at line 61 of file r8192U_dm.h.

#define DM_check_fsync_time_interval   500

Definition at line 34 of file r8192U_dm.h.

#define DM_DIG_BACKOFF   12

Definition at line 37 of file r8192U_dm.h.

#define DM_DIG_HIGH_PWR_THRESH_HIGH   75

Definition at line 28 of file r8192U_dm.h.

#define DM_DIG_HIGH_PWR_THRESH_LOW   70

Definition at line 29 of file r8192U_dm.h.

#define DM_DIG_MAX   0x36

Definition at line 38 of file r8192U_dm.h.

#define DM_DIG_MIN   0x1c

Definition at line 39 of file r8192U_dm.h.

#define DM_DIG_MIN_Netcore   0x12

Definition at line 40 of file r8192U_dm.h.

#define DM_DIG_THRESH_HIGH   40

Definition at line 25 of file r8192U_dm.h.

#define DM_DIG_THRESH_LOW   35

Definition at line 26 of file r8192U_dm.h.

#define E_FOR_TX_POWER_TRACK   300

Definition at line 52 of file r8192U_dm.h.

#define Initial_Tx_Rate_Reg   0x1b9

Definition at line 62 of file r8192U_dm.h.

#define RateAdaptiveTH_High   50

Definition at line 45 of file r8192U_dm.h.

#define RateAdaptiveTH_Low_20M   30

Definition at line 46 of file r8192U_dm.h.

#define RateAdaptiveTH_Low_40M   10

Definition at line 47 of file r8192U_dm.h.

#define RegC38_TH   20

Definition at line 64 of file r8192U_dm.h.

#define RxPathSelection_diff_TH   18

Definition at line 43 of file r8192U_dm.h.

#define RxPathSelection_SS_TH_low   30

Definition at line 42 of file r8192U_dm.h.

#define TX_POWER_ATHEROAP_THRESH_HIGH   78

Definition at line 57 of file r8192U_dm.h.

#define TX_POWER_ATHEROAP_THRESH_LOW   72

Definition at line 58 of file r8192U_dm.h.

#define TX_POWER_NEAR_FIELD_THRESH_HIGH   68

Definition at line 54 of file r8192U_dm.h.

#define TX_POWER_NEAR_FIELD_THRESH_LOW   62

Definition at line 55 of file r8192U_dm.h.

#define Tx_Retry_Count_Reg   0x1ac

Definition at line 63 of file r8192U_dm.h.

#define VeryLowRSSI   15

Definition at line 48 of file r8192U_dm.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
CCK_Rx_Version_1 
CCK_Rx_Version_2 
CCK_Rx_Version_MAX 

Definition at line 192 of file r8192U_dm.h.

Enumerator:
DIG_ALGO_BY_FALSE_ALARM 
DIG_ALGO_BY_RSSI 
DIG_ALGO_MAX 

Definition at line 140 of file r8192U_dm.h.

Enumerator:
DIG_CS_RATIO_LOWER 
DIG_CS_RATIO_HIGHER 
DIG_CS_MAX 

Definition at line 169 of file r8192U_dm.h.

Enumerator:
DIG_DISCONNECT 
DIG_CONNECT 
DIG_CONNECT_MAX 

Definition at line 154 of file r8192U_dm.h.

Enumerator:
DIG_DBG_OFF 
DIG_DBG_ON 
DIG_DBG_MAX 

Definition at line 147 of file r8192U_dm.h.

Enumerator:
DIG_PD_AT_LOW_POWER 
DIG_PD_AT_NORMAL_POWER 
DIG_PD_AT_HIGH_POWER 
DIG_PD_MAX 

Definition at line 161 of file r8192U_dm.h.

Enumerator:
DM_DBG_OFF 
DM_DBG_ON 
DM_DBG_MAX 

Definition at line 199 of file r8192U_dm.h.

Enumerator:
DIG_TYPE_THRESH_HIGH 
DIG_TYPE_THRESH_LOW 
DIG_TYPE_BACKOFF 
DIG_TYPE_RX_GAIN_MIN 
DIG_TYPE_RX_GAIN_MAX 
DIG_TYPE_ENABLE 
DIG_TYPE_DISABLE 
DIG_OP_TYPE_MAX 
DIG_TYPE_THRESH_HIGH 
DIG_TYPE_THRESH_LOW 
DIG_TYPE_BACKOFF 
DIG_TYPE_RX_GAIN_MIN 
DIG_TYPE_RX_GAIN_MAX 
DIG_TYPE_ENABLE 
DIG_TYPE_DISABLE 
DIG_OP_TYPE_MAX 
DIG_TYPE_THRESH_HIGH 
DIG_TYPE_THRESH_LOW 
DIG_TYPE_BACKOFF 
DIG_TYPE_RX_GAIN_MIN 
DIG_TYPE_RX_GAIN_MAX 
DIG_TYPE_ENABLE 
DIG_TYPE_DISABLE 
DIG_OP_TYPE_MAX 
DIG_TYPE_THRESH_HIGH 
DIG_TYPE_THRESH_LOW 
DIG_TYPE_THRESH_HIGHPWR_HIGH 
DIG_TYPE_THRESH_HIGHPWR_LOW 
DIG_TYPE_DBG_MODE 
DIG_TYPE_RSSI 
DIG_TYPE_ALGORITHM 
DIG_TYPE_BACKOFF 
DIG_TYPE_PWDB_FACTOR 
DIG_TYPE_RX_GAIN_MIN 
DIG_TYPE_RX_GAIN_MAX 
DIG_TYPE_ENABLE 
DIG_TYPE_DISABLE 
DIG_OP_TYPE_MAX 

Definition at line 122 of file r8192U_dm.h.

Enumerator:
DM_STA_DIG_OFF 
DM_STA_DIG_ON 
DM_STA_DIG_MAX 

Definition at line 104 of file r8192U_dm.h.

Enumerator:
DM_RATR_STA_HIGH 
DM_RATR_STA_MIDDLE 
DM_RATR_STA_LOW 
DM_RATR_STA_MAX 

Definition at line 113 of file r8192U_dm.h.

Function Documentation

void deinit_hal_dm ( struct net_device dev)

Definition at line 160 of file rtl_dm.c.

void dm_backup_dynamic_mechanism_state ( struct net_device dev)

Definition at line 1621 of file rtl_dm.c.

void dm_cck_txpower_adjust ( struct net_device dev,
bool  binch14 
)

Definition at line 1530 of file rtl_dm.c.

void dm_change_dynamic_initgain_thresh ( struct net_device dev,
u32  dm_type,
u32  dm_value 
)

Definition at line 1656 of file rtl_dm.c.

void dm_force_tx_fw_info ( struct net_device dev,
u32  force_type,
u32  force_value 
)
void dm_fsync_timer_callback ( unsigned long  data)

Definition at line 2587 of file rtl_dm.c.

void dm_init_edca_turbo ( struct net_device dev)

Definition at line 2099 of file rtl_dm.c.

void dm_initialize_txpower_tracking ( struct net_device dev)

Definition at line 1362 of file rtl_dm.c.

void dm_restore_dynamic_mechanism_state ( struct net_device dev)

Definition at line 1567 of file rtl_dm.c.

void dm_rf_operation_test_callback ( unsigned long  data)
void dm_rf_pathcheck_workitemcallback ( struct work_struct work)

Definition at line 2988 of file r8192U_dm.c.

void dm_shadow_init ( struct net_device dev)

Definition at line 2887 of file rtl_dm.c.

void dm_txpower_trackingcallback ( struct work_struct work)

Definition at line 934 of file r8192U_dm.c.

void hal_dm_watchdog ( struct net_device dev)

Definition at line 167 of file rtl_dm.c.

void init_hal_dm ( struct net_device dev)

Definition at line 137 of file rtl_dm.c.

void init_rate_adaptive ( struct net_device dev)

Definition at line 217 of file rtl_dm.c.

Variable Documentation

dig_t dm_digtable

Definition at line 67 of file rtl_dm.c.

DRxPathSel DM_RxPathSelTable

Definition at line 72 of file rtl_dm.c.

u8 dm_shadow[16][256]

Definition at line 68 of file rtl_dm.c.