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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/** @file */
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation. All rights reserved.
 *
 * 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 _MAC_AX_HCIFC_H_
#define _MAC_AX_HCIFC_H_
 
#include "../type.h"
#include "trxcfg.h"
#include "../mac_ax.h"
 
#define HFC_PAGE_UNIT 64
 
/**
 * @enum mac_ax_hfc_full_cond
 *
 * @brief mac_ax_hfc_full_cond
 *
 * @var mac_ax_hfc_full_cond::MAC_AX_HFC_FULL_COND_X1
 * Please Place Description here.
 * @var mac_ax_hfc_full_cond::MAC_AX_HFC_FULL_COND_X2
 * Please Place Description here.
 * @var mac_ax_hfc_full_cond::MAC_AX_HFC_FULL_COND_X3
 * Please Place Description here.
 * @var mac_ax_hfc_full_cond::MAC_AX_HFC_FULL_COND_X4
 * Please Place Description here.
 */
enum mac_ax_hfc_full_cond {
   MAC_AX_HFC_FULL_COND_X1 = 0,
   MAC_AX_HFC_FULL_COND_X2,
   MAC_AX_HFC_FULL_COND_X3,
   MAC_AX_HFC_FULL_COND_X4
};
 
/**
 * @addtogroup HCI
 * @{
 * @addtogroup HCI_FlowControl
 * @{
 */
/**
 * @brief hfc_ch_ctrl
 *
 * @param *adapter
 * @param ch
 * @return Please Place Description here.
 * @retval u32
 */
u32 hfc_ch_ctrl(struct mac_ax_adapter *adapter, u8 ch);
/**
 * @}
 * @}
 */
 
/**
 * @addtogroup HCI
 * @{
 * @addtogroup HCI_FlowControl
 * @{
 */
 
/**
 * @brief hfc_upd_ch_info
 *
 * @param *adapter
 * @param ch
 * @return Please Place Description here.
 * @retval u32
 */
u32 hfc_upd_ch_info(struct mac_ax_adapter *adapter, u8 ch);
/**
 * @}
 * @}
 */
 
/**
 * @addtogroup HCI
 * @{
 * @addtogroup HCI_FlowControl
 * @{
 */
 
/**
 * @brief hfc_pub_ctrl
 *
 * @param *adapter
 * @return Please Place Description here.
 * @retval u32
 */
u32 hfc_pub_ctrl(struct mac_ax_adapter *adapter);
/**
 * @}
 * @}
 */
 
/**
 * @addtogroup HCI
 * @{
 * @addtogroup HCI_FlowControl
 * @{
 */
 
/**
 * @brief hfc_upd_mix_info
 *
 * @param *adapter
 * @return Please Place Description here.
 * @retval u32
 */
u32 hfc_upd_mix_info(struct mac_ax_adapter *adapter);
/**
 * @}
 * @}
 */
 
/**
 * @addtogroup HCI
 * @{
 * @addtogroup HCI_FlowControl
 * @{
 */
 
/**
 * @brief hfc_init
 *
 * @param *adapter
 * @param rst
 * @param en
 * @param h2c_en
 * @return Please Place Description here.
 * @retval u32
 */
u32 hfc_init(struct mac_ax_adapter *adapter, u8 rst, u8 en, u8 h2c_en);
/**
 * @}
 * @}
 */
 
u32 hfc_info_init(struct mac_ax_adapter *adapter);
 
u32 hfc_info_exit(struct mac_ax_adapter *adapter);
 
#endif