GNU Linux-libre 4.14.290-gnu1
[releases.git] / drivers / staging / rtlwifi / phydm / txbf / phydm_hal_txbf_api.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2016  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_HAL_TXBF_API_H__
26 #define __PHYDM_HAL_TXBF_API_H__
27
28 #define tx_bf_nr(a, b) ((a > b) ? (b) : (a))
29
30 u8 beamforming_get_htndp_tx_rate(void *dm_void, u8 comp_steering_num_of_bfer);
31
32 u8 beamforming_get_vht_ndp_tx_rate(void *dm_void, u8 comp_steering_num_of_bfer);
33
34 u8 phydm_get_beamforming_sounding_info(void *dm_void, u16 *troughput,
35                                        u8 total_bfee_num, u8 *tx_rate);
36
37 u8 phydm_get_ndpa_rate(void *dm_void);
38
39 u8 phydm_get_mu_bfee_snding_decision(void *dm_void, u16 throughput);
40
41 #endif