phydm_pow_train.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 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. #ifndef __PHYDM_POW_TRAIN_H__
  26. #define __PHYDM_POW_TRAIN_H__
  27. #define POW_TRAIN_VERSION "1.0" /* @2017.07.0141 Dino, Add phydm_pow_train.h*/
  28. /****************************************************************
  29. * 1 ============================================================
  30. * 1 Definition
  31. * 1 ============================================================
  32. ***************************************************************/
  33. #ifdef PHYDM_POWER_TRAINING_SUPPORT
  34. /****************************************************************
  35. * 1 ============================================================
  36. * 1 structure
  37. * 1 ============================================================
  38. ***************************************************************/
  39. struct phydm_pow_train_stuc {
  40. u8 pt_state;
  41. u32 pow_train_score;
  42. };
  43. /****************************************************************
  44. * 1 ============================================================
  45. * 1 enumeration
  46. * 1 ============================================================
  47. ***************************************************************/
  48. enum pow_train_state {
  49. DYNAMIC_POW_TRAIN = 0,
  50. ENABLE_POW_TRAIN = 1,
  51. DISABLE_POW_TRAIN = 2
  52. };
  53. enum power_training_score {
  54. DISABLE_PT_SCORE = 0,
  55. KEEP_PRE_PT_SCORE = 1,
  56. ENABLE_PT_SCORE = 2
  57. };
  58. /****************************************************************
  59. * 1 ============================================================
  60. * 1 function prototype
  61. * 1 ============================================================
  62. ***************************************************************/
  63. void phydm_update_power_training_state(
  64. void *dm_void);
  65. void phydm_pow_train_debug(
  66. void *dm_void,
  67. char input[][16],
  68. u32 *_used,
  69. char *output,
  70. u32 *_out_len);
  71. #endif
  72. #endif