hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _RTL8852B_HAL_H_
#define _RTL8852B_HAL_H_
#include "../hal_headers.h"
 
/*usage under rtl8852b folder*/
#include "rtl8852b_spec.h"
#include "hal_trx_8852b.h"
 
#ifdef CONFIG_PCI_HCI
#include "pci/rtl8852be_hal.h"
#endif
 
#ifdef CONFIG_USB_HCI
#include "usb/rtl8852bu_hal.h"
#endif
 
#ifdef CONFIG_SDIO_HCI
#include "sdio/rtl8852bs_hal.h"
#endif
 
enum hw_stype_8852b {
   EFUSE_HW_STYPE_NONE_8852B = 0,
   EFUSE_HW_STYPE_VF1_CG_8852B = 0xe,
   EFUSE_HW_STYPE_GENERAL_8852B = 0xf
};
 
/* rtl8852b_halinit.c */
void init_hal_spec_8852b(struct rtw_phl_com_t *phl_com,
                   struct hal_info_t *hal);
enum rtw_hal_status hal_cfg_fw_8852b(struct rtw_phl_com_t *phl_com,
                    struct hal_info_t *hal,
                    char *ic_name,
                    enum rtw_fw_type fw_type);
 
enum rf_path hal_get_path_from_ant_num_8852b(u8 antnum);
 
/* rtl8852b_ops.c */
void hal_set_ops_8852b(struct rtw_phl_com_t *phl_com,
                   struct hal_info_t *hal);
/*void hal_set_trx_ops_8852b(struct hal_info_t *hal);*/
 
void init_default_value_8852b(struct hal_info_t *hal);
enum rtw_hal_status hal_get_efuse_8852b(struct rtw_phl_com_t *phl_com,
                   struct hal_info_t *hal,
                   struct hal_init_info_t *init_info);
enum rtw_hal_status hal_start_8852b(struct rtw_phl_com_t *phl_com,
                  struct hal_info_t *hal,
                  struct hal_init_info_t *init_info);
enum rtw_hal_status hal_stop_8852b(struct rtw_phl_com_t *phl_com,
                    struct hal_info_t *hal);
 
#ifdef CONFIG_WOWLAN
enum rtw_hal_status
hal_wow_init_8852b(struct rtw_phl_com_t *phl_com,
               struct hal_info_t *hal_info, struct rtw_phl_stainfo_t *sta,
                   struct hal_init_info_t *init_info);
enum rtw_hal_status
hal_wow_deinit_8852b(struct rtw_phl_com_t *phl_com,
               struct hal_info_t *hal_info, struct rtw_phl_stainfo_t *sta,
                   struct hal_init_info_t *init_info);
#endif /* CONFIG_WOWLAN */
 
#ifdef RTW_PHL_BCN
enum rtw_hal_status hal_config_beacon_8852b(struct rtw_phl_com_t *phl_com, struct hal_info_t *hal, struct rtw_bcn_entry *bcn_entry);
enum rtw_hal_status hal_update_beacon_8852b(struct rtw_phl_com_t *phl_com, struct hal_info_t *hal, struct rtw_bcn_entry *bcn_entry);
#endif
 
enum rtw_hal_status
hal_mp_init_8852b(struct rtw_phl_com_t *phl_com,
               struct hal_info_t *hal_info,
               struct hal_init_info_t *init_info);
enum rtw_hal_status
hal_mp_deinit_8852b(struct rtw_phl_com_t *phl_com,
               struct hal_info_t *hal_info,
               struct hal_init_info_t *init_info);
 
 
#endif /* _RTL8852B_HAL_H_ */