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 _PHYTX_PPDU_HEADER_INFO_REQUEST_H_
27 #define _PHYTX_PPDU_HEADER_INFO_REQUEST_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_WORDS_PHYTX_PPDU_HEADER_INFO_REQUEST 2
32 
33 #define NUM_OF_DWORDS_PHYTX_PPDU_HEADER_INFO_REQUEST 1
34 
35 
36 struct phytx_ppdu_header_info_request {
37 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
38              uint16_t request_type                                            :  5,
39                       reserved                                                : 11;
40              uint16_t tlv32_padding                                           : 16;
41 #else
42              uint16_t reserved                                                : 11,
43                       request_type                                            :  5;
44              uint16_t tlv32_padding                                           : 16;
45 #endif
46 };
47 
48 
49 
50 
51 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_OFFSET                          0x00000000
52 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_LSB                             0
53 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_MSB                             4
54 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_MASK                            0x0000001f
55 
56 
57 
58 
59 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_OFFSET                              0x00000000
60 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_LSB                                 5
61 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_MSB                                 15
62 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_MASK                                0x0000ffe0
63 
64 
65 
66 
67 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_OFFSET                         0x00000002
68 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_LSB                            0
69 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_MSB                            15
70 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_MASK                           0x0000ffff
71 
72 
73 
74 #endif
75