phydm_mp.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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_MP_H__
  26. #define __PHYDM_MP_H__
  27. #define MP_VERSION "1.0"
  28. /* @1 ============================================================
  29. * 1 Definition
  30. * 1 ============================================================
  31. */
  32. /* @1 ============================================================
  33. * 1 structure
  34. * 1 ============================================================
  35. */
  36. struct phydm_mp {
  37. /* @Rx OK count, statistics used in Mass Production Test.*/
  38. u64 tx_phy_ok_cnt;
  39. u64 rx_phy_ok_cnt;
  40. /* @Rx CRC32 error count, statistics used in Mass Production Test.*/
  41. u64 rx_phy_crc_err_cnt;
  42. /* @The Value of IO operation is depend of MptActType.*/
  43. u32 io_value;
  44. u32 rf_reg0;
  45. /* @u32 rfe_sel_a_0;*/
  46. /* @u32 rfe_sel_b_0;*/
  47. /* @u32 rfe_sel_c_0;*/
  48. /* @u32 rfe_sel_d_0;*/
  49. /* @u32 rfe_sel_a_1;*/
  50. /* @u32 rfe_sel_b_1;*/
  51. /* @u32 rfe_sel_c_1;*/
  52. /* @u32 rfe_sel_d_1;*/
  53. };
  54. /* @1 ============================================================
  55. * 1 enumeration
  56. * 1 ============================================================
  57. */
  58. enum TX_MODE_OFDM {
  59. OFDM_OFF = 0,
  60. OFDM_CONT_TX = 1,
  61. OFDM_SINGLE_CARRIER = 2,
  62. OFDM_SINGLE_TONE = 4,
  63. };
  64. /* @1 ============================================================
  65. * 1 function prototype
  66. * 1 ============================================================
  67. */
  68. #ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
  69. void phydm_mp_set_single_tone_jgr3(void *dm_void, boolean is_single_tone,
  70. u8 path);
  71. void phydm_mp_set_carrier_supp_jgr3(void *dm_void, boolean is_carrier_supp,
  72. u32 rate_index);
  73. #endif
  74. void phydm_mp_set_crystal_cap(void *dm_void, u8 crystal_cap);
  75. void phydm_mp_set_single_tone(void *dm_void, boolean is_single_tone, u8 path);
  76. void phydm_mp_set_carrier_supp(void *dm_void, boolean is_carrier_supp,
  77. u32 rate_index);
  78. void phydm_mp_set_single_carrier(void *dm_void, boolean is_single_carrier);
  79. void phydm_mp_reset_rx_counters_phy(void *dm_void);
  80. void phydm_mp_get_tx_ok(void *dm_void, u32 rate_index);
  81. void phydm_mp_get_rx_ok(void *dm_void);
  82. #endif