xref: /wlan-driver/fw-api/hw/qca6490/v1/phyrx_other_receive_info_ru_details.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 //
20 // DO NOT EDIT!  This file is automatically generated
21 //               These definitions are tied to a particular hardware layout
22 
23 
24 #ifndef _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
25 #define _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
26 #if !defined(__ASSEMBLER__)
27 #endif
28 
29 
30 // ################ START SUMMARY #################
31 //
32 //	Dword	Fields
33 //	0	ru_details_channel_0[31:0]
34 //	1	ru_details_channel_1[31:0]
35 //	2	spare[31:0]
36 //
37 // ################ END SUMMARY #################
38 
39 #define NUM_OF_DWORDS_PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS 3
40 
41 struct phyrx_other_receive_info_ru_details {
42              uint32_t ru_details_channel_0            : 32; //[31:0]
43              uint32_t ru_details_channel_1            : 32; //[31:0]
44              uint32_t spare                           : 32; //[31:0]
45 };
46 
47 /*
48 
49 ru_details_channel_0
50 
51 			Ru_allocation from content channel 0
52 
53 			[7:0] for 20/40 MHz
54 
55 			[15:0] for 80 MHz
56 
57 			[31:0] for 160 MHz
58 
59 			<legal all>
60 
61 ru_details_channel_1
62 
63 			Ru_allocation from content channel 1
64 
65 			[7:0] for 40 MHz
66 
67 			[15:0] for 80 MHz
68 
69 			[31:0] for 160 MHz
70 
71 			<legal all>
72 
73 spare
74 
75 			Extra spare bits added to convey additional information
76 
77 			<legal all>
78 */
79 
80 
81 /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0
82 
83 			Ru_allocation from content channel 0
84 
85 			[7:0] for 20/40 MHz
86 
87 			[15:0] for 80 MHz
88 
89 			[31:0] for 160 MHz
90 
91 			<legal all>
92 */
93 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_OFFSET 0x00000000
94 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_LSB 0
95 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_MASK 0xffffffff
96 
97 /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1
98 
99 			Ru_allocation from content channel 1
100 
101 			[7:0] for 40 MHz
102 
103 			[15:0] for 80 MHz
104 
105 			[31:0] for 160 MHz
106 
107 			<legal all>
108 */
109 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_OFFSET 0x00000004
110 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_LSB 0
111 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_MASK 0xffffffff
112 
113 /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE
114 
115 			Extra spare bits added to convey additional information
116 
117 			<legal all>
118 */
119 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_OFFSET           0x00000008
120 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_LSB              0
121 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_MASK             0xffffffff
122 
123 
124 #endif // _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
125