xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/rtl8852b/pci/rtl8852be_ops.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2019 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  *****************************************************************************/
15 #define _RTL8852BE_OPS_C_
16 #include "../rtl8852b_hal.h"
17 #include "rtl8852be.h"
18 
hal_set_ops_8852be(struct rtw_phl_com_t * phl_com,struct hal_info_t * hal)19 void hal_set_ops_8852be(struct rtw_phl_com_t *phl_com,
20 				struct hal_info_t *hal)
21 {
22 	struct hal_ops_t *ops = hal_get_ops(hal);
23 
24 	hal_set_ops_8852b(phl_com, hal);
25 
26 	ops->init_hal_spec = init_hal_spec_8852be;
27 	ops->hal_get_efuse = hal_get_efuse_8852be;
28 	ops->hal_init = hal_init_8852be;
29 	ops->hal_deinit = hal_deinit_8852be;
30 	ops->hal_start = hal_start_8852be;
31 	ops->hal_stop = hal_stop_8852be;
32 #ifdef CONFIG_WOWLAN
33 	ops->hal_wow_init = hal_wow_init_8852be;
34 	ops->hal_wow_deinit = hal_wow_deinit_8852be;
35 #endif /* CONFIG_WOWLAN */
36 	ops->hal_mp_init = hal_mp_init_8852be;
37 	ops->hal_mp_deinit = hal_mp_deinit_8852be;
38 
39 	ops->hal_hci_configure = hal_hci_cfg_8852be;
40 	ops->init_default_value = hal_init_default_value_8852be;
41 	ops->enable_interrupt = hal_enable_int_8852be;
42 	ops->disable_interrupt = hal_disable_int_8852be;
43 	ops->recognize_interrupt = hal_recognize_int_8852be;
44 	ops->clear_interrupt = hal_clear_int_8852be;
45 	ops->interrupt_handler = hal_int_hdler_8852be;
46 	ops->restore_interrupt = hal_restore_int_8852be;
47 	ops->restore_rx_interrupt = hal_rx_int_restore_8852be;
48 }
49 
50