xref: /wlan-driver/fw-api/hw/qcn9224/v2/rx_msdu_ext_desc_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 #ifndef _RX_MSDU_EXT_DESC_INFO_H_
27 #define _RX_MSDU_EXT_DESC_INFO_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_DWORDS_RX_MSDU_EXT_DESC_INFO 1
32 
33 
34 struct rx_msdu_ext_desc_info {
35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
36              uint32_t reo_destination_indication                              :  5,
37                       service_code                                            :  9,
38                       priority_valid                                          :  1,
39                       data_offset                                             : 12,
40                       src_link_id                                             :  3,
41                       reserved_0a                                             :  2;
42 #else
43              uint32_t reserved_0a                                             :  2,
44                       src_link_id                                             :  3,
45                       data_offset                                             : 12,
46                       priority_valid                                          :  1,
47                       service_code                                            :  9,
48                       reo_destination_indication                              :  5;
49 #endif
50 };
51 
52 
53 
54 
55 #define RX_MSDU_EXT_DESC_INFO_REO_DESTINATION_INDICATION_OFFSET                     0x00000000
56 #define RX_MSDU_EXT_DESC_INFO_REO_DESTINATION_INDICATION_LSB                        0
57 #define RX_MSDU_EXT_DESC_INFO_REO_DESTINATION_INDICATION_MSB                        4
58 #define RX_MSDU_EXT_DESC_INFO_REO_DESTINATION_INDICATION_MASK                       0x0000001f
59 
60 
61 
62 
63 #define RX_MSDU_EXT_DESC_INFO_SERVICE_CODE_OFFSET                                   0x00000000
64 #define RX_MSDU_EXT_DESC_INFO_SERVICE_CODE_LSB                                      5
65 #define RX_MSDU_EXT_DESC_INFO_SERVICE_CODE_MSB                                      13
66 #define RX_MSDU_EXT_DESC_INFO_SERVICE_CODE_MASK                                     0x00003fe0
67 
68 
69 
70 
71 #define RX_MSDU_EXT_DESC_INFO_PRIORITY_VALID_OFFSET                                 0x00000000
72 #define RX_MSDU_EXT_DESC_INFO_PRIORITY_VALID_LSB                                    14
73 #define RX_MSDU_EXT_DESC_INFO_PRIORITY_VALID_MSB                                    14
74 #define RX_MSDU_EXT_DESC_INFO_PRIORITY_VALID_MASK                                   0x00004000
75 
76 
77 
78 
79 #define RX_MSDU_EXT_DESC_INFO_DATA_OFFSET_OFFSET                                    0x00000000
80 #define RX_MSDU_EXT_DESC_INFO_DATA_OFFSET_LSB                                       15
81 #define RX_MSDU_EXT_DESC_INFO_DATA_OFFSET_MSB                                       26
82 #define RX_MSDU_EXT_DESC_INFO_DATA_OFFSET_MASK                                      0x07ff8000
83 
84 
85 
86 
87 #define RX_MSDU_EXT_DESC_INFO_SRC_LINK_ID_OFFSET                                    0x00000000
88 #define RX_MSDU_EXT_DESC_INFO_SRC_LINK_ID_LSB                                       27
89 #define RX_MSDU_EXT_DESC_INFO_SRC_LINK_ID_MSB                                       29
90 #define RX_MSDU_EXT_DESC_INFO_SRC_LINK_ID_MASK                                      0x38000000
91 
92 
93 
94 
95 #define RX_MSDU_EXT_DESC_INFO_RESERVED_0A_OFFSET                                    0x00000000
96 #define RX_MSDU_EXT_DESC_INFO_RESERVED_0A_LSB                                       30
97 #define RX_MSDU_EXT_DESC_INFO_RESERVED_0A_MSB                                       31
98 #define RX_MSDU_EXT_DESC_INFO_RESERVED_0A_MASK                                      0xc0000000
99 
100 
101 
102 #endif
103