1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2016  Realtek Corporation.
5  *
6  * Contact Information:
7  * wlanfae <wlanfae@realtek.com>
8  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9  * Hsinchu 300, Taiwan.
10  *
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  *****************************************************************************/
14 
15 #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__
16 #define __PHYDMDYNAMICBBPOWERSAVING_H__
17 
18 #define DYNAMIC_BBPWRSAV_VERSION "1.1"
19 
20 struct dyn_pwr_saving {
21 	u8 pre_cca_state;
22 	u8 cur_cca_state;
23 
24 	u8 pre_rf_state;
25 	u8 cur_rf_state;
26 
27 	int rssi_val_min;
28 
29 	u8 initialize;
30 	u32 reg874, regc70, reg85c, rega74;
31 };
32 
33 #define dm_rf_saving odm_rf_saving
34 
35 void odm_rf_saving(void *dm_void, u8 is_force_in_normal);
36 
37 void odm_dynamic_bb_power_saving_init(void *dm_void);
38 
39 #endif
40