Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
dm.h File Reference

Go to the source code of this file.

Macros

#define DM_TYPE_BYFW   0
 
#define DM_TYPE_BYDRIVER   1
 
#define TX_HIGH_PWR_LEVEL_NORMAL   0
 
#define TX_HIGH_PWR_LEVEL_LEVEL1   1
 
#define TX_HIGH_PWR_LEVEL_LEVEL2   2
 
#define HAL_DM_DIG_DISABLE   BIT(0) /* Disable Dig */
 
#define HAL_DM_HIPWR_DISABLE   BIT(1) /* Disable High Power */
 
#define TX_HIGHPWR_LEVEL_NORMAL   0
 
#define TX_HIGHPWR_LEVEL_NORMAL1   1
 
#define TX_HIGHPWR_LEVEL_NORMAL2   2
 
#define TX_POWER_NEAR_FIELD_THRESH_LVL2   74
 
#define TX_POWER_NEAR_FIELD_THRESH_LVL1   67
 
#define DM_DIG_THRESH_HIGH   40
 
#define DM_DIG_THRESH_LOW   35
 
#define DM_FALSEALARM_THRESH_LOW   40
 
#define DM_FALSEALARM_THRESH_HIGH   1000
 
#define DM_DIG_HIGH_PWR_THRESH_HIGH   75
 
#define DM_DIG_HIGH_PWR_THRESH_LOW   70
 
#define DM_DIG_BACKOFF   12
 
#define DM_DIG_MAX   0x3e
 
#define DM_DIG_MIN   0x1c
 
#define DM_DIG_MIN_Netcore   0x12
 
#define DM_DIG_BACKOFF_MAX   12
 
#define DM_DIG_BACKOFF_MIN   -4
 

Enumerations

enum  dm_dig_alg {
  DIG_ALGO_BY_FALSE_ALARM = 0, DIG_ALGO_BY_RSSI = 1, DIG_ALGO_BEFORE_CONNECT_BY_RSSI_AND_ALARM = 2, DIG_ALGO_BY_TOW_PORT = 3,
  DIG_ALGO_MAX, DIG_ALGO_BY_FALSE_ALARM = 0, DIG_ALGO_BY_RSSI = 1, DIG_ALGO_BEFORE_CONNECT_BY_RSSI_AND_ALARM = 2,
  DIG_ALGO_BY_TOW_PORT = 3, DIG_ALGO_MAX
}
 
enum  dm_dig_two_port_alg { DIG_TWO_PORT_ALGO_RSSI = 0, DIG_TWO_PORT_ALGO_FALSE_ALARM = 1, DIG_TWO_PORT_ALGO_RSSI = 0, DIG_TWO_PORT_ALGO_FALSE_ALARM = 1 }
 
enum  dm_dig_dbg {
  DM_DBG_OFF = 0, DM_DBG_ON = 1, DM_DBG_MAX, DIG_DBG_OFF = 0,
  DIG_DBG_ON = 1, DIG_DBG_MAX
}
 
enum  dm_dig_sta {
  DM_STA_DIG_OFF = 0, DM_STA_DIG_ON, DM_STA_DIG_MAX, DM_STA_DIG_OFF = 0,
  DM_STA_DIG_ON, DM_STA_DIG_MAX
}
 
enum  dm_dig_connect {
  DIG_STA_DISCONNECT = 0, DIG_STA_CONNECT = 1, DIG_STA_BEFORE_CONNECT = 2, DIG_MULTISTA_DISCONNECT = 3,
  DIG_MULTISTA_CONNECT = 4, DIG_CONNECT_MAX, DIG_STA_DISCONNECT = 0, DIG_STA_CONNECT = 1,
  DIG_STA_BEFORE_CONNECT = 2, DIG_AP_DISCONNECT = 3, DIG_AP_CONNECT = 4, DIG_AP_ADD_STATION = 5,
  DIG_CONNECT_MAX, DIG_STA_DISCONNECT = 0, DIG_STA_CONNECT = 1, DIG_STA_BEFORE_CONNECT = 2,
  DIG_AP_DISCONNECT = 3, DIG_AP_CONNECT = 4, DIG_AP_ADD_STATION = 5, DIG_CONNECT_MAX
}
 
