xref: /linux/drivers/accel/habanalabs/include/gaudi2/asic_reg/rot0_masks.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*e65e175bSOded Gabbay /* SPDX-License-Identifier: GPL-2.0
2*e65e175bSOded Gabbay  *
3*e65e175bSOded Gabbay  * Copyright 2016-2020 HabanaLabs, Ltd.
4*e65e175bSOded Gabbay  * All Rights Reserved.
5*e65e175bSOded Gabbay  *
6*e65e175bSOded Gabbay  */
7*e65e175bSOded Gabbay 
8*e65e175bSOded Gabbay /************************************
9*e65e175bSOded Gabbay  ** This is an auto-generated file **
10*e65e175bSOded Gabbay  **       DO NOT EDIT BELOW        **
11*e65e175bSOded Gabbay  ************************************/
12*e65e175bSOded Gabbay 
13*e65e175bSOded Gabbay #ifndef ASIC_REG_ROT0_MASKS_H_
14*e65e175bSOded Gabbay #define ASIC_REG_ROT0_MASKS_H_
15*e65e175bSOded Gabbay 
16*e65e175bSOded Gabbay /*
17*e65e175bSOded Gabbay  *****************************************
18*e65e175bSOded Gabbay  *   ROT0
19*e65e175bSOded Gabbay  *   (Prototype: ROTATOR)
20*e65e175bSOded Gabbay  *****************************************
21*e65e175bSOded Gabbay  */
22*e65e175bSOded Gabbay 
23*e65e175bSOded Gabbay /* ROT0_KMD_MODE */
24*e65e175bSOded Gabbay #define ROT0_KMD_MODE_EN_SHIFT 0
25*e65e175bSOded Gabbay #define ROT0_KMD_MODE_EN_MASK 0x1
26*e65e175bSOded Gabbay 
27*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_EN */
28*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_EN_Q_EN_SHIFT 0
29*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_EN_Q_EN_MASK 0x1
30*e65e175bSOded Gabbay 
31*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_ADDR_L */
32*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_ADDR_L_VAL_SHIFT 0
33*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_ADDR_L_VAL_MASK 0xFFFFFFFF
34*e65e175bSOded Gabbay 
35*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_ADDR_H */
36*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_ADDR_H_VAL_SHIFT 0
37*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_ADDR_H_VAL_MASK 0xFFFFFFFF
38*e65e175bSOded Gabbay 
39*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_DATA */
40*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_DATA_VAL_SHIFT 0
41*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_DATA_VAL_MASK 0xFFFFFFFF
42*e65e175bSOded Gabbay 
43*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_AWUSER */
44*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AWUSER_VAL_SHIFT 0
45*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AWUSER_VAL_MASK 0xFFFFFFFF
46*e65e175bSOded Gabbay 
47*e65e175bSOded Gabbay /* ROT0_CPL_QUEUE_AXI */
48*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AXI_CACHE_SHIFT 0
49*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AXI_CACHE_MASK 0xF
50*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AXI_PROT_SHIFT 4
51*e65e175bSOded Gabbay #define ROT0_CPL_QUEUE_AXI_PROT_MASK 0x70
52*e65e175bSOded Gabbay 
53*e65e175bSOded Gabbay /* ROT0_CPL_MSG_THRESHOLD */
54*e65e175bSOded Gabbay #define ROT0_CPL_MSG_THRESHOLD_VAL_SHIFT 0
55*e65e175bSOded Gabbay #define ROT0_CPL_MSG_THRESHOLD_VAL_MASK 0x3F
56*e65e175bSOded Gabbay 
57*e65e175bSOded Gabbay /* ROT0_CPL_MSG_AXI */
58*e65e175bSOded Gabbay #define ROT0_CPL_MSG_AXI_CACHE_SHIFT 0
59*e65e175bSOded Gabbay #define ROT0_CPL_MSG_AXI_CACHE_MASK 0xF
60*e65e175bSOded Gabbay #define ROT0_CPL_MSG_AXI_PROT_SHIFT 4
61*e65e175bSOded Gabbay #define ROT0_CPL_MSG_AXI_PROT_MASK 0x70
62*e65e175bSOded Gabbay 
63*e65e175bSOded Gabbay /* ROT0_AXI_WB */
64*e65e175bSOded Gabbay #define ROT0_AXI_WB_CACHE_SHIFT 0
65*e65e175bSOded Gabbay #define ROT0_AXI_WB_CACHE_MASK 0xF
66*e65e175bSOded Gabbay #define ROT0_AXI_WB_PROT_SHIFT 4
67*e65e175bSOded Gabbay #define ROT0_AXI_WB_PROT_MASK 0x70
68*e65e175bSOded Gabbay 
69*e65e175bSOded Gabbay /* ROT0_ERR_CFG */
70*e65e175bSOded Gabbay #define ROT0_ERR_CFG_STOP_ON_ERR_SHIFT 0
71*e65e175bSOded Gabbay #define ROT0_ERR_CFG_STOP_ON_ERR_MASK 0x1
72*e65e175bSOded Gabbay 
73*e65e175bSOded Gabbay /* ROT0_ERR_STATUS */
74*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_HBW_RD_SHIFT 0
75*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_HBW_RD_MASK 0x1
76*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_HBW_WR_SHIFT 1
77*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_HBW_WR_MASK 0x2
78*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_QMAN_HBW_RD_SHIFT 2
79*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_QMAN_HBW_RD_MASK 0x4
80*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_QMAN_HBW_WR_SHIFT 3
81*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_QMAN_HBW_WR_MASK 0x8
82*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_LBW_WR_SHIFT 4
83*e65e175bSOded Gabbay #define ROT0_ERR_STATUS_ROT_LBW_WR_MASK 0x10
84*e65e175bSOded Gabbay 
85*e65e175bSOded Gabbay /* ROT0_WBC_MAX_OUTSTANDING */
86*e65e175bSOded Gabbay #define ROT0_WBC_MAX_OUTSTANDING_VAL_SHIFT 0
87*e65e175bSOded Gabbay #define ROT0_WBC_MAX_OUTSTANDING_VAL_MASK 0xFFFF
88*e65e175bSOded Gabbay 
89*e65e175bSOded Gabbay /* ROT0_WBC_RL */
90*e65e175bSOded Gabbay #define ROT0_WBC_RL_SATURATION_SHIFT 0
91*e65e175bSOded Gabbay #define ROT0_WBC_RL_SATURATION_MASK 0xFF
92*e65e175bSOded Gabbay #define ROT0_WBC_RL_TIMEOUT_SHIFT 8
93*e65e175bSOded Gabbay #define ROT0_WBC_RL_TIMEOUT_MASK 0xFF00
94*e65e175bSOded Gabbay #define ROT0_WBC_RL_RST_TOKEN_SHIFT 16
95*e65e175bSOded Gabbay #define ROT0_WBC_RL_RST_TOKEN_MASK 0xFF0000
96*e65e175bSOded Gabbay #define ROT0_WBC_RL_RATE_LIMITER_EN_SHIFT 24
97*e65e175bSOded Gabbay #define ROT0_WBC_RL_RATE_LIMITER_EN_MASK 0x1000000
98*e65e175bSOded Gabbay 
99*e65e175bSOded Gabbay /* ROT0_WBC_INFLIGHTS */
100*e65e175bSOded Gabbay #define ROT0_WBC_INFLIGHTS_VAL_SHIFT 0
101*e65e175bSOded Gabbay #define ROT0_WBC_INFLIGHTS_VAL_MASK 0xFFFF
102*e65e175bSOded Gabbay 
103*e65e175bSOded Gabbay /* ROT0_WBC_INFO */
104*e65e175bSOded Gabbay #define ROT0_WBC_INFO_EMPTY_SHIFT 0
105*e65e175bSOded Gabbay #define ROT0_WBC_INFO_EMPTY_MASK 0x1
106*e65e175bSOded Gabbay #define ROT0_WBC_INFO_AXI_IDLE_SHIFT 1
107*e65e175bSOded Gabbay #define ROT0_WBC_INFO_AXI_IDLE_MASK 0x2
108*e65e175bSOded Gabbay 
109*e65e175bSOded Gabbay /* ROT0_WBC_MON */
110*e65e175bSOded Gabbay #define ROT0_WBC_MON_CNT_SHIFT 0
111*e65e175bSOded Gabbay #define ROT0_WBC_MON_CNT_MASK 0x1
112*e65e175bSOded Gabbay #define ROT0_WBC_MON_TS_SHIFT 8
113*e65e175bSOded Gabbay #define ROT0_WBC_MON_TS_MASK 0x300
114*e65e175bSOded Gabbay #define ROT0_WBC_MON_CONTEXT_ID_SHIFT 16
115*e65e175bSOded Gabbay #define ROT0_WBC_MON_CONTEXT_ID_MASK 0xFFFF0000
116*e65e175bSOded Gabbay 
117*e65e175bSOded Gabbay /* ROT0_RSB_CAM_MAX_SIZE */
118*e65e175bSOded Gabbay #define ROT0_RSB_CAM_MAX_SIZE_DATA_SHIFT 0
119*e65e175bSOded Gabbay #define ROT0_RSB_CAM_MAX_SIZE_DATA_MASK 0xFFFF
120*e65e175bSOded Gabbay #define ROT0_RSB_CAM_MAX_SIZE_MD_SHIFT 16
121*e65e175bSOded Gabbay #define ROT0_RSB_CAM_MAX_SIZE_MD_MASK 0xFFFF0000
122*e65e175bSOded Gabbay 
123*e65e175bSOded Gabbay /* ROT0_RSB_CFG */
124*e65e175bSOded Gabbay #define ROT0_RSB_CFG_CACHE_DISABLE_SHIFT 0
125*e65e175bSOded Gabbay #define ROT0_RSB_CFG_CACHE_DISABLE_MASK 0x1
126*e65e175bSOded Gabbay #define ROT0_RSB_CFG_ENABLE_CGATE_SHIFT 1
127*e65e175bSOded Gabbay #define ROT0_RSB_CFG_ENABLE_CGATE_MASK 0x2
128*e65e175bSOded Gabbay 
129*e65e175bSOded Gabbay /* ROT0_RSB_MAX_OS */
130*e65e175bSOded Gabbay #define ROT0_RSB_MAX_OS_VAL_SHIFT 0
131*e65e175bSOded Gabbay #define ROT0_RSB_MAX_OS_VAL_MASK 0xFFFF
132*e65e175bSOded Gabbay 
133*e65e175bSOded Gabbay /* ROT0_RSB_RL */
134*e65e175bSOded Gabbay #define ROT0_RSB_RL_SATURATION_SHIFT 0
135*e65e175bSOded Gabbay #define ROT0_RSB_RL_SATURATION_MASK 0xFF
136*e65e175bSOded Gabbay #define ROT0_RSB_RL_TIMEOUT_SHIFT 8
137*e65e175bSOded Gabbay #define ROT0_RSB_RL_TIMEOUT_MASK 0xFF00
138*e65e175bSOded Gabbay #define ROT0_RSB_RL_RST_TOKEN_SHIFT 16
139*e65e175bSOded Gabbay #define ROT0_RSB_RL_RST_TOKEN_MASK 0xFF0000
140*e65e175bSOded Gabbay #define ROT0_RSB_RL_RATE_LIMITER_EN_SHIFT 24
141*e65e175bSOded Gabbay #define ROT0_RSB_RL_RATE_LIMITER_EN_MASK 0x1000000
142*e65e175bSOded Gabbay 
143*e65e175bSOded Gabbay /* ROT0_RSB_INFLIGHTS */
144*e65e175bSOded Gabbay #define ROT0_RSB_INFLIGHTS_VAL_SHIFT 0
145*e65e175bSOded Gabbay #define ROT0_RSB_INFLIGHTS_VAL_MASK 0xFFFFFFFF
146*e65e175bSOded Gabbay 
147*e65e175bSOded Gabbay /* ROT0_RSB_OCCUPANCY */
148*e65e175bSOded Gabbay #define ROT0_RSB_OCCUPANCY_VAL_SHIFT 0
149*e65e175bSOded Gabbay #define ROT0_RSB_OCCUPANCY_VAL_MASK 0xFFFFFFFF
150*e65e175bSOded Gabbay 
151*e65e175bSOded Gabbay /* ROT0_RSB_INFO */
152*e65e175bSOded Gabbay #define ROT0_RSB_INFO_EMPTY_SHIFT 0
153*e65e175bSOded Gabbay #define ROT0_RSB_INFO_EMPTY_MASK 0x1
154*e65e175bSOded Gabbay #define ROT0_RSB_INFO_AXI_IDLE_SHIFT 1
155*e65e175bSOded Gabbay #define ROT0_RSB_INFO_AXI_IDLE_MASK 0x2
156*e65e175bSOded Gabbay 
157*e65e175bSOded Gabbay /* ROT0_RSB_MON */
158*e65e175bSOded Gabbay #define ROT0_RSB_MON_CNT_SHIFT 0
159*e65e175bSOded Gabbay #define ROT0_RSB_MON_CNT_MASK 0x1FFF
160*e65e175bSOded Gabbay #define ROT0_RSB_MON_TS_SHIFT 16
161*e65e175bSOded Gabbay #define ROT0_RSB_MON_TS_MASK 0x30000
162*e65e175bSOded Gabbay 
163*e65e175bSOded Gabbay /* ROT0_RSB_MON_CONTEXT_ID */
164*e65e175bSOded Gabbay #define ROT0_RSB_MON_CONTEXT_ID_VAL_SHIFT 0
165*e65e175bSOded Gabbay #define ROT0_RSB_MON_CONTEXT_ID_VAL_MASK 0xFFFFFFFF
166*e65e175bSOded Gabbay 
167*e65e175bSOded Gabbay /* ROT0_MSS_HALT */
168*e65e175bSOded Gabbay #define ROT0_MSS_HALT_VAL_SHIFT 0
169*e65e175bSOded Gabbay #define ROT0_MSS_HALT_VAL_MASK 0x7
170*e65e175bSOded Gabbay 
171*e65e175bSOded Gabbay /* ROT0_MSS_SEI_STATUS */
172*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I0_SHIFT 0
173*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I0_MASK 0x1
174*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I1_SHIFT 1
175*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I1_MASK 0x2
176*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I2_SHIFT 2
177*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I2_MASK 0x4
178*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I3_SHIFT 3
179*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I3_MASK 0x8
180*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I4_SHIFT 4
181*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I4_MASK 0x10
182*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I5_SHIFT 5
183*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I5_MASK 0x20
184*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I6_SHIFT 6
185*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I6_MASK 0x40
186*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I7_SHIFT 7
187*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I7_MASK 0x80
188*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I8_SHIFT 8
189*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I8_MASK 0x100
190*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I9_SHIFT 9
191*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I9_MASK 0x200
192*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I10_SHIFT 10
193*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I10_MASK 0x400
194*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I11_SHIFT 11
195*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I11_MASK 0x800
196*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I12_SHIFT 12
197*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I12_MASK 0x1000
198*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I13_SHIFT 13
199*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I13_MASK 0x2000
200*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I14_SHIFT 14
201*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I14_MASK 0x4000
202*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I15_SHIFT 15
203*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I15_MASK 0x8000
204*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I16_SHIFT 16
205*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I16_MASK 0x10000
206*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I17_SHIFT 17
207*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I17_MASK 0x20000
208*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I18_SHIFT 18
209*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I18_MASK 0x40000
210*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I19_SHIFT 19
211*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I19_MASK 0x80000
212*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I20_SHIFT 20
213*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I20_MASK 0x100000
214*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I21_SHIFT 21
215*e65e175bSOded Gabbay #define ROT0_MSS_SEI_STATUS_I21_MASK 0x200000
216*e65e175bSOded Gabbay 
217*e65e175bSOded Gabbay /* ROT0_MSS_SEI_MASK */
218*e65e175bSOded Gabbay #define ROT0_MSS_SEI_MASK_VAL_SHIFT 0
219*e65e175bSOded Gabbay #define ROT0_MSS_SEI_MASK_VAL_MASK 0x3FFFFF
220*e65e175bSOded Gabbay 
221*e65e175bSOded Gabbay /* ROT0_MSS_SPI_STATUS */
222*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I0_SHIFT 0
223*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I0_MASK 0x1
224*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I1_SHIFT 1
225*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I1_MASK 0x2
226*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I2_SHIFT 2
227*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I2_MASK 0x4
228*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I3_SHIFT 3
229*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I3_MASK 0x8
230*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I4_SHIFT 4
231*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I4_MASK 0x10
232*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I5_SHIFT 5
233*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I5_MASK 0x20
234*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I6_SHIFT 6
235*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I6_MASK 0x40
236*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I7_SHIFT 7
237*e65e175bSOded Gabbay #define ROT0_MSS_SPI_STATUS_I7_MASK 0x80
238*e65e175bSOded Gabbay 
239*e65e175bSOded Gabbay /* ROT0_MSS_SPI_MASK */
240*e65e175bSOded Gabbay #define ROT0_MSS_SPI_MASK_VAL_SHIFT 0
241*e65e175bSOded Gabbay #define ROT0_MSS_SPI_MASK_VAL_MASK 0xFF
242*e65e175bSOded Gabbay 
243*e65e175bSOded Gabbay /* ROT0_DISABLE_PAD_CALC */
244*e65e175bSOded Gabbay #define ROT0_DISABLE_PAD_CALC_VAL_SHIFT 0
245*e65e175bSOded Gabbay #define ROT0_DISABLE_PAD_CALC_VAL_MASK 0x3
246*e65e175bSOded Gabbay 
247*e65e175bSOded Gabbay /* ROT0_QMAN_CFG */
248*e65e175bSOded Gabbay #define ROT0_QMAN_CFG_FORCE_STOP_SHIFT 0
249*e65e175bSOded Gabbay #define ROT0_QMAN_CFG_FORCE_STOP_MASK 0x1
250*e65e175bSOded Gabbay 
251*e65e175bSOded Gabbay /* ROT0_CLK_EN */
252*e65e175bSOded Gabbay #define ROT0_CLK_EN_LBW_CFG_DIS_SHIFT 0
253*e65e175bSOded Gabbay #define ROT0_CLK_EN_LBW_CFG_DIS_MASK 0x1
254*e65e175bSOded Gabbay #define ROT0_CLK_EN_DBG_CFG_DIS_SHIFT 4
255*e65e175bSOded Gabbay #define ROT0_CLK_EN_DBG_CFG_DIS_MASK 0x10
256*e65e175bSOded Gabbay #define ROT0_CLK_EN_SB_EMPTY_MASK_SHIFT 5
257*e65e175bSOded Gabbay #define ROT0_CLK_EN_SB_EMPTY_MASK_MASK 0x20
258*e65e175bSOded Gabbay 
259*e65e175bSOded Gabbay /* ROT0_MRSB_CAM_MAX_SIZE */
260*e65e175bSOded Gabbay #define ROT0_MRSB_CAM_MAX_SIZE_DATA_SHIFT 0
261*e65e175bSOded Gabbay #define ROT0_MRSB_CAM_MAX_SIZE_DATA_MASK 0xFFFF
262*e65e175bSOded Gabbay #define ROT0_MRSB_CAM_MAX_SIZE_MD_SHIFT 16
263*e65e175bSOded Gabbay #define ROT0_MRSB_CAM_MAX_SIZE_MD_MASK 0xFFFF0000
264*e65e175bSOded Gabbay 
265*e65e175bSOded Gabbay /* ROT0_MRSB_CFG */
266*e65e175bSOded Gabbay #define ROT0_MRSB_CFG_CACHE_DISABLE_SHIFT 0
267*e65e175bSOded Gabbay #define ROT0_MRSB_CFG_CACHE_DISABLE_MASK 0x1
268*e65e175bSOded Gabbay #define ROT0_MRSB_CFG_ENABLE_CGATE_SHIFT 1
269*e65e175bSOded Gabbay #define ROT0_MRSB_CFG_ENABLE_CGATE_MASK 0x2
270*e65e175bSOded Gabbay 
271*e65e175bSOded Gabbay /* ROT0_MRSB_MAX_OS */
272*e65e175bSOded Gabbay #define ROT0_MRSB_MAX_OS_VAL_SHIFT 0
273*e65e175bSOded Gabbay #define ROT0_MRSB_MAX_OS_VAL_MASK 0xFFFF
274*e65e175bSOded Gabbay 
275*e65e175bSOded Gabbay /* ROT0_MRSB_RL */
276*e65e175bSOded Gabbay #define ROT0_MRSB_RL_SATURATION_SHIFT 0
277*e65e175bSOded Gabbay #define ROT0_MRSB_RL_SATURATION_MASK 0xFF
278*e65e175bSOded Gabbay #define ROT0_MRSB_RL_TIMEOUT_SHIFT 8
279*e65e175bSOded Gabbay #define ROT0_MRSB_RL_TIMEOUT_MASK 0xFF00
280*e65e175bSOded Gabbay #define ROT0_MRSB_RL_RST_TOKEN_SHIFT 16
281*e65e175bSOded Gabbay #define ROT0_MRSB_RL_RST_TOKEN_MASK 0xFF0000
282*e65e175bSOded Gabbay #define ROT0_MRSB_RL_RATE_LIMITER_EN_SHIFT 24
283*e65e175bSOded Gabbay #define ROT0_MRSB_RL_RATE_LIMITER_EN_MASK 0x1000000
284*e65e175bSOded Gabbay 
285*e65e175bSOded Gabbay /* ROT0_MRSB_INFLIGHTS */
286*e65e175bSOded Gabbay #define ROT0_MRSB_INFLIGHTS_VAL_SHIFT 0
287*e65e175bSOded Gabbay #define ROT0_MRSB_INFLIGHTS_VAL_MASK 0xFFFFFFFF
288*e65e175bSOded Gabbay 
289*e65e175bSOded Gabbay /* ROT0_MRSB_OCCUPANCY */
290*e65e175bSOded Gabbay #define ROT0_MRSB_OCCUPANCY_VAL_SHIFT 0
291*e65e175bSOded Gabbay #define ROT0_MRSB_OCCUPANCY_VAL_MASK 0xFFFFFFFF
292*e65e175bSOded Gabbay 
293*e65e175bSOded Gabbay /* ROT0_MRSB_INFO */
294*e65e175bSOded Gabbay #define ROT0_MRSB_INFO_EMPTY_SHIFT 0
295*e65e175bSOded Gabbay #define ROT0_MRSB_INFO_EMPTY_MASK 0x1
296*e65e175bSOded Gabbay #define ROT0_MRSB_INFO_AXI_IDLE_SHIFT 1
297*e65e175bSOded Gabbay #define ROT0_MRSB_INFO_AXI_IDLE_MASK 0x2
298*e65e175bSOded Gabbay 
299*e65e175bSOded Gabbay /* ROT0_MRSB_MON */
300*e65e175bSOded Gabbay #define ROT0_MRSB_MON_CNT_SHIFT 0
301*e65e175bSOded Gabbay #define ROT0_MRSB_MON_CNT_MASK 0x1FFF
302*e65e175bSOded Gabbay #define ROT0_MRSB_MON_TS_SHIFT 16
303*e65e175bSOded Gabbay #define ROT0_MRSB_MON_TS_MASK 0x30000
304*e65e175bSOded Gabbay 
305*e65e175bSOded Gabbay /* ROT0_MRSB_MON_CONTEXT_ID */
306*e65e175bSOded Gabbay #define ROT0_MRSB_MON_CONTEXT_ID_VAL_SHIFT 0
307*e65e175bSOded Gabbay #define ROT0_MRSB_MON_CONTEXT_ID_VAL_MASK 0xFFFFFFFF
308*e65e175bSOded Gabbay 
309*e65e175bSOded Gabbay /* ROT0_MSS_STS */
310*e65e175bSOded Gabbay #define ROT0_MSS_STS_IS_HALT_SHIFT 0
311*e65e175bSOded Gabbay #define ROT0_MSS_STS_IS_HALT_MASK 0x1
312*e65e175bSOded Gabbay 
313*e65e175bSOded Gabbay #endif /* ASIC_REG_ROT0_MASKS_H_ */
314