net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / hal / phydm / txbf / phydm_hal_txbf_api.h
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 /*You should have received a copy of the GNU General Public License along with*/
14 /*this program; if not, write to the Free Software Foundation, Inc.,*/
15 /*51 Franklin Street, Fifth Floor, Boston, MA 02110, USA*/
16 /**/
17 /**/
18 /********************************************************************************/
19 #ifndef __PHYDM_HAL_TXBF_API_H__
20 #define __PHYDM_HAL_TXBF_API_H__
21
22 #if (defined(CONFIG_BB_TXBF_API))
23
24 #if (DM_ODM_SUPPORT_TYPE != ODM_AP)
25 #define tx_bf_nr(a, b) ((a > b) ? (b) : (a))
26
27 u8
28 beamforming_get_htndp_tx_rate(
29         void    *p_dm_void,
30         u8      comp_steering_num_of_bfer
31 );
32
33 u8
34 beamforming_get_vht_ndp_tx_rate(
35         void    *p_dm_void,
36         u8      comp_steering_num_of_bfer
37 );
38
39 #endif
40
41 #if (RTL8822B_SUPPORT == 1)
42 u8
43 phydm_get_beamforming_sounding_info(
44         void            *p_dm_void,
45         u16     *troughput,
46         u8      total_bfee_num,
47         u8      *tx_rate
48 );
49
50 u8
51 phydm_get_ndpa_rate(
52         void            *p_dm_void
53 );
54
55 u8
56 phydm_get_mu_bfee_snding_decision(
57         void            *p_dm_void,
58         u16     throughput
59 );
60
61 #else
62 #define phydm_get_beamforming_sounding_info(p_dm_void, troughput, total_bfee_num, tx_rate)
63 #define phydm_get_ndpa_rate(p_dm_void)
64 #define phydm_get_mu_bfee_snding_decision(p_dm_void, troughput)
65
66 #endif
67
68 #endif
69 #endif