enum  dm_dig_ext_port_alg {
  DIG_EXT_PORT_STAGE_0 = 0, DIG_EXT_PORT_STAGE_1 = 1, DIG_EXT_PORT_STAGE_2 = 2, DIG_EXT_PORT_STAGE_3 = 3,
  DIG_EXT_PORT_STAGE_MAX = 4, DIG_EXT_PORT_STAGE_0 = 0, DIG_EXT_PORT_STAGE_1 = 1, DIG_EXT_PORT_STAGE_2 = 2,
  DIG_EXT_PORT_STAGE_3 = 3, DIG_EXT_PORT_STAGE_MAX = 4, DIG_EXT_PORT_STAGE_0 = 0, DIG_EXT_PORT_STAGE_1 = 1,
  DIG_EXT_PORT_STAGE_2 = 2, DIG_EXT_PORT_STAGE_3 = 3, DIG_EXT_PORT_STAGE_MAX = 4
}
 
enum  dm_ratr_sta {
  DM_RATR_STA_HIGH = 0, DM_RATR_STA_MIDDLEHIGH = 1, DM_RATR_STA_MIDDLE = 2, DM_RATR_STA_MIDDLELOW = 3,
  DM_RATR_STA_LOW = 4, DM_RATR_STA_ULTRALOW = 5, DM_RATR_STA_MAX, DM_RATR_STA_HIGH = 0,
  DM_RATR_STA_MIDDLE = 1, DM_RATR_STA_LOW = 2, DM_RATR_STA_MAX
}
 

Functions

void rtl92s_dm_watchdog (struct ieee80211_hw *hw)
 
void rtl92s_dm_init (struct ieee80211_hw *hw)
 
void rtl92s_dm_init_edca_turbo (struct ieee80211_hw *hw)
 

Macro Definition Documentation

#define DM_DIG_BACKOFF   12

Definition at line 108 of file dm.h.

#define DM_DIG_BACKOFF_MAX   12

Definition at line 112 of file dm.h.

#define DM_DIG_BACKOFF_MIN   -4

Definition at line 113 of file dm.h.

#define DM_DIG_HIGH_PWR_THRESH_HIGH   75

Definition at line 106 of file dm.h.

#define DM_DIG_HIGH_PWR_THRESH_LOW   70

Definition at line 107 of file dm.h.

#define DM_DIG_MAX   0x3e

Definition at line 109 of file dm.h.

#define DM_DIG_MIN   0x1c

Definition at line 110 of file dm.h.

#define DM_DIG_MIN_Netcore   0x12

Definition at line 111 of file dm.h.

#define DM_DIG_THRESH_HIGH   40

Definition at line 102 of file dm.h.

#define DM_DIG_THRESH_LOW   35

Definition at line 103 of file dm.h.

#define DM_FALSEALARM_THRESH_HIGH   1000

Definition at line 105 of file dm.h.

#define DM_FALSEALARM_THRESH_LOW   40

Definition at line 104 of file dm.h.

#define DM_TYPE_BYDRIVER   1

Definition at line 86 of file dm.h.

#define DM_TYPE_BYFW   0

Definition at line 85 of file dm.h.

#define HAL_DM_DIG_DISABLE   BIT(0) /* Disable Dig */

Definition at line 92 of file dm.h.

#define HAL_DM_HIPWR_DISABLE   BIT(1) /* Disable High Power */

Definition at line 93 of file dm.h.

#define TX_HIGH_PWR_LEVEL_LEVEL1   1

Definition at line 89 of file dm.h.

#define TX_HIGH_PWR_LEVEL_LEVEL2   2

Definition at line 90 of file dm.h.

#define TX_HIGH_PWR_LEVEL_NORMAL   0

Definition at line 88 of file dm.h.

#define TX_HIGHPWR_LEVEL_NORMAL   0

Definition at line 95 of file dm.h.

#define TX_HIGHPWR_LEVEL_NORMAL1   1

Definition at line 96 of file dm.h.

#define TX_HIGHPWR_LEVEL_NORMAL2   2

Definition at line 97 of file dm.h.

#define TX_POWER_NEAR_FIELD_THRESH_LVL1   67

Definition at line 100 of file dm.h.

#define TX_POWER_NEAR_FIELD_THRESH_LVL2   74

