Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 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 __ODM_RTL8188E_H__ |
| 21 | #define __ODM_RTL8188E_H__ |
| 22 | |
| 23 | #define MAIN_ANT 0 |
| 24 | #define AUX_ANT 1 |
| 25 | #define MAIN_ANT_CG_TRX 1 |
| 26 | #define AUX_ANT_CG_TRX 0 |
| 27 | #define MAIN_ANT_CGCS_RX 0 |
| 28 | #define AUX_ANT_CGCS_RX 1 |
| 29 | |
| 30 | void ODM_DIG_LowerBound_88E(struct odm_dm_struct *pDM_Odm); |
| 31 | |
navin patidar | db0ccda | 2014-09-20 19:55:52 +0530 | [diff] [blame] | 32 | void rtl88eu_dm_antenna_div_init(struct odm_dm_struct *dm_odm); |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 33 | |
navin patidar | 8f4ece9 | 2014-09-20 19:55:58 +0530 | [diff] [blame] | 34 | void rtl88eu_dm_antenna_diversity(struct odm_dm_struct *dm_odm); |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 35 | |
navin patidar | 6b26b75 | 2014-09-20 19:55:55 +0530 | [diff] [blame] | 36 | void rtl88eu_dm_set_tx_ant_by_tx_info(struct odm_dm_struct *dm_odm, u8 *desc, |
| 37 | u8 mac_id); |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 38 | |
navin patidar | 052a806 | 2014-09-20 19:55:53 +0530 | [diff] [blame] | 39 | void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant); |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 40 | |
navin patidar | 5c45dde | 2014-09-20 19:55:56 +0530 | [diff] [blame] | 41 | void rtl88eu_dm_ant_sel_statistics(struct odm_dm_struct *dm_odm, u8 antsel_tr_mux, |
| 42 | u32 mac_id, u8 rx_pwdb_all); |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 43 | |
| 44 | void odm_FastAntTraining(struct odm_dm_struct *pDM_Odm); |
| 45 | |
| 46 | void odm_FastAntTrainingCallback(struct odm_dm_struct *pDM_Odm); |
| 47 | |
| 48 | void odm_FastAntTrainingWorkItemCallback(struct odm_dm_struct *pDM_Odm); |
| 49 | |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 50 | bool ODM_DynamicPrimaryCCA_DupRTS(struct odm_dm_struct *pDM_Odm); |
| 51 | |
Larry Finger | f9f08d7 | 2013-08-21 22:34:06 -0500 | [diff] [blame] | 52 | #endif |