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
156
157
158
159
160
161
162
163
164
165
/** @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_HW_SEQ_H_
#define _MAC_AX_HW_SEQ_H_
 
#include "../type.h"
#include "fwcmd.h"
 
enum {
   R_AX_HW_SEQ_0 = 0,
   R_AX_HW_SEQ_1 = 1,
   R_AX_HW_SEQ_2 = 2,
   R_AX_HW_SEQ_3 = 3,
};
 
enum hw_ssn_idx {
   DCTL_HW_SEQ_0 = 0,
   DCTL_HW_SEQ_1 = 1,
   DCTL_HW_SEQ_2 = 2,
   DCTL_HW_SEQ_3 = 3
};
 
/**
 * @struct mac_ax_set_hwseq_reg
 * @brief mac_ax_set_hwseq_reg
 *
 * @var mac_ax_set_hwseq_reg::reg_idx
 * Please Place Description here.
 * @var mac_ax_set_hwseq_reg::seq_val
 * Please Place Description here.
 * @var mac_ax_set_hwseq_reg::rsvd0
 * Please Place Description here.
 */
struct mac_ax_set_hwseq_reg {
   u32 reg_idx: 2;
   u32 seq_val: 12;
   u32 rsvd0: 18;
};
 
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
/**
 * @brief mac_set_hwseq_reg
 *
 * @param *adapter
 * @param idx
 * @param val
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_set_hwseq_reg(struct mac_ax_adapter *adapter,
             u8 idx,
             u16 val);
 
/**
 * @}
 * @}
 */
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
/**
 * @brief mac_set_hwseq_extend_macid
 *
 * @param *adapter
 * @param mac_set_hwseq_extend_macid_1115e
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_set_hwseq_extend_macid(struct mac_ax_adapter *adapter,
                    struct mac_ax_dctl_extend_macid *seq_info);
 
/**
 * @}
 * @}
 */
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
/**
 * @brief mac_set_hwseq_dctl_seq_val_1115e
 *
 * @param *adapter
 * @param mac_ax_dctl_seq_val
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_set_hwseq_dctl_seq_val(struct mac_ax_adapter *adapter,
                    struct mac_ax_dctl_seq_val *seq_info);
/**
 * @}
 * @}
 */
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
/**
 * @brief mac_set_hwseq_dctrl
 *
 * @param *adapter
 * @param macid
 * @param mac_ax_dctl_seq_cfg
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_set_hwseq_dctrl(struct mac_ax_adapter *adapter,
           u8 macid,
           struct mac_ax_dctl_seq_cfg *seq_info);
/**
 * @}
 * @}
 */
 
/**
 * @addtogroup Basic_TRX
 * @{
 * @addtogroup TX_ShortCut
 * @{
 */
/**
 * @brief mac_get_hwseq_cfg
 *
 * @param *adapter
 * @param macid
 * @param ref_sel 0:dmac_tbl; 1:CR
 * @param mac_ax_dctl_seq_cfg
 * @return Please Place Description here.
 * @retval u32
 */
u32 mac_get_hwseq_cfg(struct mac_ax_adapter *adapter,
             u8 macid, u8 ref_sel,
             struct mac_ax_dctl_seq_cfg *seq_info);
/**
 * @}
 * @}
 */
 
#endif