phydm_dynamicbbpowersaving.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__
  21. #define __PHYDMDYNAMICBBPOWERSAVING_H__
  22. #define DYNAMIC_BBPWRSAV_VERSION "1.1"
  23. #if (defined(CONFIG_BB_POWER_SAVING))
  24. struct _dynamic_power_saving {
  25. u8 pre_cca_state;
  26. u8 cur_cca_state;
  27. u8 pre_rf_state;
  28. u8 cur_rf_state;
  29. int rssi_val_min;
  30. u8 initialize;
  31. u32 reg874, regc70, reg85c, rega74;
  32. };
  33. #define dm_rf_saving odm_rf_saving
  34. void odm_rf_saving(
  35. void *p_dm_void,
  36. u8 is_force_in_normal
  37. );
  38. void
  39. odm_dynamic_bb_power_saving_init(
  40. void *p_dm_void
  41. );
  42. #else
  43. #define dm_rf_saving(p_dm_void, is_force_in_normal)
  44. #endif
  45. #endif