xref: /linux/drivers/media/platform/imagination/e5010-mmu-regs.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1*a1e29404SDevarsh Thakkar /* SPDX-License-Identifier: GPL-2.0 */
2*a1e29404SDevarsh Thakkar /*
3*a1e29404SDevarsh Thakkar  * Imagination E5010 JPEG Encoder driver.
4*a1e29404SDevarsh Thakkar  *
5*a1e29404SDevarsh Thakkar  * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
6*a1e29404SDevarsh Thakkar  *
7*a1e29404SDevarsh Thakkar  * Author: David Huang <d-huang@ti.com>
8*a1e29404SDevarsh Thakkar  * Author: Devarsh Thakkar <devarsht@ti.com>
9*a1e29404SDevarsh Thakkar  */
10*a1e29404SDevarsh Thakkar 
11*a1e29404SDevarsh Thakkar #ifndef _E5010_MMU_REGS_H
12*a1e29404SDevarsh Thakkar #define _E5010_MMU_REGS_H
13*a1e29404SDevarsh Thakkar 
14*a1e29404SDevarsh Thakkar #define MMU_MMU_DIR_BASE_ADDR_OFFSET					(0x0020)
15*a1e29404SDevarsh Thakkar #define MMU_MMU_DIR_BASE_ADDR_STRIDE					(4)
16*a1e29404SDevarsh Thakkar #define MMU_MMU_DIR_BASE_ADDR_NO_ENTRIES				(4)
17*a1e29404SDevarsh Thakkar 
18*a1e29404SDevarsh Thakkar #define MMU_MMU_DIR_BASE_ADDR_MMU_DIR_BASE_ADDR_MASK			(0xFFFFFFFF)
19*a1e29404SDevarsh Thakkar #define MMU_MMU_DIR_BASE_ADDR_MMU_DIR_BASE_ADDR_SHIFT			(0)
20*a1e29404SDevarsh Thakkar 
21*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_OFFSET						(0x0040)
22*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_STRIDE						(4)
23*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_NO_ENTRIES					(4)
24*a1e29404SDevarsh Thakkar 
25*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_128INTERLEAVE_MASK			(0x00000010)
26*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_128INTERLEAVE_SHIFT			(4)
27*a1e29404SDevarsh Thakkar 
28*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_ENABLE_MASK				(0x00000008)
29*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_ENABLE_SHIFT				(3)
30*a1e29404SDevarsh Thakkar 
31*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_STRIDE_MASK				(0x00000007)
32*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_CFG_TILE_STRIDE_SHIFT				(0)
33*a1e29404SDevarsh Thakkar 
34*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MIN_ADDR_OFFSET					(0x0050)
35*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MIN_ADDR_STRIDE					(4)
36*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MIN_ADDR_NO_ENTRIES				(4)
37*a1e29404SDevarsh Thakkar 
38*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MIN_ADDR_TILE_MIN_ADDR_MASK			(0xFFFFFFFF)
39*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MIN_ADDR_TILE_MIN_ADDR_SHIFT			(0)
40*a1e29404SDevarsh Thakkar 
41*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MAX_ADDR_OFFSET					(0x0060)
42*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MAX_ADDR_STRIDE					(4)
43*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MAX_ADDR_NO_ENTRIES				(4)
44*a1e29404SDevarsh Thakkar 
45*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MAX_ADDR_TILE_MAX_ADDR_MASK			(0xFFFFFFFF)
46*a1e29404SDevarsh Thakkar #define MMU_MMU_TILE_MAX_ADDR_TILE_MAX_ADDR_SHIFT			(0)
47*a1e29404SDevarsh Thakkar 
48*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_OFFSET						(0x0000)
49*a1e29404SDevarsh Thakkar 
50*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_MMU_TILING_SCHEME_MASK				(0x00000001)
51*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_MMU_TILING_SCHEME_SHIFT			(0)
52*a1e29404SDevarsh Thakkar 
53*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_MMU_CACHE_POLICY_MASK				(0x00000100)
54*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_MMU_CACHE_POLICY_SHIFT				(8)
55*a1e29404SDevarsh Thakkar 
56*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_FORCE_CACHE_POLICY_BYPASS_MASK			(0x00000200)
57*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_FORCE_CACHE_POLICY_BYPASS_SHIFT		(9)
58*a1e29404SDevarsh Thakkar 
59*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_STALL_ON_PROTOCOL_FAULT_MASK			(0x00001000)
60*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL0_STALL_ON_PROTOCOL_FAULT_SHIFT			(12)
61*a1e29404SDevarsh Thakkar 
62*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_OFFSET						(0x0008)
63*a1e29404SDevarsh Thakkar 
64*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FLUSH_MASK					(0x00000008)
65*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FLUSH_SHIFT				(3)
66*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FLUSH_NO_REPS				(4)
67*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FLUSH_SIZE					(1)
68*a1e29404SDevarsh Thakkar 
69*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_INVALDC_MASK				(0x00000800)
70*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_INVALDC_SHIFT				(11)
71*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_INVALDC_NO_REPS				(4)
72*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_INVALDC_SIZE				(1)
73*a1e29404SDevarsh Thakkar 
74*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FAULT_CLEAR_MASK				(0x00010000)
75*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_FAULT_CLEAR_SHIFT				(16)
76*a1e29404SDevarsh Thakkar 
77*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_PROTOCOL_FAULT_CLEAR_MASK			(0x00100000)
78*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_PROTOCOL_FAULT_CLEAR_SHIFT			(20)
79*a1e29404SDevarsh Thakkar 
80*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_PAUSE_SET_MASK				(0x01000000)
81*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_PAUSE_SET_SHIFT				(24)
82*a1e29404SDevarsh Thakkar 
83*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_PAUSE_CLEAR_MASK				(0x02000000)
84*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_PAUSE_CLEAR_SHIFT				(25)
85*a1e29404SDevarsh Thakkar 
86*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_SOFT_RESET_MASK				(0x10000000)
87*a1e29404SDevarsh Thakkar #define MMU_MMU_CONTROL1_MMU_SOFT_RESET_SHIFT				(28)
88*a1e29404SDevarsh Thakkar 
89*a1e29404SDevarsh Thakkar #define MMU_MMU_BANK_INDEX_OFFSET					(0x0010)
90*a1e29404SDevarsh Thakkar 
91*a1e29404SDevarsh Thakkar #define MMU_MMU_BANK_INDEX_MMU_BANK_INDEX_MASK				(0xC0000000)
92*a1e29404SDevarsh Thakkar #define MMU_MMU_BANK_INDEX_MMU_BANK_INDEX_SHIFT				(30)
93*a1e29404SDevarsh Thakkar #define MMU_MMU_BANK_INDEX_MMU_BANK_INDEX_NO_REPS			(16)
94*a1e29404SDevarsh Thakkar #define MMU_MMU_BANK_INDEX_MMU_BANK_INDEX_SIZE				(2)
95*a1e29404SDevarsh Thakkar 
96*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_OFFSET				(0x0018)
97*a1e29404SDevarsh Thakkar 
98*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_PRIORITY_ENABLE_MASK		(0x00008000)
99*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_PRIORITY_ENABLE_SHIFT		(15)
100*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_PRIORITY_ENABLE_NO_REPS		(16)
101*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_PRIORITY_ENABLE_SIZE		(1)
102*a1e29404SDevarsh Thakkar 
103*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_MMU_PRIORITY_ENABLE_MASK	(0x00010000)
104*a1e29404SDevarsh Thakkar #define MMU_REQUEST_PRIORITY_ENABLE_CMD_MMU_PRIORITY_ENABLE_SHIFT	(16)
105*a1e29404SDevarsh Thakkar 
106*a1e29404SDevarsh Thakkar #define MMU_REQUEST_LIMITED_THROUGHPUT_OFFSET				(0x001C)
107*a1e29404SDevarsh Thakkar 
108*a1e29404SDevarsh Thakkar #define MMU_REQUEST_LIMITED_THROUGHPUT_LIMITED_WORDS_MASK		(0x000003FF)
109*a1e29404SDevarsh Thakkar #define MMU_REQUEST_LIMITED_THROUGHPUT_LIMITED_WORDS_SHIFT		(0)
110*a1e29404SDevarsh Thakkar 
111*a1e29404SDevarsh Thakkar #define MMU_REQUEST_LIMITED_THROUGHPUT_REQUEST_GAP_MASK			(0x0FFF0000)
112*a1e29404SDevarsh Thakkar #define MMU_REQUEST_LIMITED_THROUGHPUT_REQUEST_GAP_SHIFT		(16)
113*a1e29404SDevarsh Thakkar 
114*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_OFFSET					(0x0070)
115*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_TRUSTED					(IMG_TRUE)
116*a1e29404SDevarsh Thakkar 
117*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_MMU_BYPASS_MASK				(0x00000001)
118*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_MMU_BYPASS_SHIFT			(0)
119*a1e29404SDevarsh Thakkar 
120*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_MMU_ENABLE_EXT_ADDRESSING_MASK		(0x00000010)
121*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_MMU_ENABLE_EXT_ADDRESSING_SHIFT		(4)
122*a1e29404SDevarsh Thakkar 
123*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_UPPER_ADDRESS_FIXED_MASK		(0x00FF0000)
124*a1e29404SDevarsh Thakkar #define MMU_MMU_ADDRESS_CONTROL_UPPER_ADDRESS_FIXED_SHIFT		(16)
125*a1e29404SDevarsh Thakkar 
126*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_OFFSET						(0x0080)
127*a1e29404SDevarsh Thakkar 
128*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_NUM_REQUESTORS_MASK				(0x0000000F)
129*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_NUM_REQUESTORS_SHIFT				(0)
130*a1e29404SDevarsh Thakkar 
131*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_EXTENDED_ADDR_RANGE_MASK			(0x000000F0)
132*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_EXTENDED_ADDR_RANGE_SHIFT			(4)
133*a1e29404SDevarsh Thakkar 
134*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_GROUP_OVERRIDE_SIZE_MASK			(0x00000700)
135*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_GROUP_OVERRIDE_SIZE_SHIFT			(8)
136*a1e29404SDevarsh Thakkar 
137*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_ADDR_COHERENCY_SUPPORTED_MASK			(0x00001000)
138*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_ADDR_COHERENCY_SUPPORTED_SHIFT			(12)
139*a1e29404SDevarsh Thakkar 
140*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_MMU_SUPPORTED_MASK				(0x00002000)
141*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_MMU_SUPPORTED_SHIFT				(13)
142*a1e29404SDevarsh Thakkar 
143*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_TILE_ADDR_GRANULARITY_MASK			(0x001F0000)
144*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_TILE_ADDR_GRANULARITY_SHIFT			(16)
145*a1e29404SDevarsh Thakkar 
146*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_NO_READ_REORDER_MASK				(0x00200000)
147*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_NO_READ_REORDER_SHIFT				(21)
148*a1e29404SDevarsh Thakkar 
149*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_TAGS_SUPPORTED_MASK				(0xFFC00000)
150*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG0_TAGS_SUPPORTED_SHIFT				(22)
151*a1e29404SDevarsh Thakkar 
152*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_OFFSET						(0x0084)
153*a1e29404SDevarsh Thakkar 
154*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_PAGE_SIZE_MASK					(0x0000000F)
155*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_PAGE_SIZE_SHIFT					(0)
156*a1e29404SDevarsh Thakkar 
157*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_PAGE_CACHE_ENTRIES_MASK				(0x0000FF00)
158*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_PAGE_CACHE_ENTRIES_SHIFT			(8)
159*a1e29404SDevarsh Thakkar 
160*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_DIR_CACHE_ENTRIES_MASK				(0x001F0000)
161*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_DIR_CACHE_ENTRIES_SHIFT				(16)
162*a1e29404SDevarsh Thakkar 
163*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_BANDWIDTH_COUNT_SUPPORTED_MASK			(0x01000000)
164*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_BANDWIDTH_COUNT_SUPPORTED_SHIFT			(24)
165*a1e29404SDevarsh Thakkar 
166*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_STALL_COUNT_SUPPORTED_MASK			(0x02000000)
167*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_STALL_COUNT_SUPPORTED_SHIFT			(25)
168*a1e29404SDevarsh Thakkar 
169*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_LATENCY_COUNT_SUPPORTED_MASK			(0x04000000)
170*a1e29404SDevarsh Thakkar #define MMU_MMU_CONFIG1_LATENCY_COUNT_SUPPORTED_SHIFT			(26)
171*a1e29404SDevarsh Thakkar 
172*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS0_OFFSET						(0x0088)
173*a1e29404SDevarsh Thakkar 
174*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS0_MMU_PF_N_RW_MASK				(0x00000001)
175*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS0_MMU_PF_N_RW_SHIFT				(0)
176*a1e29404SDevarsh Thakkar 
177*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS0_MMU_FAULT_ADDR_MASK				(0xFFFFF000)
178*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS0_MMU_FAULT_ADDR_SHIFT				(12)
179*a1e29404SDevarsh Thakkar 
180*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_OFFSET						(0x008C)
181*a1e29404SDevarsh Thakkar 
182*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_REQ_STAT_MASK				(0x0000FFFF)
183*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_REQ_STAT_SHIFT			(0)
184*a1e29404SDevarsh Thakkar 
185*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_REQ_ID_MASK				(0x000F0000)
186*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_REQ_ID_SHIFT				(16)
187*a1e29404SDevarsh Thakkar 
188*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_INDEX_MASK				(0x03000000)
189*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_INDEX_SHIFT				(24)
190*a1e29404SDevarsh Thakkar 
191*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_RNW_MASK				(0x10000000)
192*a1e29404SDevarsh Thakkar #define MMU_MMU_STATUS1_MMU_FAULT_RNW_SHIFT				(28)
193*a1e29404SDevarsh Thakkar 
194*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_OFFSET						(0x0090)
195*a1e29404SDevarsh Thakkar 
196*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_TAG_OUTSTANDING_MASK				(0x000003FF)
197*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_TAG_OUTSTANDING_SHIFT				(0)
198*a1e29404SDevarsh Thakkar 
199*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_WRRESP_FAULT_MASK				(0x00001000)
200*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_WRRESP_FAULT_SHIFT				(12)
201*a1e29404SDevarsh Thakkar 
202*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_RDRESP_FAULT_MASK				(0x00002000)
203*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_RDRESP_FAULT_SHIFT				(13)
204*a1e29404SDevarsh Thakkar 
205*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_READ_BURST_FAULT_MASK			(0x00004000)
206*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_EXT_READ_BURST_FAULT_SHIFT			(14)
207*a1e29404SDevarsh Thakkar 
208*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_INT_PROTOCOL_FAULT_MASK				(0x80000000)
209*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_INT_PROTOCOL_FAULT_SHIFT			(31)
210*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_INT_PROTOCOL_FAULT_NO_REPS			(16)
211*a1e29404SDevarsh Thakkar #define MMU_MMU_MEM_REQ_INT_PROTOCOL_FAULT_SIZE				(1)
212*a1e29404SDevarsh Thakkar 
213*a1e29404SDevarsh Thakkar #define MMU_MMU_FAULT_SELECT_OFFSET					(0x00A0)
214*a1e29404SDevarsh Thakkar 
215*a1e29404SDevarsh Thakkar #define MMU_MMU_FAULT_SELECT_MMU_FAULT_SELECT_MASK			(0x0000000F)
216*a1e29404SDevarsh Thakkar #define MMU_MMU_FAULT_SELECT_MMU_FAULT_SELECT_SHIFT			(0)
217*a1e29404SDevarsh Thakkar 
218*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_OFFSET					(0x00A8)
219*a1e29404SDevarsh Thakkar 
220*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_PAGE_BREAK_MASK			(0x00000001)
221*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_PAGE_BREAK_SHIFT			(0)
222*a1e29404SDevarsh Thakkar 
223*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_WRITE_MASK				(0x00000010)
224*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_WRITE_SHIFT				(4)
225*a1e29404SDevarsh Thakkar 
226*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_READ_MASK				(0x00000020)
227*a1e29404SDevarsh Thakkar #define MMU_PROTOCOL_FAULT_FAULT_READ_SHIFT				(5)
228*a1e29404SDevarsh Thakkar 
229*a1e29404SDevarsh Thakkar #define MMU_TOTAL_READ_REQ_OFFSET					(0x0100)
230*a1e29404SDevarsh Thakkar 
231*a1e29404SDevarsh Thakkar #define MMU_TOTAL_READ_REQ_TOTAL_READ_REQ_MASK				(0xFFFFFFFF)
232*a1e29404SDevarsh Thakkar #define MMU_TOTAL_READ_REQ_TOTAL_READ_REQ_SHIFT				(0)
233*a1e29404SDevarsh Thakkar 
234*a1e29404SDevarsh Thakkar #define MMU_TOTAL_WRITE_REQ_OFFSET					(0x0104)
235*a1e29404SDevarsh Thakkar 
236*a1e29404SDevarsh Thakkar #define MMU_TOTAL_WRITE_REQ_TOTAL_WRITE_REQ_MASK			(0xFFFFFFFF)
237*a1e29404SDevarsh Thakkar #define MMU_TOTAL_WRITE_REQ_TOTAL_WRITE_REQ_SHIFT			(0)
238*a1e29404SDevarsh Thakkar 
239*a1e29404SDevarsh Thakkar #define MMU_READS_LESS_64_REQ_OFFSET					(0x0108)
240*a1e29404SDevarsh Thakkar 
241*a1e29404SDevarsh Thakkar #define MMU_READS_LESS_64_REQ_READS_LESS_64_REQ_MASK			(0xFFFFFFFF)
242*a1e29404SDevarsh Thakkar #define MMU_READS_LESS_64_REQ_READS_LESS_64_REQ_SHIFT			(0)
243*a1e29404SDevarsh Thakkar 
244*a1e29404SDevarsh Thakkar #define MMU_WRITES_LESS_64_REQ_OFFSET					(0x010C)
245*a1e29404SDevarsh Thakkar 
246*a1e29404SDevarsh Thakkar #define MMU_WRITES_LESS_64_REQ_WRITES_LESS_64_REQ_MASK			(0xFFFFFFFF)
247*a1e29404SDevarsh Thakkar #define MMU_WRITES_LESS_64_REQ_WRITES_LESS_64_REQ_SHIFT			(0)
248*a1e29404SDevarsh Thakkar 
249*a1e29404SDevarsh Thakkar #define MMU_EXT_CMD_STALL_OFFSET					(0x0120)
250*a1e29404SDevarsh Thakkar 
251*a1e29404SDevarsh Thakkar #define MMU_EXT_CMD_STALL_EXT_CMD_STALL_MASK				(0xFFFFFFFF)
252*a1e29404SDevarsh Thakkar #define MMU_EXT_CMD_STALL_EXT_CMD_STALL_SHIFT				(0)
253*a1e29404SDevarsh Thakkar 
254*a1e29404SDevarsh Thakkar #define MMU_WRITE_REQ_STALL_OFFSET					(0x0124)
255*a1e29404SDevarsh Thakkar 
256*a1e29404SDevarsh Thakkar #define MMU_WRITE_REQ_STALL_WRITE_REQ_STALL_MASK			(0xFFFFFFFF)
257*a1e29404SDevarsh Thakkar #define MMU_WRITE_REQ_STALL_WRITE_REQ_STALL_SHIFT			(0)
258*a1e29404SDevarsh Thakkar 
259*a1e29404SDevarsh Thakkar #define MMU_MMU_MISS_STALL_OFFSET					(0x0128)
260*a1e29404SDevarsh Thakkar 
261*a1e29404SDevarsh Thakkar #define MMU_MMU_MISS_STALL_MMU_MISS_STALL_MASK				(0xFFFFFFFF)
262*a1e29404SDevarsh Thakkar #define MMU_MMU_MISS_STALL_MMU_MISS_STALL_SHIFT				(0)
263*a1e29404SDevarsh Thakkar 
264*a1e29404SDevarsh Thakkar #define MMU_ADDRESS_STALL_OFFSET					(0x012C)
265*a1e29404SDevarsh Thakkar 
266*a1e29404SDevarsh Thakkar #define MMU_ADDRESS_STALL_ADDRESS_STALL_MASK				(0xFFFFFFFF)
267*a1e29404SDevarsh Thakkar #define MMU_ADDRESS_STALL_ADDRESS_STALL_SHIFT				(0)
268*a1e29404SDevarsh Thakkar 
269*a1e29404SDevarsh Thakkar #define MMU_TAG_STALL_OFFSET						(0x0130)
270*a1e29404SDevarsh Thakkar 
271*a1e29404SDevarsh Thakkar #define MMU_TAG_STALL_TAG_STALL_MASK					(0xFFFFFFFF)
272*a1e29404SDevarsh Thakkar #define MMU_TAG_STALL_TAG_STALL_SHIFT					(0)
273*a1e29404SDevarsh Thakkar 
274*a1e29404SDevarsh Thakkar #define MMU_PEAK_READ_OUTSTANDING_OFFSET				(0x0140)
275*a1e29404SDevarsh Thakkar 
276*a1e29404SDevarsh Thakkar #define MMU_PEAK_READ_OUTSTANDING_PEAK_TAG_OUTSTANDING_MASK		(0x000003FF)
277*a1e29404SDevarsh Thakkar #define MMU_PEAK_READ_OUTSTANDING_PEAK_TAG_OUTSTANDING_SHIFT		(0)
278*a1e29404SDevarsh Thakkar 
279*a1e29404SDevarsh Thakkar #define MMU_PEAK_READ_OUTSTANDING_PEAK_READ_LATENCY_MASK		(0xFFFF0000)
280*a1e29404SDevarsh Thakkar #define MMU_PEAK_READ_OUTSTANDING_PEAK_READ_LATENCY_SHIFT		(16)
281*a1e29404SDevarsh Thakkar 
282*a1e29404SDevarsh Thakkar #define MMU_AVERAGE_READ_LATENCY_OFFSET					(0x0144)
283*a1e29404SDevarsh Thakkar 
284*a1e29404SDevarsh Thakkar #define MMU_AVERAGE_READ_LATENCY_AVERAGE_READ_LATENCY_MASK		(0xFFFFFFFF)
285*a1e29404SDevarsh Thakkar #define MMU_AVERAGE_READ_LATENCY_AVERAGE_READ_LATENCY_SHIFT		(0)
286*a1e29404SDevarsh Thakkar 
287*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_OFFSET					(0x0160)
288*a1e29404SDevarsh Thakkar 
289*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_BANDWIDTH_STATS_INIT_MASK		(0x00000001)
290*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_BANDWIDTH_STATS_INIT_SHIFT		(0)
291*a1e29404SDevarsh Thakkar 
292*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_STALL_STATS_INIT_MASK			(0x00000002)
293*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_STALL_STATS_INIT_SHIFT			(1)
294*a1e29404SDevarsh Thakkar 
295*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_LATENCY_STATS_INIT_MASK			(0x00000004)
296*a1e29404SDevarsh Thakkar #define MMU_STATISTICS_CONTROL_LATENCY_STATS_INIT_SHIFT			(2)
297*a1e29404SDevarsh Thakkar 
298*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_OFFSET						(0x01D0)
299*a1e29404SDevarsh Thakkar 
300*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MAJOR_REV_MASK				(0x00FF0000)
301*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MAJOR_REV_SHIFT				(16)
302*a1e29404SDevarsh Thakkar 
303*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MINOR_REV_MASK				(0x0000FF00)
304*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MINOR_REV_SHIFT				(8)
305*a1e29404SDevarsh Thakkar 
306*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MAINT_REV_MASK				(0x000000FF)
307*a1e29404SDevarsh Thakkar #define MMU_MMU_VERSION_MMU_MAINT_REV_SHIFT				(0)
308*a1e29404SDevarsh Thakkar 
309*a1e29404SDevarsh Thakkar #define MMU_BYTE_SIZE							(0x01D4)
310*a1e29404SDevarsh Thakkar 
311*a1e29404SDevarsh Thakkar #endif
312