xref: /wlan-driver/fw-api/hw/qca6490/v1/phyrx_l_sig_b.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2019 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 #ifndef _PHYRX_L_SIG_B_H_
20 #define _PHYRX_L_SIG_B_H_
21 #if !defined(__ASSEMBLER__)
22 #endif
23 
24 #include "l_sig_b_info.h"
25 
26 // ################ START SUMMARY #################
27 //
28 //	Dword	Fields
29 //	0	struct l_sig_b_info phyrx_l_sig_b_info_details;
30 //
31 // ################ END SUMMARY #################
32 
33 #define NUM_OF_DWORDS_PHYRX_L_SIG_B 1
34 
35 struct phyrx_l_sig_b {
36     struct            l_sig_b_info                       phyrx_l_sig_b_info_details;
37 };
38 
39 /*
40 
41 struct l_sig_b_info phyrx_l_sig_b_info_details
42 
43 			See detailed description of the STRUCT
44 */
45 
46 
47  /* EXTERNAL REFERENCE : struct l_sig_b_info phyrx_l_sig_b_info_details */
48 
49 
50 /* Description		PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RATE
51 
52 			<enum 1    dsss_1_mpbs_long> DSSS 1 Mbps long
53 
54 			<enum 2    dsss_2_mbps_long> DSSS 2 Mbps long
55 
56 			<enum 3    cck_5_5_mbps_long> CCK 5.5 Mbps long
57 
58 			<enum 4    cck_11_mbps_long> CCK 11 Mbps long
59 
60 			<enum 5    dsss_2_mbps_short> DSSS 2 Mbps short
61 
62 			<enum 6    cck_5_5_mbps_short> CCK 5.5 Mbps short
63 
64 			<enum 7    cck_11_mbps_short> CCK 11 Mbps short
65 
66 			<legal 1-7>
67 */
68 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RATE_OFFSET       0x00000000
69 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RATE_LSB          0
70 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RATE_MASK         0x0000000f
71 
72 /* Description		PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH
73 
74 			The length indicates the number of octets in this MPDU.
75 
76 			<legal all>
77 */
78 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_OFFSET     0x00000000
79 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_LSB        4
80 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_MASK       0x0000fff0
81 
82 /* Description		PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED
83 
84 			Reserved: Should be set to 0 by the transmitting MAC and
85 			ignored by the PHY <legal 0>
86 */
87 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_OFFSET   0x00000000
88 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_LSB      16
89 #define PHYRX_L_SIG_B_0_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_MASK     0xffff0000
90 
91 
92 #endif // _PHYRX_L_SIG_B_H_
93