phydm_hwconfig.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 __HALHWOUTSRC_H__
  26. #define __HALHWOUTSRC_H__
  27. /*@--------------------------Define -------------------------------------------*/
  28. #define AGC_DIFF_CONFIG_MP(ic, band) \
  29. (odm_read_and_config_mp_##ic##_agc_tab_diff(dm, \
  30. array_mp_##ic##_agc_tab_diff_##band, \
  31. sizeof(array_mp_##ic##_agc_tab_diff_##band) / sizeof(u32)))
  32. #define AGC_DIFF_CONFIG_TC(ic, band) \
  33. (odm_read_and_config_tc_##ic##_agc_tab_diff(dm, \
  34. array_tc_##ic##_agc_tab_diff_##band, \
  35. sizeof(array_tc_##ic##_agc_tab_diff_##band) / sizeof(u32)))
  36. #if defined(DM_ODM_CE_MAC80211)
  37. #else
  38. #define AGC_DIFF_CONFIG(ic, band) \
  39. do { \
  40. if (dm->is_mp_chip) \
  41. AGC_DIFF_CONFIG_MP(ic, band); \
  42. else \
  43. AGC_DIFF_CONFIG_TC(ic, band); \
  44. } while (0)
  45. #endif
  46. /*@************************************************************
  47. * structure and define
  48. ************************************************************/
  49. enum hal_status
  50. odm_config_rf_with_tx_pwr_track_header_file(struct dm_struct *dm);
  51. enum hal_status
  52. odm_config_rf_with_header_file(struct dm_struct *dm,
  53. enum odm_rf_config_type config_type,
  54. u8 e_rf_path);
  55. enum hal_status
  56. odm_config_bb_with_header_file(struct dm_struct *dm,
  57. enum odm_bb_config_type config_type);
  58. enum hal_status
  59. odm_config_mac_with_header_file(struct dm_struct *dm);
  60. u32 odm_get_hw_img_version(struct dm_struct *dm);
  61. u32 query_phydm_trx_capability(struct dm_struct *dm);
  62. u32 query_phydm_stbc_capability(struct dm_struct *dm);
  63. u32 query_phydm_ldpc_capability(struct dm_struct *dm);
  64. u32 query_phydm_txbf_parameters(struct dm_struct *dm);
  65. u32 query_phydm_txbf_capability(struct dm_struct *dm);
  66. #endif /*@#ifndef __HALHWOUTSRC_H__*/