xref: /wlan-driver/fw-api/hw/wcn6450/v1/reo_flush_queue_status.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 
21 
22 #ifndef _REO_FLUSH_QUEUE_STATUS_H_
23 #define _REO_FLUSH_QUEUE_STATUS_H_
24 #if !defined(__ASSEMBLER__)
25 #endif
26 
27 #include "uniform_reo_status_header.h"
28 
29 #define NUM_OF_DWORDS_REO_FLUSH_QUEUE_STATUS 25
30 
31 struct reo_flush_queue_status {
32     struct            uniform_reo_status_header                       status_header;
33              uint32_t error_detected                  :  1,
34                       reserved_2a                     : 31;
35              uint32_t reserved_3a                     : 32;
36              uint32_t reserved_4a                     : 32;
37              uint32_t reserved_5a                     : 32;
38              uint32_t reserved_6a                     : 32;
39              uint32_t reserved_7a                     : 32;
40              uint32_t reserved_8a                     : 32;
41              uint32_t reserved_9a                     : 32;
42              uint32_t reserved_10a                    : 32;
43              uint32_t reserved_11a                    : 32;
44              uint32_t reserved_12a                    : 32;
45              uint32_t reserved_13a                    : 32;
46              uint32_t reserved_14a                    : 32;
47              uint32_t reserved_15a                    : 32;
48              uint32_t reserved_16a                    : 32;
49              uint32_t reserved_17a                    : 32;
50              uint32_t reserved_18a                    : 32;
51              uint32_t reserved_19a                    : 32;
52              uint32_t reserved_20a                    : 32;
53              uint32_t reserved_21a                    : 32;
54              uint32_t reserved_22a                    : 32;
55              uint32_t reserved_23a                    : 32;
56              uint32_t reserved_24a                    : 28,
57                       looping_count                   :  4;
58 };
59 
60 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000
61 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
62 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff
63 
64 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000
65 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
66 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000
67 
68 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000
69 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
70 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000
71 
72 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_OFFSET    0x00000000
73 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_LSB       28
74 #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_MASK      0xf0000000
75 
76 #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_OFFSET      0x00000004
77 #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_LSB         0
78 #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_MASK        0xffffffff
79 
80 #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_OFFSET               0x00000008
81 #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_LSB                  0
82 #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_MASK                 0x00000001
83 
84 #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_OFFSET                  0x00000008
85 #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_LSB                     1
86 #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_MASK                    0xfffffffe
87 
88 #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_OFFSET                  0x0000000c
89 #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_LSB                     0
90 #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_MASK                    0xffffffff
91 
92 #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_OFFSET                  0x00000010
93 #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_LSB                     0
94 #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_MASK                    0xffffffff
95 
96 #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_OFFSET                  0x00000014
97 #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_LSB                     0
98 #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_MASK                    0xffffffff
99 
100 #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_OFFSET                  0x00000018
101 #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_LSB                     0
102 #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_MASK                    0xffffffff
103 
104 #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_OFFSET                  0x0000001c
105 #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_LSB                     0
106 #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_MASK                    0xffffffff
107 
108 #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_OFFSET                  0x00000020
109 #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_LSB                     0
110 #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_MASK                    0xffffffff
111 
112 #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_OFFSET                  0x00000024
113 #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_LSB                     0
114 #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_MASK                    0xffffffff
115 
116 #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_OFFSET                0x00000028
117 #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_LSB                   0
118 #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_MASK                  0xffffffff
119 
120 #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_OFFSET                0x0000002c
121 #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_LSB                   0
122 #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_MASK                  0xffffffff
123 
124 #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_OFFSET                0x00000030
125 #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_LSB                   0
126 #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_MASK                  0xffffffff
127 
128 #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_OFFSET                0x00000034
129 #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_LSB                   0
130 #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_MASK                  0xffffffff
131 
132 #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_OFFSET                0x00000038
133 #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_LSB                   0
134 #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_MASK                  0xffffffff
135 
136 #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_OFFSET                0x0000003c
137 #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_LSB                   0
138 #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_MASK                  0xffffffff
139 
140 #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_OFFSET                0x00000040
141 #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_LSB                   0
142 #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_MASK                  0xffffffff
143 
144 #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_OFFSET                0x00000044
145 #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_LSB                   0
146 #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_MASK                  0xffffffff
147 
148 #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_OFFSET                0x00000048
149 #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_LSB                   0
150 #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_MASK                  0xffffffff
151 
152 #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_OFFSET                0x0000004c
153 #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_LSB                   0
154 #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_MASK                  0xffffffff
155 
156 #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_OFFSET                0x00000050
157 #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_LSB                   0
158 #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_MASK                  0xffffffff
159 
160 #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_OFFSET                0x00000054
161 #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_LSB                   0
162 #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_MASK                  0xffffffff
163 
164 #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_OFFSET                0x00000058
165 #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_LSB                   0
166 #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_MASK                  0xffffffff
167 
168 #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_OFFSET                0x0000005c
169 #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_LSB                   0
170 #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_MASK                  0xffffffff
171 
172 #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_OFFSET                0x00000060
173 #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_LSB                   0
174 #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_MASK                  0x0fffffff
175 
176 #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_OFFSET               0x00000060
177 #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_LSB                  28
178 #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_MASK                 0xf0000000
179 
180 #endif
181