1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2016 Realtek Corporation. 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 * The full GNU General Public License is included in this distribution in the 15 * file called LICENSE. 16 * 17 * Contact Information: 18 * wlanfae <wlanfae@realtek.com> 19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 * Hsinchu 300, Taiwan. 21 * 22 * Larry Finger <Larry.Finger@lwfinger.net> 23 * 24 *****************************************************************************/ 25 26 #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__ 27 #define __PHYDMDYNAMICBBPOWERSAVING_H__ 28 29 #define DYNAMIC_BBPWRSAV_VERSION "1.1" 30 31 struct dyn_pwr_saving { 32 u8 pre_cca_state; 33 u8 cur_cca_state; 34 35 u8 pre_rf_state; 36 u8 cur_rf_state; 37 38 int rssi_val_min; 39 40 u8 initialize; 41 u32 reg874, regc70, reg85c, rega74; 42 }; 43 44 #define dm_rf_saving odm_rf_saving 45 46 void odm_rf_saving(void *dm_void, u8 is_force_in_normal); 47 48 void odm_dynamic_bb_power_saving_init(void *dm_void); 49 50 #endif 51