xref: /wlan-driver/fw-api/hw/kiwi/v1/rx_mpdu_desc_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /*
3*5113495bSYour Name  * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
6*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
7*5113495bSYour Name  * above copyright notice and this permission notice appear in all
8*5113495bSYour Name  * copies.
9*5113495bSYour Name  *
10*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
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 
27*5113495bSYour Name 
28*5113495bSYour Name 
29*5113495bSYour Name 
30*5113495bSYour Name #ifndef _RX_MPDU_DESC_INFO_H_
31*5113495bSYour Name #define _RX_MPDU_DESC_INFO_H_
32*5113495bSYour Name #if !defined(__ASSEMBLER__)
33*5113495bSYour Name #endif
34*5113495bSYour Name 
35*5113495bSYour Name #define NUM_OF_DWORDS_RX_MPDU_DESC_INFO 2
36*5113495bSYour Name 
37*5113495bSYour Name 
38*5113495bSYour Name struct rx_mpdu_desc_info {
39*5113495bSYour Name 	     uint32_t msdu_count                                              :  8,
40*5113495bSYour Name 		      fragment_flag                                           :  1,
41*5113495bSYour Name 		      mpdu_retry_bit                                          :  1,
42*5113495bSYour Name 		      ampdu_flag                                              :  1,
43*5113495bSYour Name 		      bar_frame                                               :  1,
44*5113495bSYour Name 		      pn_fields_contain_valid_info                            :  1,
45*5113495bSYour Name 		      raw_mpdu                                                :  1,
46*5113495bSYour Name 		      more_fragment_flag                                      :  1,
47*5113495bSYour Name 		      vdev_id                                                 :  8,
48*5113495bSYour Name 		      reserved_0a                                             :  4,
49*5113495bSYour Name 		      mpdu_qos_control_valid                                  :  1,
50*5113495bSYour Name 		      tid                                                     :  4;
51*5113495bSYour Name 	     uint32_t peer_meta_data                                          : 32;
52*5113495bSYour Name };
53*5113495bSYour Name 
54*5113495bSYour Name 
55*5113495bSYour Name 
56*5113495bSYour Name 
57*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_OFFSET                                         0x00000000
58*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_LSB                                            0
59*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_MSB                                            7
60*5113495bSYour Name #define RX_MPDU_DESC_INFO_MSDU_COUNT_MASK                                           0x000000ff
61*5113495bSYour Name 
62*5113495bSYour Name 
63*5113495bSYour Name 
64*5113495bSYour Name 
65*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_OFFSET                                      0x00000000
66*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_LSB                                         8
67*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_MSB                                         8
68*5113495bSYour Name #define RX_MPDU_DESC_INFO_FRAGMENT_FLAG_MASK                                        0x00000100
69*5113495bSYour Name 
70*5113495bSYour Name 
71*5113495bSYour Name 
72*5113495bSYour Name 
73*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_OFFSET                                     0x00000000
74*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_LSB                                        9
75*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_MSB                                        9
76*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_RETRY_BIT_MASK                                       0x00000200
77*5113495bSYour Name 
78*5113495bSYour Name 
79*5113495bSYour Name 
80*5113495bSYour Name 
81*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_OFFSET                                         0x00000000
82*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_LSB                                            10
83*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_MSB                                            10
84*5113495bSYour Name #define RX_MPDU_DESC_INFO_AMPDU_FLAG_MASK                                           0x00000400
85*5113495bSYour Name 
86*5113495bSYour Name 
87*5113495bSYour Name 
88*5113495bSYour Name 
89*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_OFFSET                                          0x00000000
90*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_LSB                                             11
91*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_MSB                                             11
92*5113495bSYour Name #define RX_MPDU_DESC_INFO_BAR_FRAME_MASK                                            0x00000800
93*5113495bSYour Name 
94*5113495bSYour Name 
95*5113495bSYour Name 
96*5113495bSYour Name 
97*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET                       0x00000000
98*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_LSB                          12
99*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_MSB                          12
100*5113495bSYour Name #define RX_MPDU_DESC_INFO_PN_FIELDS_CONTAIN_VALID_INFO_MASK                         0x00001000
101*5113495bSYour Name 
102*5113495bSYour Name 
103*5113495bSYour Name 
104*5113495bSYour Name 
105*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_OFFSET                                           0x00000000
106*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_LSB                                              13
107*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_MSB                                              13
108*5113495bSYour Name #define RX_MPDU_DESC_INFO_RAW_MPDU_MASK                                             0x00002000
109*5113495bSYour Name 
110*5113495bSYour Name 
111*5113495bSYour Name 
112*5113495bSYour Name 
113*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_OFFSET                                 0x00000000
114*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_LSB                                    14
115*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_MSB                                    14
116*5113495bSYour Name #define RX_MPDU_DESC_INFO_MORE_FRAGMENT_FLAG_MASK                                   0x00004000
117*5113495bSYour Name 
118*5113495bSYour Name 
119*5113495bSYour Name 
120*5113495bSYour Name 
121*5113495bSYour Name #define RX_MPDU_DESC_INFO_VDEV_ID_OFFSET                                            0x00000000
122*5113495bSYour Name #define RX_MPDU_DESC_INFO_VDEV_ID_LSB                                               15
123*5113495bSYour Name #define RX_MPDU_DESC_INFO_VDEV_ID_MSB                                               22
124*5113495bSYour Name #define RX_MPDU_DESC_INFO_VDEV_ID_MASK                                              0x007f8000
125*5113495bSYour Name 
126*5113495bSYour Name 
127*5113495bSYour Name 
128*5113495bSYour Name 
129*5113495bSYour Name #define RX_MPDU_DESC_INFO_RESERVED_0A_OFFSET                                        0x00000000
130*5113495bSYour Name #define RX_MPDU_DESC_INFO_RESERVED_0A_LSB                                           23
131*5113495bSYour Name #define RX_MPDU_DESC_INFO_RESERVED_0A_MSB                                           26
132*5113495bSYour Name #define RX_MPDU_DESC_INFO_RESERVED_0A_MASK                                          0x07800000
133*5113495bSYour Name 
134*5113495bSYour Name 
135*5113495bSYour Name 
136*5113495bSYour Name 
137*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_OFFSET                             0x00000000
138*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_LSB                                27
139*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_MSB                                27
140*5113495bSYour Name #define RX_MPDU_DESC_INFO_MPDU_QOS_CONTROL_VALID_MASK                               0x08000000
141*5113495bSYour Name 
142*5113495bSYour Name 
143*5113495bSYour Name 
144*5113495bSYour Name 
145*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_OFFSET                                                0x00000000
146*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_LSB                                                   28
147*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_MSB                                                   31
148*5113495bSYour Name #define RX_MPDU_DESC_INFO_TID_MASK                                                  0xf0000000
149*5113495bSYour Name 
150*5113495bSYour Name 
151*5113495bSYour Name 
152*5113495bSYour Name 
153*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_OFFSET                                     0x00000004
154*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_LSB                                        0
155*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_MSB                                        31
156*5113495bSYour Name #define RX_MPDU_DESC_INFO_PEER_META_DATA_MASK                                       0xffffffff
157*5113495bSYour Name 
158*5113495bSYour Name 
159*5113495bSYour Name 
160*5113495bSYour Name #endif
161