xref: /wlan-driver/fw-api/hw/qca6290/v1/phyrx_other_receive_info_ru_details.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #ifndef _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
20*5113495bSYour Name #define _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
21*5113495bSYour Name #if !defined(__ASSEMBLER__)
22*5113495bSYour Name #endif
23*5113495bSYour Name 
24*5113495bSYour Name 
25*5113495bSYour Name // ################ START SUMMARY #################
26*5113495bSYour Name //
27*5113495bSYour Name //	Dword	Fields
28*5113495bSYour Name //	0	ru_details_channel_0[31:0]
29*5113495bSYour Name //	1	ru_details_channel_1[31:0]
30*5113495bSYour Name //	2	spare[31:0]
31*5113495bSYour Name //
32*5113495bSYour Name // ################ END SUMMARY #################
33*5113495bSYour Name 
34*5113495bSYour Name #define NUM_OF_DWORDS_PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS 3
35*5113495bSYour Name 
36*5113495bSYour Name struct phyrx_other_receive_info_ru_details {
37*5113495bSYour Name              uint32_t ru_details_channel_0            : 32; //[31:0]
38*5113495bSYour Name              uint32_t ru_details_channel_1            : 32; //[31:0]
39*5113495bSYour Name              uint32_t spare                           : 32; //[31:0]
40*5113495bSYour Name };
41*5113495bSYour Name 
42*5113495bSYour Name /*
43*5113495bSYour Name 
44*5113495bSYour Name ru_details_channel_0
45*5113495bSYour Name 
46*5113495bSYour Name 			Ru_allocation from content channel 0
47*5113495bSYour Name 
48*5113495bSYour Name 			[7:0] for 20/40 MHz
49*5113495bSYour Name 
50*5113495bSYour Name 			[15:0] for 80 MHz
51*5113495bSYour Name 
52*5113495bSYour Name 			[31:0] for 160 MHz
53*5113495bSYour Name 
54*5113495bSYour Name 			<legal all>
55*5113495bSYour Name 
56*5113495bSYour Name ru_details_channel_1
57*5113495bSYour Name 
58*5113495bSYour Name 			Ru_allocation from content channel 1
59*5113495bSYour Name 
60*5113495bSYour Name 			[7:0] for 40 MHz
61*5113495bSYour Name 
62*5113495bSYour Name 			[15:0] for 80 MHz
63*5113495bSYour Name 
64*5113495bSYour Name 			[31:0] for 160 MHz
65*5113495bSYour Name 
66*5113495bSYour Name 			<legal all>
67*5113495bSYour Name 
68*5113495bSYour Name spare
69*5113495bSYour Name 
70*5113495bSYour Name 			Extra spare bits added to convey additional information
71*5113495bSYour Name 
72*5113495bSYour Name 			<legal all>
73*5113495bSYour Name */
74*5113495bSYour Name 
75*5113495bSYour Name 
76*5113495bSYour Name /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0
77*5113495bSYour Name 
78*5113495bSYour Name 			Ru_allocation from content channel 0
79*5113495bSYour Name 
80*5113495bSYour Name 			[7:0] for 20/40 MHz
81*5113495bSYour Name 
82*5113495bSYour Name 			[15:0] for 80 MHz
83*5113495bSYour Name 
84*5113495bSYour Name 			[31:0] for 160 MHz
85*5113495bSYour Name 
86*5113495bSYour Name 			<legal all>
87*5113495bSYour Name */
88*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_OFFSET 0x00000000
89*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_LSB 0
90*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_0_RU_DETAILS_CHANNEL_0_MASK 0xffffffff
91*5113495bSYour Name 
92*5113495bSYour Name /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1
93*5113495bSYour Name 
94*5113495bSYour Name 			Ru_allocation from content channel 1
95*5113495bSYour Name 
96*5113495bSYour Name 			[7:0] for 40 MHz
97*5113495bSYour Name 
98*5113495bSYour Name 			[15:0] for 80 MHz
99*5113495bSYour Name 
100*5113495bSYour Name 			[31:0] for 160 MHz
101*5113495bSYour Name 
102*5113495bSYour Name 			<legal all>
103*5113495bSYour Name */
104*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_OFFSET 0x00000004
105*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_LSB 0
106*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_1_RU_DETAILS_CHANNEL_1_MASK 0xffffffff
107*5113495bSYour Name 
108*5113495bSYour Name /* Description		PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE
109*5113495bSYour Name 
110*5113495bSYour Name 			Extra spare bits added to convey additional information
111*5113495bSYour Name 
112*5113495bSYour Name 			<legal all>
113*5113495bSYour Name */
114*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_OFFSET           0x00000008
115*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_LSB              0
116*5113495bSYour Name #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_2_SPARE_MASK             0xffffffff
117*5113495bSYour Name 
118*5113495bSYour Name 
119*5113495bSYour Name #endif // _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_
120