55#ifndef _GRLIB_AHBTRACE_REGS_H
56#define _GRLIB_AHBTRACE_REGS_H
84#define AHBTRACE_CTRL_DCNT_SHIFT 16
85#define AHBTRACE_CTRL_DCNT_MASK 0x7f0000U
86#define AHBTRACE_CTRL_DCNT_GET( _reg ) \
87 ( ( ( _reg ) & AHBTRACE_CTRL_DCNT_MASK ) >> \
88 AHBTRACE_CTRL_DCNT_SHIFT )
89#define AHBTRACE_CTRL_DCNT_SET( _reg, _val ) \
90 ( ( ( _reg ) & ~AHBTRACE_CTRL_DCNT_MASK ) | \
91 ( ( ( _val ) << AHBTRACE_CTRL_DCNT_SHIFT ) & \
92 AHBTRACE_CTRL_DCNT_MASK ) )
93#define AHBTRACE_CTRL_DCNT( _val ) \
94 ( ( ( _val ) << AHBTRACE_CTRL_DCNT_SHIFT ) & \
95 AHBTRACE_CTRL_DCNT_MASK )
97#define AHBTRACE_CTRL_PF 0x100U
99#define AHBTRACE_CTRL_BW_SHIFT 6
100#define AHBTRACE_CTRL_BW_MASK 0xc0U
101#define AHBTRACE_CTRL_BW_GET( _reg ) \
102 ( ( ( _reg ) & AHBTRACE_CTRL_BW_MASK ) >> \
103 AHBTRACE_CTRL_BW_SHIFT )
104#define AHBTRACE_CTRL_BW_SET( _reg, _val ) \
105 ( ( ( _reg ) & ~AHBTRACE_CTRL_BW_MASK ) | \
106 ( ( ( _val ) << AHBTRACE_CTRL_BW_SHIFT ) & \
107 AHBTRACE_CTRL_BW_MASK ) )
108#define AHBTRACE_CTRL_BW( _val ) \
109 ( ( ( _val ) << AHBTRACE_CTRL_BW_SHIFT ) & \
110 AHBTRACE_CTRL_BW_MASK )
112#define AHBTRACE_CTRL_RF 0x20U
114#define AHBTRACE_CTRL_AF 0x10U
116#define AHBTRACE_CTRL_FR 0x8U
118#define AHBTRACE_CTRL_FW 0x4U
120#define AHBTRACE_CTRL_DM 0x2U
122#define AHBTRACE_CTRL_EN 0x1U
134#define AHBTRACE_INDEX_INDEX_SHIFT 4
135#define AHBTRACE_INDEX_INDEX_MASK 0x7f0U
136#define AHBTRACE_INDEX_INDEX_GET( _reg ) \
137 ( ( ( _reg ) & AHBTRACE_INDEX_INDEX_MASK ) >> \
138 AHBTRACE_INDEX_INDEX_SHIFT )
139#define AHBTRACE_INDEX_INDEX_SET( _reg, _val ) \
140 ( ( ( _reg ) & ~AHBTRACE_INDEX_INDEX_MASK ) | \
141 ( ( ( _val ) << AHBTRACE_INDEX_INDEX_SHIFT ) & \
142 AHBTRACE_INDEX_INDEX_MASK ) )
143#define AHBTRACE_INDEX_INDEX( _val ) \
144 ( ( ( _val ) << AHBTRACE_INDEX_INDEX_SHIFT ) & \
145 AHBTRACE_INDEX_INDEX_MASK )
158#define AHBTRACE_TIMETAG_TIMETAG_SHIFT 0
159#define AHBTRACE_TIMETAG_TIMETAG_MASK 0xffffffffU
160#define AHBTRACE_TIMETAG_TIMETAG_GET( _reg ) \
161 ( ( ( _reg ) & AHBTRACE_TIMETAG_TIMETAG_MASK ) >> \
162 AHBTRACE_TIMETAG_TIMETAG_SHIFT )
163#define AHBTRACE_TIMETAG_TIMETAG_SET( _reg, _val ) \
164 ( ( ( _reg ) & ~AHBTRACE_TIMETAG_TIMETAG_MASK ) | \
165 ( ( ( _val ) << AHBTRACE_TIMETAG_TIMETAG_SHIFT ) & \
166 AHBTRACE_TIMETAG_TIMETAG_MASK ) )
167#define AHBTRACE_TIMETAG_TIMETAG( _val ) \
168 ( ( ( _val ) << AHBTRACE_TIMETAG_TIMETAG_SHIFT ) & \
169 AHBTRACE_TIMETAG_TIMETAG_MASK )
182#define AHBTRACE_MSFILT_SMASK_15_0_SHIFT 16
183#define AHBTRACE_MSFILT_SMASK_15_0_MASK 0xffff0000U
184#define AHBTRACE_MSFILT_SMASK_15_0_GET( _reg ) \
185 ( ( ( _reg ) & AHBTRACE_MSFILT_SMASK_15_0_MASK ) >> \
186 AHBTRACE_MSFILT_SMASK_15_0_SHIFT )
187#define AHBTRACE_MSFILT_SMASK_15_0_SET( _reg, _val ) \
188 ( ( ( _reg ) & ~AHBTRACE_MSFILT_SMASK_15_0_MASK ) | \
189 ( ( ( _val ) << AHBTRACE_MSFILT_SMASK_15_0_SHIFT ) & \
190 AHBTRACE_MSFILT_SMASK_15_0_MASK ) )
191#define AHBTRACE_MSFILT_SMASK_15_0( _val ) \
192 ( ( ( _val ) << AHBTRACE_MSFILT_SMASK_15_0_SHIFT ) & \
193 AHBTRACE_MSFILT_SMASK_15_0_MASK )
195#define AHBTRACE_MSFILT_MMASK_15_0_SHIFT 0
196#define AHBTRACE_MSFILT_MMASK_15_0_MASK 0xffffU
197#define AHBTRACE_MSFILT_MMASK_15_0_GET( _reg ) \
198 ( ( ( _reg ) & AHBTRACE_MSFILT_MMASK_15_0_MASK ) >> \
199 AHBTRACE_MSFILT_MMASK_15_0_SHIFT )
200#define AHBTRACE_MSFILT_MMASK_15_0_SET( _reg, _val ) \
201 ( ( ( _reg ) & ~AHBTRACE_MSFILT_MMASK_15_0_MASK ) | \
202 ( ( ( _val ) << AHBTRACE_MSFILT_MMASK_15_0_SHIFT ) & \
203 AHBTRACE_MSFILT_MMASK_15_0_MASK ) )
204#define AHBTRACE_MSFILT_MMASK_15_0( _val ) \
205 ( ( ( _val ) << AHBTRACE_MSFILT_MMASK_15_0_SHIFT ) & \
206 AHBTRACE_MSFILT_MMASK_15_0_MASK )
219#define AHBTRACE_TBBA_BADDR_31_2_SHIFT 2
220#define AHBTRACE_TBBA_BADDR_31_2_MASK 0xfffffffcU
221#define AHBTRACE_TBBA_BADDR_31_2_GET( _reg ) \
222 ( ( ( _reg ) & AHBTRACE_TBBA_BADDR_31_2_MASK ) >> \
223 AHBTRACE_TBBA_BADDR_31_2_SHIFT )
224#define AHBTRACE_TBBA_BADDR_31_2_SET( _reg, _val ) \
225 ( ( ( _reg ) & ~AHBTRACE_TBBA_BADDR_31_2_MASK ) | \
226 ( ( ( _val ) << AHBTRACE_TBBA_BADDR_31_2_SHIFT ) & \
227 AHBTRACE_TBBA_BADDR_31_2_MASK ) )
228#define AHBTRACE_TBBA_BADDR_31_2( _val ) \
229 ( ( ( _val ) << AHBTRACE_TBBA_BADDR_31_2_SHIFT ) & \
230 AHBTRACE_TBBA_BADDR_31_2_MASK )
243#define AHBTRACE_TBBM_BMASK_31_2_SHIFT 2
244#define AHBTRACE_TBBM_BMASK_31_2_MASK 0xfffffffcU
245#define AHBTRACE_TBBM_BMASK_31_2_GET( _reg ) \
246 ( ( ( _reg ) & AHBTRACE_TBBM_BMASK_31_2_MASK ) >> \
247 AHBTRACE_TBBM_BMASK_31_2_SHIFT )
248#define AHBTRACE_TBBM_BMASK_31_2_SET( _reg, _val ) \
249 ( ( ( _reg ) & ~AHBTRACE_TBBM_BMASK_31_2_MASK ) | \
250 ( ( ( _val ) << AHBTRACE_TBBM_BMASK_31_2_SHIFT ) & \
251 AHBTRACE_TBBM_BMASK_31_2_MASK ) )
252#define AHBTRACE_TBBM_BMASK_31_2( _val ) \
253 ( ( ( _val ) << AHBTRACE_TBBM_BMASK_31_2_SHIFT ) & \
254 AHBTRACE_TBBM_BMASK_31_2_MASK )
256#define AHBTRACE_TBBM_LD 0x2U
258#define AHBTRACE_TBBM_ST 0x1U
This structure defines the AHBTRACE register block memory map.
Definition: ahbtrace-regs.h:265
uint32_t tbba_0
See Trace buffer break address registers (TBBA).
Definition: ahbtrace-regs.h:289
uint32_t tbbm_0
See Trace buffer break mask registers (TBBM).
Definition: ahbtrace-regs.h:294
uint32_t ctrl
See Trace buffer control register (CTRL).
Definition: ahbtrace-regs.h:269
uint32_t tbbm_1
See Trace buffer break mask registers (TBBM).
Definition: ahbtrace-regs.h:304
uint32_t index
See Trace buffer index register (INDEX).
Definition: ahbtrace-regs.h:274
uint32_t tbba_1
See Trace buffer break address registers (TBBA).
Definition: ahbtrace-regs.h:299
uint32_t timetag
See Trace buffer time tag register (TIMETAG).
Definition: ahbtrace-regs.h:279
uint32_t msfilt
See Trace buffer master/slave filter register (MSFILT).
Definition: ahbtrace-regs.h:284