• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: hmac_btcoex_m2s.c的头文件
15  * Date: 2023-01-31 10:14
16  */
17 #ifndef __HMAC_BTCOEX_M2S_H__
18 #define __HMAC_BTCOEX_M2S_H__
19 
20 #include "hal_ops_common_rom.h"
21 #include "mac_vap_ext.h"
22 #include "oal_types_device_rom.h"
23 #include "osal_types.h"
24 
25 #ifdef __cplusplus
26 #if __cplusplus
27 extern "C" {
28 #endif
29 #endif
30 
31 osal_u32 hmac_btcoex_m2s_switch_apply(hal_to_dmac_device_stru *hal_device, osal_u8 m2s_mode_mask);
32 osal_u32 hmac_btcoex_s2m_switch_apply(hal_to_dmac_device_stru *hal_device, osal_u8 m2s_mode_mask);
33 osal_u32 hmac_btcoex_s2m_siso_ap_resume_callback(osal_void *arg);
34 osal_void hmac_btcoex_assoc_ap_check_process(hal_to_dmac_device_stru *hal_device);
35 
36 typedef oal_bool_enum_uint8 (*hmac_m2s_btcoex_need_switch_check_cb)(const hal_to_dmac_device_stru *hal_device,
37     osal_u8 *m2s_mode_mask);
38 typedef osal_void (*hmac_btcoex_m2s_allow_check_cb)(hal_to_dmac_device_stru *hal_device,
39     const hmac_vap_stru *hmac_vap);
40 typedef osal_void (*hmac_btcoex_m2s_back_to_mimo_check_cb)(hal_to_dmac_device_stru *hal_device);
41 typedef osal_bool (*hmac_btcoex_m2s_back_to_mimo_cb)(hal_to_dmac_device_stru *hal_device, osal_u8 *m2s_mode_mask);
42 typedef osal_bool (*hmac_btcoex_m2s_update_hal_device_cb)(const hal_to_dmac_device_stru *hal_device,
43     osal_u8 *m2s_mode_mask);
44 typedef osal_void (*hmac_btcoex_m2s_choose_mimo_siso_cb)(hal_to_dmac_device_stru *hal_device);
45 osal_u32 hmac_btcoex_m2s_init(osal_void);
46 osal_void hmac_btcoex_m2s_deinit(osal_void);
47 
48 #ifdef __cplusplus
49 #if __cplusplus
50 }
51 #endif
52 #endif
53 
54 #endif /* end of __HMAC_BTCOEX_M2S_H__ */
55