Definition at line 99 of file dm.h.

Enumeration Type Documentation

enum dm_dig_alg
Enumerator:
DIG_ALGO_BY_FALSE_ALARM 
DIG_ALGO_BY_RSSI 
DIG_ALGO_BEFORE_CONNECT_BY_RSSI_AND_ALARM 
DIG_ALGO_BY_TOW_PORT 
DIG_ALGO_MAX 
DIG_ALGO_BY_FALSE_ALARM 
DIG_ALGO_BY_RSSI 
DIG_ALGO_BEFORE_CONNECT_BY_RSSI_AND_ALARM 
DIG_ALGO_BY_TOW_PORT 
DIG_ALGO_MAX 

Definition at line 32 of file dm.h.

Enumerator:
DIG_STA_DISCONNECT 
DIG_STA_CONNECT 
DIG_STA_BEFORE_CONNECT 
DIG_MULTISTA_DISCONNECT 
DIG_MULTISTA_CONNECT 
DIG_CONNECT_MAX 
DIG_STA_DISCONNECT 
DIG_STA_CONNECT 
DIG_STA_BEFORE_CONNECT 
DIG_AP_DISCONNECT 
DIG_AP_CONNECT 
DIG_AP_ADD_STATION 
DIG_CONNECT_MAX 
DIG_STA_DISCONNECT 
DIG_STA_CONNECT 
DIG_STA_BEFORE_CONNECT 
DIG_AP_DISCONNECT 
DIG_AP_CONNECT 
DIG_AP_ADD_STATION 
DIG_CONNECT_MAX 

Definition at line 57 of file dm.h.

enum dm_dig_dbg
Enumerator:
DM_DBG_OFF 
DM_DBG_ON 
DM_DBG_MAX 
DIG_DBG_OFF 
DIG_DBG_ON 
DIG_DBG_MAX 

Definition at line 45 of file dm.h.

Enumerator:
DIG_EXT_PORT_STAGE_0 
DIG_EXT_PORT_STAGE_1 
DIG_EXT_PORT_STAGE_2 
DIG_EXT_PORT_STAGE_3 
DIG_EXT_PORT_STAGE_MAX 
DIG_EXT_PORT_STAGE_0 
DIG_EXT_PORT_STAGE_1 
DIG_EXT_PORT_STAGE_2 
DIG_EXT_PORT_STAGE_3 
DIG_EXT_PORT_STAGE_MAX 
DIG_EXT_PORT_STAGE_0 
DIG_EXT_PORT_STAGE_1 
DIG_EXT_PORT_STAGE_2 
DIG_EXT_PORT_STAGE_3 
DIG_EXT_PORT_STAGE_MAX 

Definition at line 67 of file dm.h.

enum dm_dig_sta
Enumerator:
DM_STA_DIG_OFF 
DM_STA_DIG_ON 
DM_STA_DIG_MAX 
DM_STA_DIG_OFF 
DM_STA_DIG_ON 
DM_STA_DIG_MAX 

Definition at line 51 of file dm.h.

Enumerator:
DIG_TWO_PORT_ALGO_RSSI 
DIG_TWO_PORT_ALGO_FALSE_ALARM 
DIG_TWO_PORT_ALGO_RSSI 
DIG_TWO_PORT_ALGO_FALSE_ALARM 

Definition at line 40 of file dm.h.

Enumerator:
DM_RATR_STA_HIGH 
DM_RATR_STA_MIDDLEHIGH 
DM_RATR_STA_MIDDLE 
DM_RATR_STA_MIDDLELOW 
DM_RATR_STA_LOW 
DM_RATR_STA_ULTRALOW 
DM_RATR_STA_MAX 
DM_RATR_STA_HIGH 
DM_RATR_STA_MIDDLE 
DM_RATR_STA_LOW 
DM_RATR_STA_MAX 

Definition at line 75 of file dm.h.

Function Documentation

void rtl92s_dm_init ( struct ieee80211_hw hw)

Definition at line 707 of file dm.c.

void rtl92s_dm_init_edca_turbo ( struct ieee80211_hw hw)

Definition at line 358 of file dm.c.

void rtl92s_dm_watchdog ( struct ieee80211_hw hw)

Definition at line 723 of file dm.c.