xref: /wlan-driver/fw-api/hw/qcn9224/v2/rx_frame_bitmap_req.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_FRAME_BITMAP_REQ_H_
27 #define _RX_FRAME_BITMAP_REQ_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_DWORDS_RX_FRAME_BITMAP_REQ 2
32 
33 #define NUM_OF_QWORDS_RX_FRAME_BITMAP_REQ 1
34 
35 
36 struct rx_frame_bitmap_req {
37 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
38              uint32_t explicit_user_request                                   :  1,
39                       user_request_type                                       :  1,
40                       user_number                                             :  6,
41                       sw_peer_id                                              : 16,
42                       tid_specific_request                                    :  1,
43                       requested_tid                                           :  4,
44                       reserved_0                                              :  3;
45              uint32_t tlv64_padding                                           : 32;
46 #else
47              uint32_t reserved_0                                              :  3,
48                       requested_tid                                           :  4,
49                       tid_specific_request                                    :  1,
50                       sw_peer_id                                              : 16,
51                       user_number                                             :  6,
52                       user_request_type                                       :  1,
53                       explicit_user_request                                   :  1;
54              uint32_t tlv64_padding                                           : 32;
55 #endif
56 };
57 
58 
59 
60 
61 #define RX_FRAME_BITMAP_REQ_EXPLICIT_USER_REQUEST_OFFSET                            0x0000000000000000
62 #define RX_FRAME_BITMAP_REQ_EXPLICIT_USER_REQUEST_LSB                               0
63 #define RX_FRAME_BITMAP_REQ_EXPLICIT_USER_REQUEST_MSB                               0
64 #define RX_FRAME_BITMAP_REQ_EXPLICIT_USER_REQUEST_MASK                              0x0000000000000001
65 
66 
67 
68 
69 #define RX_FRAME_BITMAP_REQ_USER_REQUEST_TYPE_OFFSET                                0x0000000000000000
70 #define RX_FRAME_BITMAP_REQ_USER_REQUEST_TYPE_LSB                                   1
71 #define RX_FRAME_BITMAP_REQ_USER_REQUEST_TYPE_MSB                                   1
72 #define RX_FRAME_BITMAP_REQ_USER_REQUEST_TYPE_MASK                                  0x0000000000000002
73 
74 
75 
76 
77 #define RX_FRAME_BITMAP_REQ_USER_NUMBER_OFFSET                                      0x0000000000000000
78 #define RX_FRAME_BITMAP_REQ_USER_NUMBER_LSB                                         2
79 #define RX_FRAME_BITMAP_REQ_USER_NUMBER_MSB                                         7
80 #define RX_FRAME_BITMAP_REQ_USER_NUMBER_MASK                                        0x00000000000000fc
81 
82 
83 
84 
85 #define RX_FRAME_BITMAP_REQ_SW_PEER_ID_OFFSET                                       0x0000000000000000
86 #define RX_FRAME_BITMAP_REQ_SW_PEER_ID_LSB                                          8
87 #define RX_FRAME_BITMAP_REQ_SW_PEER_ID_MSB                                          23
88 #define RX_FRAME_BITMAP_REQ_SW_PEER_ID_MASK                                         0x0000000000ffff00
89 
90 
91 
92 
93 #define RX_FRAME_BITMAP_REQ_TID_SPECIFIC_REQUEST_OFFSET                             0x0000000000000000
94 #define RX_FRAME_BITMAP_REQ_TID_SPECIFIC_REQUEST_LSB                                24
95 #define RX_FRAME_BITMAP_REQ_TID_SPECIFIC_REQUEST_MSB                                24
96 #define RX_FRAME_BITMAP_REQ_TID_SPECIFIC_REQUEST_MASK                               0x0000000001000000
97 
98 
99 
100 
101 #define RX_FRAME_BITMAP_REQ_REQUESTED_TID_OFFSET                                    0x0000000000000000
102 #define RX_FRAME_BITMAP_REQ_REQUESTED_TID_LSB                                       25
103 #define RX_FRAME_BITMAP_REQ_REQUESTED_TID_MSB                                       28
104 #define RX_FRAME_BITMAP_REQ_REQUESTED_TID_MASK                                      0x000000001e000000
105 
106 
107 
108 
109 #define RX_FRAME_BITMAP_REQ_RESERVED_0_OFFSET                                       0x0000000000000000
110 #define RX_FRAME_BITMAP_REQ_RESERVED_0_LSB                                          29
111 #define RX_FRAME_BITMAP_REQ_RESERVED_0_MSB                                          31
112 #define RX_FRAME_BITMAP_REQ_RESERVED_0_MASK                                         0x00000000e0000000
113 
114 
115 
116 
117 #define RX_FRAME_BITMAP_REQ_TLV64_PADDING_OFFSET                                    0x0000000000000000
118 #define RX_FRAME_BITMAP_REQ_TLV64_PADDING_LSB                                       32
119 #define RX_FRAME_BITMAP_REQ_TLV64_PADDING_MSB                                       63
120 #define RX_FRAME_BITMAP_REQ_TLV64_PADDING_MASK                                      0xffffffff00000000
121 
122 
123 
124 #endif
125