xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/hal/phydm/txbf/haltxbf8822b.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 __HAL_TXBF_8822B_H__
26 #define __HAL_TXBF_8822B_H__
27 
28 #if (RTL8822B_SUPPORT == 1)
29 #ifdef PHYDM_BEAMFORMING_SUPPORT
30 
31 void hal_txbf_8822b_enter(
32 	void *dm_void,
33 	u8 idx);
34 
35 void hal_txbf_8822b_leave(
36 	void *dm_void,
37 	u8 idx);
38 
39 void hal_txbf_8822b_status(
40 	void *dm_void,
41 	u8 beamform_idx);
42 
43 void hal_txbf_8822b_config_gtab(
44 	void *dm_void);
45 
46 void hal_txbf_8822b_fw_txbf(
47 	void *dm_void,
48 	u8 idx);
49 #else
50 #define hal_txbf_8822b_enter(dm_void, idx)
51 #define hal_txbf_8822b_leave(dm_void, idx)
52 #define hal_txbf_8822b_status(dm_void, idx)
53 #define hal_txbf_8822b_fw_txbf(dm_void, idx)
54 #define hal_txbf_8822b_config_gtab(dm_void)
55 
56 #endif
57 
58 #if (defined(CONFIG_BB_TXBF_API))
59 void phydm_8822btxbf_rfmode(void *dm_void, u8 su_bfee_cnt, u8 mu_bfee_cnt);
60 
61 void phydm_8822b_sutxbfer_workaroud(void *dm_void, boolean enable_su_bfer,
62 				    u8 nc, u8 nr, u8 ng, u8 CB, u8 BW,
63 				    boolean is_vht);
64 
65 #else
66 #define phydm_8822btxbf_rfmode(dm_void, su_bfee_cnt, mu_bfee_cnt)
67 #define phydm_8822b_sutxbfer_workaroud(dm_void, enable_su_bfer, nc, nr, ng, CB, BW, is_vht)
68 #endif
69 
70 #else
71 #define hal_txbf_8822b_enter(dm_void, idx)
72 #define hal_txbf_8822b_leave(dm_void, idx)
73 #define hal_txbf_8822b_status(dm_void, idx)
74 #define hal_txbf_8822b_fw_txbf(dm_void, idx)
75 #define hal_txbf_8822b_config_gtab(dm_void)
76 
77 #endif
78 #endif
79