net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / hal / phydm / phydm_dynamicbbpowersaving.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20
21 #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__
22 #define    __PHYDMDYNAMICBBPOWERSAVING_H__
23
24 #define DYNAMIC_BBPWRSAV_VERSION        "1.1"
25
26 #if (defined(CONFIG_BB_POWER_SAVING))
27
28 struct _dynamic_power_saving {
29         u8              pre_cca_state;
30         u8              cur_cca_state;
31
32         u8              pre_rf_state;
33         u8              cur_rf_state;
34
35         int                 rssi_val_min;
36
37         u8              initialize;
38         u32             reg874, regc70, reg85c, rega74;
39
40 };
41
42 #define dm_rf_saving    odm_rf_saving
43
44 void odm_rf_saving(
45         void                                    *p_dm_void,
46         u8              is_force_in_normal
47 );
48
49 void
50 odm_dynamic_bb_power_saving_init(
51         void                                    *p_dm_void
52 );
53 #else
54 #define dm_rf_saving(p_dm_void, is_force_in_normal)
55 #endif
56
57 #endif