xref: /wlan-driver/fw-api/hw/qcn9224/v1/coex_tx_req.h (revision 5113495b16420b49004c444715d2daae2066e7dc) !
1*5113495bSYour Name 
2*5113495bSYour Name /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name 
17*5113495bSYour Name 
18*5113495bSYour Name 
19*5113495bSYour Name 
20*5113495bSYour Name 
21*5113495bSYour Name 
22*5113495bSYour Name 
23*5113495bSYour Name 
24*5113495bSYour Name 
25*5113495bSYour Name 
26*5113495bSYour Name #ifndef _COEX_TX_REQ_H_
27*5113495bSYour Name #define _COEX_TX_REQ_H_
28*5113495bSYour Name #if !defined(__ASSEMBLER__)
29*5113495bSYour Name #endif
30*5113495bSYour Name 
31*5113495bSYour Name #define NUM_OF_DWORDS_COEX_TX_REQ 4
32*5113495bSYour Name 
33*5113495bSYour Name #define NUM_OF_QWORDS_COEX_TX_REQ 2
34*5113495bSYour Name 
35*5113495bSYour Name 
36*5113495bSYour Name struct coex_tx_req {
37*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
38*5113495bSYour Name              uint32_t tx_pwr                                                  :  8,
39*5113495bSYour Name                       min_tx_pwr                                              :  8,
40*5113495bSYour Name                       nss                                                     :  3,
41*5113495bSYour Name                       tx_chain_mask                                           :  8,
42*5113495bSYour Name                       bw                                                      :  3,
43*5113495bSYour Name                       reserved_0                                              :  2;
44*5113495bSYour Name              uint32_t alt_tx_pwr                                              :  8,
45*5113495bSYour Name                       alt_min_tx_pwr                                          :  8,
46*5113495bSYour Name                       alt_nss                                                 :  3,
47*5113495bSYour Name                       alt_tx_chain_mask                                       :  8,
48*5113495bSYour Name                       alt_bw                                                  :  3,
49*5113495bSYour Name                       reserved_1                                              :  2;
50*5113495bSYour Name              uint32_t tx_pwr_1                                                :  8,
51*5113495bSYour Name                       alt_tx_pwr_1                                            :  8,
52*5113495bSYour Name                       wlan_request_duration                                   : 16;
53*5113495bSYour Name              uint32_t wlan_pkt_type                                           :  4,
54*5113495bSYour Name                       coex_tx_reason                                          :  2,
55*5113495bSYour Name                       response_frame_type                                     :  5,
56*5113495bSYour Name                       wlan_low_priority_slicing_allowed                       :  1,
57*5113495bSYour Name                       wlan_high_priority_slicing_allowed                      :  1,
58*5113495bSYour Name                       sch_tx_burst_ongoing                                    :  1,
59*5113495bSYour Name                       coex_tx_priority                                        :  4,
60*5113495bSYour Name                       reserved_3a                                             : 14;
61*5113495bSYour Name #else
62*5113495bSYour Name              uint32_t reserved_0                                              :  2,
63*5113495bSYour Name                       bw                                                      :  3,
64*5113495bSYour Name                       tx_chain_mask                                           :  8,
65*5113495bSYour Name                       nss                                                     :  3,
66*5113495bSYour Name                       min_tx_pwr                                              :  8,
67*5113495bSYour Name                       tx_pwr                                                  :  8;
68*5113495bSYour Name              uint32_t reserved_1                                              :  2,
69*5113495bSYour Name                       alt_bw                                                  :  3,
70*5113495bSYour Name                       alt_tx_chain_mask                                       :  8,
71*5113495bSYour Name                       alt_nss                                                 :  3,
72*5113495bSYour Name                       alt_min_tx_pwr                                          :  8,
73*5113495bSYour Name                       alt_tx_pwr                                              :  8;
74*5113495bSYour Name              uint32_t wlan_request_duration                                   : 16,
75*5113495bSYour Name                       alt_tx_pwr_1                                            :  8,
76*5113495bSYour Name                       tx_pwr_1                                                :  8;
77*5113495bSYour Name              uint32_t reserved_3a                                             : 14,
78*5113495bSYour Name                       coex_tx_priority                                        :  4,
79*5113495bSYour Name                       sch_tx_burst_ongoing                                    :  1,
80*5113495bSYour Name                       wlan_high_priority_slicing_allowed                      :  1,
81*5113495bSYour Name                       wlan_low_priority_slicing_allowed                       :  1,
82*5113495bSYour Name                       response_frame_type                                     :  5,
83*5113495bSYour Name                       coex_tx_reason                                          :  2,
84*5113495bSYour Name                       wlan_pkt_type                                           :  4;
85*5113495bSYour Name #endif
86*5113495bSYour Name };
87*5113495bSYour Name 
88*5113495bSYour Name 
89*5113495bSYour Name 
90*5113495bSYour Name 
91*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_OFFSET                                                   0x0000000000000000
92*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_LSB                                                      0
93*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_MSB                                                      7
94*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_MASK                                                     0x00000000000000ff
95*5113495bSYour Name 
96*5113495bSYour Name 
97*5113495bSYour Name 
98*5113495bSYour Name 
99*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_OFFSET                                               0x0000000000000000
100*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_LSB                                                  8
101*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_MSB                                                  15
102*5113495bSYour Name #define COEX_TX_REQ_MIN_TX_PWR_MASK                                                 0x000000000000ff00
103*5113495bSYour Name 
104*5113495bSYour Name 
105*5113495bSYour Name 
106*5113495bSYour Name 
107*5113495bSYour Name #define COEX_TX_REQ_NSS_OFFSET                                                      0x0000000000000000
108*5113495bSYour Name #define COEX_TX_REQ_NSS_LSB                                                         16
109*5113495bSYour Name #define COEX_TX_REQ_NSS_MSB                                                         18
110*5113495bSYour Name #define COEX_TX_REQ_NSS_MASK                                                        0x0000000000070000
111*5113495bSYour Name 
112*5113495bSYour Name 
113*5113495bSYour Name 
114*5113495bSYour Name 
115*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_OFFSET                                            0x0000000000000000
116*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_LSB                                               19
117*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_MSB                                               26
118*5113495bSYour Name #define COEX_TX_REQ_TX_CHAIN_MASK_MASK                                              0x0000000007f80000
119*5113495bSYour Name 
120*5113495bSYour Name 
121*5113495bSYour Name 
122*5113495bSYour Name 
123*5113495bSYour Name #define COEX_TX_REQ_BW_OFFSET                                                       0x0000000000000000
124*5113495bSYour Name #define COEX_TX_REQ_BW_LSB                                                          27
125*5113495bSYour Name #define COEX_TX_REQ_BW_MSB                                                          29
126*5113495bSYour Name #define COEX_TX_REQ_BW_MASK                                                         0x0000000038000000
127*5113495bSYour Name 
128*5113495bSYour Name 
129*5113495bSYour Name 
130*5113495bSYour Name 
131*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_OFFSET                                               0x0000000000000000
132*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_LSB                                                  30
133*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_MSB                                                  31
134*5113495bSYour Name #define COEX_TX_REQ_RESERVED_0_MASK                                                 0x00000000c0000000
135*5113495bSYour Name 
136*5113495bSYour Name 
137*5113495bSYour Name 
138*5113495bSYour Name 
139*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_OFFSET                                               0x0000000000000000
140*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_LSB                                                  32
141*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_MSB                                                  39
142*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_MASK                                                 0x000000ff00000000
143*5113495bSYour Name 
144*5113495bSYour Name 
145*5113495bSYour Name 
146*5113495bSYour Name 
147*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_OFFSET                                           0x0000000000000000
148*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_LSB                                              40
149*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_MSB                                              47
150*5113495bSYour Name #define COEX_TX_REQ_ALT_MIN_TX_PWR_MASK                                             0x0000ff0000000000
151*5113495bSYour Name 
152*5113495bSYour Name 
153*5113495bSYour Name 
154*5113495bSYour Name 
155*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_OFFSET                                                  0x0000000000000000
156*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_LSB                                                     48
157*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_MSB                                                     50
158*5113495bSYour Name #define COEX_TX_REQ_ALT_NSS_MASK                                                    0x0007000000000000
159*5113495bSYour Name 
160*5113495bSYour Name 
161*5113495bSYour Name 
162*5113495bSYour Name 
163*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_OFFSET                                        0x0000000000000000
164*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_LSB                                           51
165*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_MSB                                           58
166*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_CHAIN_MASK_MASK                                          0x07f8000000000000
167*5113495bSYour Name 
168*5113495bSYour Name 
169*5113495bSYour Name 
170*5113495bSYour Name 
171*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_OFFSET                                                   0x0000000000000000
172*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_LSB                                                      59
173*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_MSB                                                      61
174*5113495bSYour Name #define COEX_TX_REQ_ALT_BW_MASK                                                     0x3800000000000000
175*5113495bSYour Name 
176*5113495bSYour Name 
177*5113495bSYour Name 
178*5113495bSYour Name 
179*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_OFFSET                                               0x0000000000000000
180*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_LSB                                                  62
181*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_MSB                                                  63
182*5113495bSYour Name #define COEX_TX_REQ_RESERVED_1_MASK                                                 0xc000000000000000
183*5113495bSYour Name 
184*5113495bSYour Name 
185*5113495bSYour Name 
186*5113495bSYour Name 
187*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_OFFSET                                                 0x0000000000000008
188*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_LSB                                                    0
189*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_MSB                                                    7
190*5113495bSYour Name #define COEX_TX_REQ_TX_PWR_1_MASK                                                   0x00000000000000ff
191*5113495bSYour Name 
192*5113495bSYour Name 
193*5113495bSYour Name 
194*5113495bSYour Name 
195*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_OFFSET                                             0x0000000000000008
196*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_LSB                                                8
197*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_MSB                                                15
198*5113495bSYour Name #define COEX_TX_REQ_ALT_TX_PWR_1_MASK                                               0x000000000000ff00
199*5113495bSYour Name 
200*5113495bSYour Name 
201*5113495bSYour Name 
202*5113495bSYour Name 
203*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_OFFSET                                    0x0000000000000008
204*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_LSB                                       16
205*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_MSB                                       31
206*5113495bSYour Name #define COEX_TX_REQ_WLAN_REQUEST_DURATION_MASK                                      0x00000000ffff0000
207*5113495bSYour Name 
208*5113495bSYour Name 
209*5113495bSYour Name 
210*5113495bSYour Name 
211*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_OFFSET                                            0x0000000000000008
212*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_LSB                                               32
213*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_MSB                                               35
214*5113495bSYour Name #define COEX_TX_REQ_WLAN_PKT_TYPE_MASK                                              0x0000000f00000000
215*5113495bSYour Name 
216*5113495bSYour Name 
217*5113495bSYour Name 
218*5113495bSYour Name 
219*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_OFFSET                                           0x0000000000000008
220*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_LSB                                              36
221*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_MSB                                              37
222*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_REASON_MASK                                             0x0000003000000000
223*5113495bSYour Name 
224*5113495bSYour Name 
225*5113495bSYour Name 
226*5113495bSYour Name 
227*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_OFFSET                                      0x0000000000000008
228*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_LSB                                         38
229*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_MSB                                         42
230*5113495bSYour Name #define COEX_TX_REQ_RESPONSE_FRAME_TYPE_MASK                                        0x000007c000000000
231*5113495bSYour Name 
232*5113495bSYour Name 
233*5113495bSYour Name 
234*5113495bSYour Name 
235*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_OFFSET                        0x0000000000000008
236*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_LSB                           43
237*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_MSB                           43
238*5113495bSYour Name #define COEX_TX_REQ_WLAN_LOW_PRIORITY_SLICING_ALLOWED_MASK                          0x0000080000000000
239*5113495bSYour Name 
240*5113495bSYour Name 
241*5113495bSYour Name 
242*5113495bSYour Name 
243*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_OFFSET                       0x0000000000000008
244*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_LSB                          44
245*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_MSB                          44
246*5113495bSYour Name #define COEX_TX_REQ_WLAN_HIGH_PRIORITY_SLICING_ALLOWED_MASK                         0x0000100000000000
247*5113495bSYour Name 
248*5113495bSYour Name 
249*5113495bSYour Name 
250*5113495bSYour Name 
251*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_OFFSET                                     0x0000000000000008
252*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_LSB                                        45
253*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_MSB                                        45
254*5113495bSYour Name #define COEX_TX_REQ_SCH_TX_BURST_ONGOING_MASK                                       0x0000200000000000
255*5113495bSYour Name 
256*5113495bSYour Name 
257*5113495bSYour Name 
258*5113495bSYour Name 
259*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_OFFSET                                         0x0000000000000008
260*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_LSB                                            46
261*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_MSB                                            49
262*5113495bSYour Name #define COEX_TX_REQ_COEX_TX_PRIORITY_MASK                                           0x0003c00000000000
263*5113495bSYour Name 
264*5113495bSYour Name 
265*5113495bSYour Name 
266*5113495bSYour Name 
267*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_OFFSET                                              0x0000000000000008
268*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_LSB                                                 50
269*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_MSB                                                 63
270*5113495bSYour Name #define COEX_TX_REQ_RESERVED_3A_MASK                                                0xfffc000000000000
271*5113495bSYour Name 
272*5113495bSYour Name 
273*5113495bSYour Name 
274*5113495bSYour Name #endif
275