Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_hwconfig.h
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13* The full GNU General Public License is included in this distribution in the14* file called LICENSE.15*16* Contact Information:17* wlanfae <[email protected]>18* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,19* Hsinchu 300, Taiwan.20*21* Larry Finger <[email protected]>22*23*****************************************************************************/2425#ifndef __HALHWOUTSRC_H__26#define __HALHWOUTSRC_H__2728/*@--------------------------Define -------------------------------------------*/29#define AGC_DIFF_CONFIG_MP(ic, band) \30(odm_read_and_config_mp_##ic##_agc_tab_diff(dm, \31array_mp_##ic##_agc_tab_diff_##band, \32sizeof(array_mp_##ic##_agc_tab_diff_##band) / sizeof(u32)))33#define AGC_DIFF_CONFIG_TC(ic, band) \34(odm_read_and_config_tc_##ic##_agc_tab_diff(dm, \35array_tc_##ic##_agc_tab_diff_##band, \36sizeof(array_tc_##ic##_agc_tab_diff_##band) / sizeof(u32)))37#if defined(DM_ODM_CE_MAC80211)38#else39#define AGC_DIFF_CONFIG(ic, band) \40do { \41if (dm->is_mp_chip) \42AGC_DIFF_CONFIG_MP(ic, band); \43else \44AGC_DIFF_CONFIG_TC(ic, band); \45} while (0)46#endif47/*@************************************************************48* structure and define49************************************************************/5051enum hal_status52odm_config_rf_with_tx_pwr_track_header_file(struct dm_struct *dm);5354enum hal_status55odm_config_rf_with_header_file(struct dm_struct *dm,56enum odm_rf_config_type config_type,57u8 e_rf_path);5859enum hal_status60odm_config_bb_with_header_file(struct dm_struct *dm,61enum odm_bb_config_type config_type);6263enum hal_status64odm_config_mac_with_header_file(struct dm_struct *dm);6566u32 odm_get_hw_img_version(struct dm_struct *dm);6768u32 query_phydm_trx_capability(struct dm_struct *dm);6970u32 query_phydm_stbc_capability(struct dm_struct *dm);7172u32 query_phydm_ldpc_capability(struct dm_struct *dm);7374u32 query_phydm_txbf_parameters(struct dm_struct *dm);7576u32 query_phydm_txbf_capability(struct dm_struct *dm);7778#endif /*@#ifndef __HALHWOUTSRC_H__*/798081