xref: /wlan-driver/fw-api/hw/qca6750/v1/l_sig_b_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 //
20 // DO NOT EDIT!  This file is automatically generated
21 //               These definitions are tied to a particular hardware layout
22 
23 
24 #ifndef _L_SIG_B_INFO_H_
25 #define _L_SIG_B_INFO_H_
26 #if !defined(__ASSEMBLER__)
27 #endif
28 
29 
30 // ################ START SUMMARY #################
31 //
32 //	Dword	Fields
33 //	0	rate[3:0], length[15:4], reserved[31:16]
34 //
35 // ################ END SUMMARY #################
36 
37 #define NUM_OF_DWORDS_L_SIG_B_INFO 1
38 
39 struct l_sig_b_info {
40              uint32_t rate                            :  4, //[3:0]
41                       length                          : 12, //[15:4]
42                       reserved                        : 16; //[31:16]
43 };
44 
45 /*
46 
47 rate
48 
49 			<enum 1    dsss_1_mpbs_long> DSSS 1 Mbps long
50 
51 			<enum 2    dsss_2_mbps_long> DSSS 2 Mbps long
52 
53 			<enum 3    cck_5_5_mbps_long> CCK 5.5 Mbps long
54 
55 			<enum 4    cck_11_mbps_long> CCK 11 Mbps long
56 
57 			<enum 5    dsss_2_mbps_short> DSSS 2 Mbps short
58 
59 			<enum 6    cck_5_5_mbps_short> CCK 5.5 Mbps short
60 
61 			<enum 7    cck_11_mbps_short> CCK 11 Mbps short
62 
63 			<legal 1-7>
64 
65 length
66 
67 			The length indicates the number of octets in this MPDU.
68 
69 			<legal all>
70 
71 reserved
72 
73 			Reserved: Should be set to 0 by the transmitting MAC and
74 			ignored by the PHY <legal 0>
75 */
76 
77 
78 /* Description		L_SIG_B_INFO_0_RATE
79 
80 			<enum 1    dsss_1_mpbs_long> DSSS 1 Mbps long
81 
82 			<enum 2    dsss_2_mbps_long> DSSS 2 Mbps long
83 
84 			<enum 3    cck_5_5_mbps_long> CCK 5.5 Mbps long
85 
86 			<enum 4    cck_11_mbps_long> CCK 11 Mbps long
87 
88 			<enum 5    dsss_2_mbps_short> DSSS 2 Mbps short
89 
90 			<enum 6    cck_5_5_mbps_short> CCK 5.5 Mbps short
91 
92 			<enum 7    cck_11_mbps_short> CCK 11 Mbps short
93 
94 			<legal 1-7>
95 */
96 #define L_SIG_B_INFO_0_RATE_OFFSET                                   0x00000000
97 #define L_SIG_B_INFO_0_RATE_LSB                                      0
98 #define L_SIG_B_INFO_0_RATE_MASK                                     0x0000000f
99 
100 /* Description		L_SIG_B_INFO_0_LENGTH
101 
102 			The length indicates the number of octets in this MPDU.
103 
104 			<legal all>
105 */
106 #define L_SIG_B_INFO_0_LENGTH_OFFSET                                 0x00000000
107 #define L_SIG_B_INFO_0_LENGTH_LSB                                    4
108 #define L_SIG_B_INFO_0_LENGTH_MASK                                   0x0000fff0
109 
110 /* Description		L_SIG_B_INFO_0_RESERVED
111 
112 			Reserved: Should be set to 0 by the transmitting MAC and
113 			ignored by the PHY <legal 0>
114 */
115 #define L_SIG_B_INFO_0_RESERVED_OFFSET                               0x00000000
116 #define L_SIG_B_INFO_0_RESERVED_LSB                                  16
117 #define L_SIG_B_INFO_0_RESERVED_MASK                                 0xffff0000
118 
119 
120 #endif // _L_SIG_B_INFO_H_
121