Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
r8192U_dm.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright(c) 2007, RealTEK Technology Inc. All Right Reserved.
3  *
4  * Module: Hal819xUsbDM.h (RTL8192 Header H File)
5  *
6  *
7  * Note: For dynamic control definition constant structure.
8  *
9  *
10  * Export:
11  *
12  * Abbrev:
13  *
14  * History:
15  * Data Who Remark
16  * 10/04/2007 MHC Create initial version.
17  *
18  *****************************************************************************/
19  /* Check to see if the file has been included already. */
20 #ifndef __R8192UDM_H__
21 #define __R8192UDM_H__
22 
23 
24 /*--------------------------Define Parameters-------------------------------*/
25 #define DM_DIG_THRESH_HIGH 40
26 #define DM_DIG_THRESH_LOW 35
27 
28 #define DM_DIG_HIGH_PWR_THRESH_HIGH 75
29 #define DM_DIG_HIGH_PWR_THRESH_LOW 70
30 
31 #define BW_AUTO_SWITCH_HIGH_LOW 25
32 #define BW_AUTO_SWITCH_LOW_HIGH 30
33 
34 #define DM_check_fsync_time_interval 500
35 
36 
37 #define DM_DIG_BACKOFF 12
38 #define DM_DIG_MAX 0x36
39 #define DM_DIG_MIN 0x1c
40 #define DM_DIG_MIN_Netcore 0x12
41 
42 #define RxPathSelection_SS_TH_low 30
43 #define RxPathSelection_diff_TH 18
44 
45 #define RateAdaptiveTH_High 50
46 #define RateAdaptiveTH_Low_20M 30
47 #define RateAdaptiveTH_Low_40M 10
48 #define VeryLowRSSI 15
49 #define CTSToSelfTHVal 30
50 
51 //defined by vivi, for tx power track
52 #define E_FOR_TX_POWER_TRACK 300
53 //Dynamic Tx Power Control Threshold
54 #define TX_POWER_NEAR_FIELD_THRESH_HIGH 68
55 #define TX_POWER_NEAR_FIELD_THRESH_LOW 62
56 //added by amy for atheros AP
57 #define TX_POWER_ATHEROAP_THRESH_HIGH 78
58 #define TX_POWER_ATHEROAP_THRESH_LOW 72
59 
60 //defined by vivi, for showing on UI
61 #define Current_Tx_Rate_Reg 0x1b8
62 #define Initial_Tx_Rate_Reg 0x1b9
63 #define Tx_Retry_Count_Reg 0x1ac
64 #define RegC38_TH 20
65 /*--------------------------Define Parameters-------------------------------*/
66 
67 
68 /*------------------------------Define structure----------------------------*/
69 /* 2007/10/04 MH Define upper and lower threshold of DIG enable or disable. */
71 {
76 
79 
82 
87 
92 
95 
100 
101  long rssi_val;
102 }dig_t;
103 
105 {
109 }dm_dig_sta_e;
110 
111 
112 /* 2007/10/08 MH Define RATR state. */
114 {
120 
121 /* 2007/10/11 MH Define DIG operation type. */
123 {
138 }dm_dig_op_e;
139 
141 {
145 }dm_dig_alg_e;
146 
148 {
152 }dm_dig_dbg_e;
153 
155 {
160 
162 {
168 
170 {
176 {
181 
186 
189  long cck_pwdb_sta[4];
190 }DRxPathSel;
191 
193 {
198 
200 {
204 }DM_DBG_E;
205 
207 {
208  u32 Op; /* Command packet type. */
209  u32 Length; /* Command packet length. */
212 /*------------------------------Define structure----------------------------*/
213 
214 
215 /*------------------------Export global variable----------------------------*/
216 extern dig_t dm_digtable;
217 extern u8 dm_shadow[16][256];
219 /*------------------------Export global variable----------------------------*/
220 
221 
222 /*------------------------Export Marco Definition---------------------------*/
223 
224 /*------------------------Export Marco Definition---------------------------*/
225 
226 
227 /*--------------------------Exported Function prototype---------------------*/
228 extern void init_hal_dm(struct net_device *dev);
229 extern void deinit_hal_dm(struct net_device *dev);
230 
231 extern void hal_dm_watchdog(struct net_device *dev);
232 
233 extern void init_rate_adaptive(struct net_device *dev);
234 extern void dm_txpower_trackingcallback(struct work_struct *work);
238  u32 dm_type, u32 dm_value);
239 extern void dm_force_tx_fw_info(struct net_device *dev,u32 force_type, u32 force_value);
240 extern void dm_init_edca_turbo(struct net_device *dev);
241 extern void dm_rf_operation_test_callback(unsigned long data);
243 extern void dm_fsync_timer_callback(unsigned long data);
244 extern void dm_cck_txpower_adjust(struct net_device *dev,bool binch14);
245 extern void dm_shadow_init(struct net_device *dev);
246 extern void dm_initialize_txpower_tracking(struct net_device *dev);
247 /*--------------------------Exported Function prototype---------------------*/
248 
249 
250 #endif /*__R8192UDM_H__ */
251 
252 
253 /* End of r8192U_dm.h */
254