55#ifndef _GRLIB_GRPCI2_REGS_H
56#define _GRLIB_GRPCI2_REGS_H
84#define GRPCI2_CTRL_RE 0x80000000U
86#define GRPCI2_CTRL_MR 0x40000000U
88#define GRPCI2_CTRL_TR 0x20000000U
90#define GRPCI2_CTRL_SI 0x8000000U
92#define GRPCI2_CTRL_PE 0x4000000U
94#define GRPCI2_CTRL_ER 0x2000000U
96#define GRPCI2_CTRL_EI 0x1000000U
98#define GRPCI2_CTRL_BUS_NUMBER_SHIFT 16
99#define GRPCI2_CTRL_BUS_NUMBER_MASK 0xff0000U
100#define GRPCI2_CTRL_BUS_NUMBER_GET( _reg ) \
101 ( ( ( _reg ) & GRPCI2_CTRL_BUS_NUMBER_MASK ) >> \
102 GRPCI2_CTRL_BUS_NUMBER_SHIFT )
103#define GRPCI2_CTRL_BUS_NUMBER_SET( _reg, _val ) \
104 ( ( ( _reg ) & ~GRPCI2_CTRL_BUS_NUMBER_MASK ) | \
105 ( ( ( _val ) << GRPCI2_CTRL_BUS_NUMBER_SHIFT ) & \
106 GRPCI2_CTRL_BUS_NUMBER_MASK ) )
107#define GRPCI2_CTRL_BUS_NUMBER( _val ) \
108 ( ( ( _val ) << GRPCI2_CTRL_BUS_NUMBER_SHIFT ) & \
109 GRPCI2_CTRL_BUS_NUMBER_MASK )
111#define GRPCI2_CTRL_DFA 0x800U
113#define GRPCI2_CTRL_IB 0x400U
115#define GRPCI2_CTRL_CB 0x200U
117#define GRPCI2_CTRL_DIF 0x100U
119#define GRPCI2_CTRL_DEVICE_INT_MASK_SHIFT 4
120#define GRPCI2_CTRL_DEVICE_INT_MASK_MASK 0xf0U
121#define GRPCI2_CTRL_DEVICE_INT_MASK_GET( _reg ) \
122 ( ( ( _reg ) & GRPCI2_CTRL_DEVICE_INT_MASK_MASK ) >> \
123 GRPCI2_CTRL_DEVICE_INT_MASK_SHIFT )
124#define GRPCI2_CTRL_DEVICE_INT_MASK_SET( _reg, _val ) \
125 ( ( ( _reg ) & ~GRPCI2_CTRL_DEVICE_INT_MASK_MASK ) | \
126 ( ( ( _val ) << GRPCI2_CTRL_DEVICE_INT_MASK_SHIFT ) & \
127 GRPCI2_CTRL_DEVICE_INT_MASK_MASK ) )
128#define GRPCI2_CTRL_DEVICE_INT_MASK( _val ) \
129 ( ( ( _val ) << GRPCI2_CTRL_DEVICE_INT_MASK_SHIFT ) & \
130 GRPCI2_CTRL_DEVICE_INT_MASK_MASK )
132#define GRPCI2_CTRL_HOST_INT_MASK_SHIFT 0
133#define GRPCI2_CTRL_HOST_INT_MASK_MASK 0xfU
134#define GRPCI2_CTRL_HOST_INT_MASK_GET( _reg ) \
135 ( ( ( _reg ) & GRPCI2_CTRL_HOST_INT_MASK_MASK ) >> \
136 GRPCI2_CTRL_HOST_INT_MASK_SHIFT )
137#define GRPCI2_CTRL_HOST_INT_MASK_SET( _reg, _val ) \
138 ( ( ( _reg ) & ~GRPCI2_CTRL_HOST_INT_MASK_MASK ) | \
139 ( ( ( _val ) << GRPCI2_CTRL_HOST_INT_MASK_SHIFT ) & \
140 GRPCI2_CTRL_HOST_INT_MASK_MASK ) )
141#define GRPCI2_CTRL_HOST_INT_MASK( _val ) \
142 ( ( ( _val ) << GRPCI2_CTRL_HOST_INT_MASK_SHIFT ) & \
143 GRPCI2_CTRL_HOST_INT_MASK_MASK )
155#define GRPCI2_STATCAP_HOST 0x80000000U
157#define GRPCI2_STATCAP_MST 0x40000000U
159#define GRPCI2_STATCAP_TAR 0x20000000U
161#define GRPCI2_STATCAP_DMA 0x10000000U
163#define GRPCI2_STATCAP_DI 0x8000000U
165#define GRPCI2_STATCAP_HI 0x4000000U
167#define GRPCI2_STATCAP_IRQ_MODE_SHIFT 24
168#define GRPCI2_STATCAP_IRQ_MODE_MASK 0x3000000U
169#define GRPCI2_STATCAP_IRQ_MODE_GET( _reg ) \
170 ( ( ( _reg ) & GRPCI2_STATCAP_IRQ_MODE_MASK ) >> \
171 GRPCI2_STATCAP_IRQ_MODE_SHIFT )
172#define GRPCI2_STATCAP_IRQ_MODE_SET( _reg, _val ) \
173 ( ( ( _reg ) & ~GRPCI2_STATCAP_IRQ_MODE_MASK ) | \
174 ( ( ( _val ) << GRPCI2_STATCAP_IRQ_MODE_SHIFT ) & \
175 GRPCI2_STATCAP_IRQ_MODE_MASK ) )
176#define GRPCI2_STATCAP_IRQ_MODE( _val ) \
177 ( ( ( _val ) << GRPCI2_STATCAP_IRQ_MODE_SHIFT ) & \
178 GRPCI2_STATCAP_IRQ_MODE_MASK )
180#define GRPCI2_STATCAP_TRACE 0x800000U
182#define GRPCI2_STATCAP_CFGDO 0x100000U
184#define GRPCI2_STATCAP_CFGER 0x80000U
186#define GRPCI2_STATCAP_CORE_INT_STATUS_SHIFT 12
187#define GRPCI2_STATCAP_CORE_INT_STATUS_MASK 0x7f000U
188#define GRPCI2_STATCAP_CORE_INT_STATUS_GET( _reg ) \
189 ( ( ( _reg ) & GRPCI2_STATCAP_CORE_INT_STATUS_MASK ) >> \
190 GRPCI2_STATCAP_CORE_INT_STATUS_SHIFT )
191#define GRPCI2_STATCAP_CORE_INT_STATUS_SET( _reg, _val ) \
192 ( ( ( _reg ) & ~GRPCI2_STATCAP_CORE_INT_STATUS_MASK ) | \
193 ( ( ( _val ) << GRPCI2_STATCAP_CORE_INT_STATUS_SHIFT ) & \
194 GRPCI2_STATCAP_CORE_INT_STATUS_MASK ) )
195#define GRPCI2_STATCAP_CORE_INT_STATUS( _val ) \
196 ( ( ( _val ) << GRPCI2_STATCAP_CORE_INT_STATUS_SHIFT ) & \
197 GRPCI2_STATCAP_CORE_INT_STATUS_MASK )
199#define GRPCI2_STATCAP_HOST_INT_STATUS_SHIFT 8
200#define GRPCI2_STATCAP_HOST_INT_STATUS_MASK 0xf00U
201#define GRPCI2_STATCAP_HOST_INT_STATUS_GET( _reg ) \
202 ( ( ( _reg ) & GRPCI2_STATCAP_HOST_INT_STATUS_MASK ) >> \
203 GRPCI2_STATCAP_HOST_INT_STATUS_SHIFT )
204#define GRPCI2_STATCAP_HOST_INT_STATUS_SET( _reg, _val ) \
205 ( ( ( _reg ) & ~GRPCI2_STATCAP_HOST_INT_STATUS_MASK ) | \
206 ( ( ( _val ) << GRPCI2_STATCAP_HOST_INT_STATUS_SHIFT ) & \
207 GRPCI2_STATCAP_HOST_INT_STATUS_MASK ) )
208#define GRPCI2_STATCAP_HOST_INT_STATUS( _val ) \
209 ( ( ( _val ) << GRPCI2_STATCAP_HOST_INT_STATUS_SHIFT ) & \
210 GRPCI2_STATCAP_HOST_INT_STATUS_MASK )
212#define GRPCI2_STATCAP_FDEPTH_SHIFT 2
213#define GRPCI2_STATCAP_FDEPTH_MASK 0x1cU
214#define GRPCI2_STATCAP_FDEPTH_GET( _reg ) \
215 ( ( ( _reg ) & GRPCI2_STATCAP_FDEPTH_MASK ) >> \
216 GRPCI2_STATCAP_FDEPTH_SHIFT )
217#define GRPCI2_STATCAP_FDEPTH_SET( _reg, _val ) \
218 ( ( ( _reg ) & ~GRPCI2_STATCAP_FDEPTH_MASK ) | \
219 ( ( ( _val ) << GRPCI2_STATCAP_FDEPTH_SHIFT ) & \
220 GRPCI2_STATCAP_FDEPTH_MASK ) )
221#define GRPCI2_STATCAP_FDEPTH( _val ) \
222 ( ( ( _val ) << GRPCI2_STATCAP_FDEPTH_SHIFT ) & \
223 GRPCI2_STATCAP_FDEPTH_MASK )
225#define GRPCI2_STATCAP_FNUM_SHIFT 0
226#define GRPCI2_STATCAP_FNUM_MASK 0x3U
227#define GRPCI2_STATCAP_FNUM_GET( _reg ) \
228 ( ( ( _reg ) & GRPCI2_STATCAP_FNUM_MASK ) >> \
229 GRPCI2_STATCAP_FNUM_SHIFT )
230#define GRPCI2_STATCAP_FNUM_SET( _reg, _val ) \
231 ( ( ( _reg ) & ~GRPCI2_STATCAP_FNUM_MASK ) | \
232 ( ( ( _val ) << GRPCI2_STATCAP_FNUM_SHIFT ) & \
233 GRPCI2_STATCAP_FNUM_MASK ) )
234#define GRPCI2_STATCAP_FNUM( _val ) \
235 ( ( ( _val ) << GRPCI2_STATCAP_FNUM_SHIFT ) & \
236 GRPCI2_STATCAP_FNUM_MASK )
248#define GRPCI2_BCIM_AHB_MASTER_UNMASK_SHIFT 16
249#define GRPCI2_BCIM_AHB_MASTER_UNMASK_MASK 0xffff0000U
250#define GRPCI2_BCIM_AHB_MASTER_UNMASK_GET( _reg ) \
251 ( ( ( _reg ) & GRPCI2_BCIM_AHB_MASTER_UNMASK_MASK ) >> \
252 GRPCI2_BCIM_AHB_MASTER_UNMASK_SHIFT )
253#define GRPCI2_BCIM_AHB_MASTER_UNMASK_SET( _reg, _val ) \
254 ( ( ( _reg ) & ~GRPCI2_BCIM_AHB_MASTER_UNMASK_MASK ) | \
255 ( ( ( _val ) << GRPCI2_BCIM_AHB_MASTER_UNMASK_SHIFT ) & \
256 GRPCI2_BCIM_AHB_MASTER_UNMASK_MASK ) )
257#define GRPCI2_BCIM_AHB_MASTER_UNMASK( _val ) \
258 ( ( ( _val ) << GRPCI2_BCIM_AHB_MASTER_UNMASK_SHIFT ) & \
259 GRPCI2_BCIM_AHB_MASTER_UNMASK_MASK )
261#define GRPCI2_BCIM_BURST_LENGTH_SHIFT 0
262#define GRPCI2_BCIM_BURST_LENGTH_MASK 0xffU
263#define GRPCI2_BCIM_BURST_LENGTH_GET( _reg ) \
264 ( ( ( _reg ) & GRPCI2_BCIM_BURST_LENGTH_MASK ) >> \
265 GRPCI2_BCIM_BURST_LENGTH_SHIFT )
266#define GRPCI2_BCIM_BURST_LENGTH_SET( _reg, _val ) \
267 ( ( ( _reg ) & ~GRPCI2_BCIM_BURST_LENGTH_MASK ) | \
268 ( ( ( _val ) << GRPCI2_BCIM_BURST_LENGTH_SHIFT ) & \
269 GRPCI2_BCIM_BURST_LENGTH_MASK ) )
270#define GRPCI2_BCIM_BURST_LENGTH( _val ) \
271 ( ( ( _val ) << GRPCI2_BCIM_BURST_LENGTH_SHIFT ) & \
272 GRPCI2_BCIM_BURST_LENGTH_MASK )
284#define GRPCI2_AHB2PCI_AHB_TO_PCI_IO_SHIFT 16
285#define GRPCI2_AHB2PCI_AHB_TO_PCI_IO_MASK 0xffff0000U
286#define GRPCI2_AHB2PCI_AHB_TO_PCI_IO_GET( _reg ) \
287 ( ( ( _reg ) & GRPCI2_AHB2PCI_AHB_TO_PCI_IO_MASK ) >> \
288 GRPCI2_AHB2PCI_AHB_TO_PCI_IO_SHIFT )
289#define GRPCI2_AHB2PCI_AHB_TO_PCI_IO_SET( _reg, _val ) \
290 ( ( ( _reg ) & ~GRPCI2_AHB2PCI_AHB_TO_PCI_IO_MASK ) | \
291 ( ( ( _val ) << GRPCI2_AHB2PCI_AHB_TO_PCI_IO_SHIFT ) & \
292 GRPCI2_AHB2PCI_AHB_TO_PCI_IO_MASK ) )
293#define GRPCI2_AHB2PCI_AHB_TO_PCI_IO( _val ) \
294 ( ( ( _val ) << GRPCI2_AHB2PCI_AHB_TO_PCI_IO_SHIFT ) & \
295 GRPCI2_AHB2PCI_AHB_TO_PCI_IO_MASK )
307#define GRPCI2_DMACTRL_SAFE 0x80000000U
309#define GRPCI2_DMACTRL_CHIRQ_SHIFT 12
310#define GRPCI2_DMACTRL_CHIRQ_MASK 0xff000U
311#define GRPCI2_DMACTRL_CHIRQ_GET( _reg ) \
312 ( ( ( _reg ) & GRPCI2_DMACTRL_CHIRQ_MASK ) >> \
313 GRPCI2_DMACTRL_CHIRQ_SHIFT )
314#define GRPCI2_DMACTRL_CHIRQ_SET( _reg, _val ) \
315 ( ( ( _reg ) & ~GRPCI2_DMACTRL_CHIRQ_MASK ) | \
316 ( ( ( _val ) << GRPCI2_DMACTRL_CHIRQ_SHIFT ) & \
317 GRPCI2_DMACTRL_CHIRQ_MASK ) )
318#define GRPCI2_DMACTRL_CHIRQ( _val ) \
319 ( ( ( _val ) << GRPCI2_DMACTRL_CHIRQ_SHIFT ) & \
320 GRPCI2_DMACTRL_CHIRQ_MASK )
322#define GRPCI2_DMACTRL_MA 0x800U
324#define GRPCI2_DMACTRL_TA 0x400U
326#define GRPCI2_DMACTRL_PE 0x200U
328#define GRPCI2_DMACTRL_AE 0x100U
330#define GRPCI2_DMACTRL_DE 0x80U
332#define GRPCI2_DMACTRL_NUMCH_SHIFT 4
333#define GRPCI2_DMACTRL_NUMCH_MASK 0x70U
334#define GRPCI2_DMACTRL_NUMCH_GET( _reg ) \
335 ( ( ( _reg ) & GRPCI2_DMACTRL_NUMCH_MASK ) >> \
336 GRPCI2_DMACTRL_NUMCH_SHIFT )
337#define GRPCI2_DMACTRL_NUMCH_SET( _reg, _val ) \
338 ( ( ( _reg ) & ~GRPCI2_DMACTRL_NUMCH_MASK ) | \
339 ( ( ( _val ) << GRPCI2_DMACTRL_NUMCH_SHIFT ) & \
340 GRPCI2_DMACTRL_NUMCH_MASK ) )
341#define GRPCI2_DMACTRL_NUMCH( _val ) \
342 ( ( ( _val ) << GRPCI2_DMACTRL_NUMCH_SHIFT ) & \
343 GRPCI2_DMACTRL_NUMCH_MASK )
345#define GRPCI2_DMACTRL_ACTIVE 0x8U
347#define GRPCI2_DMACTRL_DIS 0x4U
349#define GRPCI2_DMACTRL_IE 0x2U
351#define GRPCI2_DMACTRL_EN 0x1U
364#define GRPCI2_DMABASE_BASE_SHIFT 0
365#define GRPCI2_DMABASE_BASE_MASK 0xffffffffU
366#define GRPCI2_DMABASE_BASE_GET( _reg ) \
367 ( ( ( _reg ) & GRPCI2_DMABASE_BASE_MASK ) >> \
368 GRPCI2_DMABASE_BASE_SHIFT )
369#define GRPCI2_DMABASE_BASE_SET( _reg, _val ) \
370 ( ( ( _reg ) & ~GRPCI2_DMABASE_BASE_MASK ) | \
371 ( ( ( _val ) << GRPCI2_DMABASE_BASE_SHIFT ) & \
372 GRPCI2_DMABASE_BASE_MASK ) )
373#define GRPCI2_DMABASE_BASE( _val ) \
374 ( ( ( _val ) << GRPCI2_DMABASE_BASE_SHIFT ) & \
375 GRPCI2_DMABASE_BASE_MASK )
387#define GRPCI2_DMACHAN_CHAN_SHIFT 0
388#define GRPCI2_DMACHAN_CHAN_MASK 0xffffffffU
389#define GRPCI2_DMACHAN_CHAN_GET( _reg ) \
390 ( ( ( _reg ) & GRPCI2_DMACHAN_CHAN_MASK ) >> \
391 GRPCI2_DMACHAN_CHAN_SHIFT )
392#define GRPCI2_DMACHAN_CHAN_SET( _reg, _val ) \
393 ( ( ( _reg ) & ~GRPCI2_DMACHAN_CHAN_MASK ) | \
394 ( ( ( _val ) << GRPCI2_DMACHAN_CHAN_SHIFT ) & \
395 GRPCI2_DMACHAN_CHAN_MASK ) )
396#define GRPCI2_DMACHAN_CHAN( _val ) \
397 ( ( ( _val ) << GRPCI2_DMACHAN_CHAN_SHIFT ) & \
398 GRPCI2_DMACHAN_CHAN_MASK )
411#define GRPCI2_PCI2AHB_ADDR_SHIFT 0
412#define GRPCI2_PCI2AHB_ADDR_MASK 0xffffffffU
413#define GRPCI2_PCI2AHB_ADDR_GET( _reg ) \
414 ( ( ( _reg ) & GRPCI2_PCI2AHB_ADDR_MASK ) >> \
415 GRPCI2_PCI2AHB_ADDR_SHIFT )
416#define GRPCI2_PCI2AHB_ADDR_SET( _reg, _val ) \
417 ( ( ( _reg ) & ~GRPCI2_PCI2AHB_ADDR_MASK ) | \
418 ( ( ( _val ) << GRPCI2_PCI2AHB_ADDR_SHIFT ) & \
419 GRPCI2_PCI2AHB_ADDR_MASK ) )
420#define GRPCI2_PCI2AHB_ADDR( _val ) \
421 ( ( ( _val ) << GRPCI2_PCI2AHB_ADDR_SHIFT ) & \
422 GRPCI2_PCI2AHB_ADDR_MASK )
435#define GRPCI2_AHBM2PCI_ADDR_SHIFT 0
436#define GRPCI2_AHBM2PCI_ADDR_MASK 0xffffffffU
437#define GRPCI2_AHBM2PCI_ADDR_GET( _reg ) \
438 ( ( ( _reg ) & GRPCI2_AHBM2PCI_ADDR_MASK ) >> \
439 GRPCI2_AHBM2PCI_ADDR_SHIFT )
440#define GRPCI2_AHBM2PCI_ADDR_SET( _reg, _val ) \
441 ( ( ( _reg ) & ~GRPCI2_AHBM2PCI_ADDR_MASK ) | \
442 ( ( ( _val ) << GRPCI2_AHBM2PCI_ADDR_SHIFT ) & \
443 GRPCI2_AHBM2PCI_ADDR_MASK ) )
444#define GRPCI2_AHBM2PCI_ADDR( _val ) \
445 ( ( ( _val ) << GRPCI2_AHBM2PCI_ADDR_SHIFT ) & \
446 GRPCI2_AHBM2PCI_ADDR_MASK )
459#define GRPCI2_TCTRC_TRIG_INDEX_SHIFT 16
460#define GRPCI2_TCTRC_TRIG_INDEX_MASK 0xffff0000U
461#define GRPCI2_TCTRC_TRIG_INDEX_GET( _reg ) \
462 ( ( ( _reg ) & GRPCI2_TCTRC_TRIG_INDEX_MASK ) >> \
463 GRPCI2_TCTRC_TRIG_INDEX_SHIFT )
464#define GRPCI2_TCTRC_TRIG_INDEX_SET( _reg, _val ) \
465 ( ( ( _reg ) & ~GRPCI2_TCTRC_TRIG_INDEX_MASK ) | \
466 ( ( ( _val ) << GRPCI2_TCTRC_TRIG_INDEX_SHIFT ) & \
467 GRPCI2_TCTRC_TRIG_INDEX_MASK ) )
468#define GRPCI2_TCTRC_TRIG_INDEX( _val ) \
469 ( ( ( _val ) << GRPCI2_TCTRC_TRIG_INDEX_SHIFT ) & \
470 GRPCI2_TCTRC_TRIG_INDEX_MASK )
472#define GRPCI2_TCTRC_AR 0x8000U
474#define GRPCI2_TCTRC_EN 0x4000U
476#define GRPCI2_TCTRC_DEPTH_SHIFT 4
477#define GRPCI2_TCTRC_DEPTH_MASK 0xff0U
478#define GRPCI2_TCTRC_DEPTH_GET( _reg ) \
479 ( ( ( _reg ) & GRPCI2_TCTRC_DEPTH_MASK ) >> \
480 GRPCI2_TCTRC_DEPTH_SHIFT )
481#define GRPCI2_TCTRC_DEPTH_SET( _reg, _val ) \
482 ( ( ( _reg ) & ~GRPCI2_TCTRC_DEPTH_MASK ) | \
483 ( ( ( _val ) << GRPCI2_TCTRC_DEPTH_SHIFT ) & \
484 GRPCI2_TCTRC_DEPTH_MASK ) )
485#define GRPCI2_TCTRC_DEPTH( _val ) \
486 ( ( ( _val ) << GRPCI2_TCTRC_DEPTH_SHIFT ) & \
487 GRPCI2_TCTRC_DEPTH_MASK )
489#define GRPCI2_TCTRC_SO 0x2U
491#define GRPCI2_TCTRC_SA 0x1U
503#define GRPCI2_TMODE_TRACING_MODE_SHIFT 24
504#define GRPCI2_TMODE_TRACING_MODE_MASK 0xf000000U
505#define GRPCI2_TMODE_TRACING_MODE_GET( _reg ) \
506 ( ( ( _reg ) & GRPCI2_TMODE_TRACING_MODE_MASK ) >> \
507 GRPCI2_TMODE_TRACING_MODE_SHIFT )
508#define GRPCI2_TMODE_TRACING_MODE_SET( _reg, _val ) \
509 ( ( ( _reg ) & ~GRPCI2_TMODE_TRACING_MODE_MASK ) | \
510 ( ( ( _val ) << GRPCI2_TMODE_TRACING_MODE_SHIFT ) & \
511 GRPCI2_TMODE_TRACING_MODE_MASK ) )
512#define GRPCI2_TMODE_TRACING_MODE( _val ) \
513 ( ( ( _val ) << GRPCI2_TMODE_TRACING_MODE_SHIFT ) & \
514 GRPCI2_TMODE_TRACING_MODE_MASK )
516#define GRPCI2_TMODE_TRIG_COUNT_SHIFT 16
517#define GRPCI2_TMODE_TRIG_COUNT_MASK 0xff0000U
518#define GRPCI2_TMODE_TRIG_COUNT_GET( _reg ) \
519 ( ( ( _reg ) & GRPCI2_TMODE_TRIG_COUNT_MASK ) >> \
520 GRPCI2_TMODE_TRIG_COUNT_SHIFT )
521#define GRPCI2_TMODE_TRIG_COUNT_SET( _reg, _val ) \
522 ( ( ( _reg ) & ~GRPCI2_TMODE_TRIG_COUNT_MASK ) | \
523 ( ( ( _val ) << GRPCI2_TMODE_TRIG_COUNT_SHIFT ) & \
524 GRPCI2_TMODE_TRIG_COUNT_MASK ) )
525#define GRPCI2_TMODE_TRIG_COUNT( _val ) \
526 ( ( ( _val ) << GRPCI2_TMODE_TRIG_COUNT_SHIFT ) & \
527 GRPCI2_TMODE_TRIG_COUNT_MASK )
529#define GRPCI2_TMODE_DELAYED_STOP_SHIFT 0
530#define GRPCI2_TMODE_DELAYED_STOP_MASK 0xffffU
531#define GRPCI2_TMODE_DELAYED_STOP_GET( _reg ) \
532 ( ( ( _reg ) & GRPCI2_TMODE_DELAYED_STOP_MASK ) >> \
533 GRPCI2_TMODE_DELAYED_STOP_SHIFT )
534#define GRPCI2_TMODE_DELAYED_STOP_SET( _reg, _val ) \
535 ( ( ( _reg ) & ~GRPCI2_TMODE_DELAYED_STOP_MASK ) | \
536 ( ( ( _val ) << GRPCI2_TMODE_DELAYED_STOP_SHIFT ) & \
537 GRPCI2_TMODE_DELAYED_STOP_MASK ) )
538#define GRPCI2_TMODE_DELAYED_STOP( _val ) \
539 ( ( ( _val ) << GRPCI2_TMODE_DELAYED_STOP_SHIFT ) & \
540 GRPCI2_TMODE_DELAYED_STOP_MASK )
552#define GRPCI2_TADP_PATTERN_SHIFT 0
553#define GRPCI2_TADP_PATTERN_MASK 0xffffffffU
554#define GRPCI2_TADP_PATTERN_GET( _reg ) \
555 ( ( ( _reg ) & GRPCI2_TADP_PATTERN_MASK ) >> \
556 GRPCI2_TADP_PATTERN_SHIFT )
557#define GRPCI2_TADP_PATTERN_SET( _reg, _val ) \
558 ( ( ( _reg ) & ~GRPCI2_TADP_PATTERN_MASK ) | \
559 ( ( ( _val ) << GRPCI2_TADP_PATTERN_SHIFT ) & \
560 GRPCI2_TADP_PATTERN_MASK ) )
561#define GRPCI2_TADP_PATTERN( _val ) \
562 ( ( ( _val ) << GRPCI2_TADP_PATTERN_SHIFT ) & \
563 GRPCI2_TADP_PATTERN_MASK )
575#define GRPCI2_TADM_MASK_SHIFT 0
576#define GRPCI2_TADM_MASK_MASK 0xffffffffU
577#define GRPCI2_TADM_MASK_GET( _reg ) \
578 ( ( ( _reg ) & GRPCI2_TADM_MASK_MASK ) >> \
579 GRPCI2_TADM_MASK_SHIFT )
580#define GRPCI2_TADM_MASK_SET( _reg, _val ) \
581 ( ( ( _reg ) & ~GRPCI2_TADM_MASK_MASK ) | \
582 ( ( ( _val ) << GRPCI2_TADM_MASK_SHIFT ) & \
583 GRPCI2_TADM_MASK_MASK ) )
584#define GRPCI2_TADM_MASK( _val ) \
585 ( ( ( _val ) << GRPCI2_TADM_MASK_SHIFT ) & \
586 GRPCI2_TADM_MASK_MASK )
598#define GRPCI2_TCP_CBE_3_0_SHIFT 16
599#define GRPCI2_TCP_CBE_3_0_MASK 0xf0000U
600#define GRPCI2_TCP_CBE_3_0_GET( _reg ) \
601 ( ( ( _reg ) & GRPCI2_TCP_CBE_3_0_MASK ) >> \
602 GRPCI2_TCP_CBE_3_0_SHIFT )
603#define GRPCI2_TCP_CBE_3_0_SET( _reg, _val ) \
604 ( ( ( _reg ) & ~GRPCI2_TCP_CBE_3_0_MASK ) | \
605 ( ( ( _val ) << GRPCI2_TCP_CBE_3_0_SHIFT ) & \
606 GRPCI2_TCP_CBE_3_0_MASK ) )
607#define GRPCI2_TCP_CBE_3_0( _val ) \
608 ( ( ( _val ) << GRPCI2_TCP_CBE_3_0_SHIFT ) & \
609 GRPCI2_TCP_CBE_3_0_MASK )
611#define GRPCI2_TCP_FRAME 0x8000U
613#define GRPCI2_TCP_IRDY 0x4000U
615#define GRPCI2_TCP_TRDY 0x2000U
617#define GRPCI2_TCP_STOP 0x1000U
619#define GRPCI2_TCP_DEVSEL 0x800U
621#define GRPCI2_TCP_PAR 0x400U
623#define GRPCI2_TCP_PERR 0x200U
625#define GRPCI2_TCP_SERR 0x100U
627#define GRPCI2_TCP_IDSEL 0x80U
629#define GRPCI2_TCP_REQ 0x40U
631#define GRPCI2_TCP_GNT 0x20U
633#define GRPCI2_TCP_LOCK 0x10U
635#define GRPCI2_TCP_RST 0x8U
647#define GRPCI2_TCM_CBE_3_0_SHIFT 16
648#define GRPCI2_TCM_CBE_3_0_MASK 0xf0000U
649#define GRPCI2_TCM_CBE_3_0_GET( _reg ) \
650 ( ( ( _reg ) & GRPCI2_TCM_CBE_3_0_MASK ) >> \
651 GRPCI2_TCM_CBE_3_0_SHIFT )
652#define GRPCI2_TCM_CBE_3_0_SET( _reg, _val ) \
653 ( ( ( _reg ) & ~GRPCI2_TCM_CBE_3_0_MASK ) | \
654 ( ( ( _val ) << GRPCI2_TCM_CBE_3_0_SHIFT ) & \
655 GRPCI2_TCM_CBE_3_0_MASK ) )
656#define GRPCI2_TCM_CBE_3_0( _val ) \
657 ( ( ( _val ) << GRPCI2_TCM_CBE_3_0_SHIFT ) & \
658 GRPCI2_TCM_CBE_3_0_MASK )
660#define GRPCI2_TCM_FRAME 0x8000U
662#define GRPCI2_TCM_IRDY 0x4000U
664#define GRPCI2_TCM_TRDY 0x2000U
666#define GRPCI2_TCM_STOP 0x1000U
668#define GRPCI2_TCM_DEVSEL 0x800U
670#define GRPCI2_TCM_PAR 0x400U
672#define GRPCI2_TCM_PERR 0x200U
674#define GRPCI2_TCM_SERR 0x100U
676#define GRPCI2_TCM_IDSEL 0x80U
678#define GRPCI2_TCM_REQ 0x40U
680#define GRPCI2_TCM_GNT 0x20U
682#define GRPCI2_TCM_LOCK 0x10U
684#define GRPCI2_TCM_RST 0x8U
696#define GRPCI2_TADS_SIGNAL_SHIFT 0
697#define GRPCI2_TADS_SIGNAL_MASK 0xffffffffU
698#define GRPCI2_TADS_SIGNAL_GET( _reg ) \
699 ( ( ( _reg ) & GRPCI2_TADS_SIGNAL_MASK ) >> \
700 GRPCI2_TADS_SIGNAL_SHIFT )
701#define GRPCI2_TADS_SIGNAL_SET( _reg, _val ) \
702 ( ( ( _reg ) & ~GRPCI2_TADS_SIGNAL_MASK ) | \
703 ( ( ( _val ) << GRPCI2_TADS_SIGNAL_SHIFT ) & \
704 GRPCI2_TADS_SIGNAL_MASK ) )
705#define GRPCI2_TADS_SIGNAL( _val ) \
706 ( ( ( _val ) << GRPCI2_TADS_SIGNAL_SHIFT ) & \
707 GRPCI2_TADS_SIGNAL_MASK )
720#define GRPCI2_TCS_CBE_3_0_SHIFT 16
721#define GRPCI2_TCS_CBE_3_0_MASK 0xf0000U
722#define GRPCI2_TCS_CBE_3_0_GET( _reg ) \
723 ( ( ( _reg ) & GRPCI2_TCS_CBE_3_0_MASK ) >> \
724 GRPCI2_TCS_CBE_3_0_SHIFT )
725#define GRPCI2_TCS_CBE_3_0_SET( _reg, _val ) \
726 ( ( ( _reg ) & ~GRPCI2_TCS_CBE_3_0_MASK ) | \
727 ( ( ( _val ) << GRPCI2_TCS_CBE_3_0_SHIFT ) & \
728 GRPCI2_TCS_CBE_3_0_MASK ) )
729#define GRPCI2_TCS_CBE_3_0( _val ) \
730 ( ( ( _val ) << GRPCI2_TCS_CBE_3_0_SHIFT ) & \
731 GRPCI2_TCS_CBE_3_0_MASK )
733#define GRPCI2_TCS_FRAME 0x8000U
735#define GRPCI2_TCS_IRDY 0x4000U
737#define GRPCI2_TCS_TRDY 0x2000U
739#define GRPCI2_TCS_STOP 0x1000U
741#define GRPCI2_TCS_DEVSEL 0x800U
743#define GRPCI2_TCS_PAR 0x400U
745#define GRPCI2_TCS_PERR 0x200U
747#define GRPCI2_TCS_SERR 0x100U
749#define GRPCI2_TCS_IDSEL 0x80U
751#define GRPCI2_TCS_REQ 0x40U
753#define GRPCI2_TCS_GNT 0x20U
755#define GRPCI2_TCS_LOCK 0x10U
757#define GRPCI2_TCS_RST 0x8U
800 uint32_t reserved_1c_20;
807 uint32_t reserved_24_34[ 4 ];
814 uint32_t reserved_38_40[ 2 ];
821 uint32_t reserved_44_7c[ 14 ];
struct grpci2 grpci2
This structure defines the GRPCI2 register block memory map.
This structure defines the GRPCI2 register block memory map.
Definition: grpci2-regs.h:764
uint32_t tadm
See PCI trace AD mask register (TADM).
Definition: grpci2-regs.h:846
uint32_t pci2ahb_1
See PCI BAR to AHB address mapping register (PCI2AHB).
Definition: grpci2-regs.h:812
uint32_t ahbm2pci_1
See AHB master to PCI memory address mapping register (AHBM2PCI).
Definition: grpci2-regs.h:826
uint32_t pci2ahb_0
See PCI BAR to AHB address mapping register (PCI2AHB).
Definition: grpci2-regs.h:805
uint32_t dmactrl
See DMA control and status register (DMACTRL).
Definition: grpci2-regs.h:788
uint32_t dmabase
See DMA descriptor base address register (DMABASE).
Definition: grpci2-regs.h:793
uint32_t tadp
See PCI trace AD pattern register (TADP).
Definition: grpci2-regs.h:841
uint32_t dmachan
See DMA channel active register (DMACHAN).
Definition: grpci2-regs.h:798
uint32_t statcap
See Status and Capability register (STATCAP).
Definition: grpci2-regs.h:773
uint32_t tctrc
See PCI trace Control and Status register (TCTRC).
Definition: grpci2-regs.h:831
uint32_t tcp
See PCI trace Ctrl signal pattern register (TCP).
Definition: grpci2-regs.h:851
uint32_t tmode
See PCI trace counter and mode register (TMODE).
Definition: grpci2-regs.h:836
uint32_t bcim
See PCI master prefetch burst limit (BCIM).
Definition: grpci2-regs.h:778
uint32_t ctrl
See Control register (CTRL).
Definition: grpci2-regs.h:768
uint32_t tcm
See PCI trace Ctrl signal mask register (TCM).
Definition: grpci2-regs.h:856
uint32_t ahb2pci
See AHB to PCI mapping for PCI IO (AHB2PCI).
Definition: grpci2-regs.h:783
uint32_t tcs
See PCI trace PCI Ctrl signal state register (TCS).
Definition: grpci2-regs.h:866
uint32_t tads
See PCI trace PCI AD state register (TADS).
Definition: grpci2-regs.h:861
uint32_t ahbm2pci_0
See AHB master to PCI memory address mapping register (AHBM2PCI).
Definition: grpci2-regs.h:819