1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
|
/******************************************************************************
**
** \file gh_debug_idsp.c
**
** \brief IDSP Debug Registers.
**
** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
**
** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
** OMMISSIONS.
**
** \note Do not modify this file as it is generated automatically.
**
******************************************************************************/
#include "gh_debug_idsp.h"
/*----------------------------------------------------------------------------*/
/* mirror variables */
/*----------------------------------------------------------------------------*/
GH_DEBUG_IDSP_SECTION_RESET_S m_debug_idsp_section_reset;
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Address (read/write) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
void GH_DEBUG_IDSP_set_Address(U32 data)
{
*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS = data;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Address] <-- 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,data,data);
#endif
}
U32 GH_DEBUG_IDSP_get_Address(void)
{
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS);
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Address] --> 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,value);
#endif
return value;
}
void GH_DEBUG_IDSP_set_Address_filter_address_MSB(U8 data)
{
GH_DEBUG_IDSP_ADDRESS_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_ADDRESS;
d.bitc.filter_address_msb = data;
*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Address_filter_address_MSB] <-- 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_Address_filter_address_MSB(void)
{
GH_DEBUG_IDSP_ADDRESS_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Address_filter_address_MSB] --> 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,value);
#endif
return tmp_value.bitc.filter_address_msb;
}
void GH_DEBUG_IDSP_set_Address_filter_number(U8 data)
{
GH_DEBUG_IDSP_ADDRESS_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_ADDRESS;
d.bitc.filter_number = data;
*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Address_filter_number] <-- 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_Address_filter_number(void)
{
GH_DEBUG_IDSP_ADDRESS_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Address_filter_number] --> 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,value);
#endif
return tmp_value.bitc.filter_number;
}
void GH_DEBUG_IDSP_set_Address_section_number(U8 data)
{
GH_DEBUG_IDSP_ADDRESS_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_ADDRESS;
d.bitc.section_number = data;
*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Address_section_number] <-- 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_Address_section_number(void)
{
GH_DEBUG_IDSP_ADDRESS_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ADDRESS);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Address_section_number] --> 0x%08x\n",
REG_DEBUG_IDSP_ADDRESS,value);
#endif
return tmp_value.bitc.section_number;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Config (read) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
U32 GH_DEBUG_IDSP_get_Config(void)
{
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CONFIG);
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Config] --> 0x%08x\n",
REG_DEBUG_IDSP_CONFIG,value);
#endif
return value;
}
U8 GH_DEBUG_IDSP_get_Config_write_data(void)
{
GH_DEBUG_IDSP_CONFIG_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CONFIG);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Config_write_data] --> 0x%08x\n",
REG_DEBUG_IDSP_CONFIG,value);
#endif
return tmp_value.bitc.write_data;
}
U8 GH_DEBUG_IDSP_get_Config_second_half(void)
{
GH_DEBUG_IDSP_CONFIG_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CONFIG);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Config_second_half] --> 0x%08x\n",
REG_DEBUG_IDSP_CONFIG,value);
#endif
return tmp_value.bitc.second_half;
}
U8 GH_DEBUG_IDSP_get_Config_data(void)
{
GH_DEBUG_IDSP_CONFIG_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CONFIG);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Config_data] --> 0x%08x\n",
REG_DEBUG_IDSP_CONFIG,value);
#endif
return tmp_value.bitc.data;
}
U8 GH_DEBUG_IDSP_get_Config_section_ID(void)
{
GH_DEBUG_IDSP_CONFIG_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CONFIG);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Config_section_ID] --> 0x%08x\n",
REG_DEBUG_IDSP_CONFIG,value);
#endif
return tmp_value.bitc.section_id;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Section_reset (write) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL < 2
void GH_DEBUG_IDSP_set_Section_reset(U32 data)
{
m_debug_idsp_section_reset.all = data;
*(volatile U32 *)REG_DEBUG_IDSP_SECTION_RESET = data;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Section_reset] <-- 0x%08x\n",
REG_DEBUG_IDSP_SECTION_RESET,data,data);
#endif
}
U32 GH_DEBUG_IDSP_getm_Section_reset(void)
{
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "[GH_DEBUG_IDSP_getm_Section_reset] --> 0x%08x\n",
m_debug_idsp_section_reset.all);
#endif
return m_debug_idsp_section_reset.all;
}
void GH_DEBUG_IDSP_set_Section_reset_reset(U8 data)
{
m_debug_idsp_section_reset.bitc.reset = data;
*(volatile U32 *)REG_DEBUG_IDSP_SECTION_RESET = m_debug_idsp_section_reset.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Section_reset_reset] <-- 0x%08x\n",
REG_DEBUG_IDSP_SECTION_RESET,m_debug_idsp_section_reset.all,m_debug_idsp_section_reset.all);
#endif
}
U8 GH_DEBUG_IDSP_getm_Section_reset_reset(void)
{
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "[GH_DEBUG_IDSP_getm_Section_reset_reset] --> 0x%08x\n",
m_debug_idsp_section_reset.bitc.reset);
#endif
return m_debug_idsp_section_reset.bitc.reset;
}
#endif /* GH_INLINE_LEVEL < 2 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_error (read/write) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
void GH_DEBUG_IDSP_set_error(U32 data)
{
*(volatile U32 *)REG_DEBUG_IDSP_ERROR = data;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_error] <-- 0x%08x\n",
REG_DEBUG_IDSP_ERROR,data,data);
#endif
}
U32 GH_DEBUG_IDSP_get_error(void)
{
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ERROR);
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_error] --> 0x%08x\n",
REG_DEBUG_IDSP_ERROR,value);
#endif
return value;
}
void GH_DEBUG_IDSP_set_error_reset(U8 data)
{
GH_DEBUG_IDSP_ERROR_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_ERROR;
d.bitc.reset = data;
*(volatile U32 *)REG_DEBUG_IDSP_ERROR = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_error_reset] <-- 0x%08x\n",
REG_DEBUG_IDSP_ERROR,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_error_reset(void)
{
GH_DEBUG_IDSP_ERROR_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_ERROR);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_error_reset] --> 0x%08x\n",
REG_DEBUG_IDSP_ERROR,value);
#endif
return tmp_value.bitc.reset;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_clock_gating_disable (read/write) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
void GH_DEBUG_IDSP_set_clock_gating_disable(U32 data)
{
*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE = data;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_clock_gating_disable] <-- 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,data,data);
#endif
}
U32 GH_DEBUG_IDSP_get_clock_gating_disable(void)
{
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE);
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_clock_gating_disable] --> 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,value);
#endif
return value;
}
void GH_DEBUG_IDSP_set_clock_gating_disable_smem(U8 data)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE;
d.bitc.smem = data;
*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_clock_gating_disable_smem] <-- 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_clock_gating_disable_smem(void)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_clock_gating_disable_smem] --> 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,value);
#endif
return tmp_value.bitc.smem;
}
void GH_DEBUG_IDSP_set_clock_gating_disable_section(U8 data)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE;
d.bitc.section = data;
*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_clock_gating_disable_section] <-- 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_clock_gating_disable_section(void)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_clock_gating_disable_section] --> 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,value);
#endif
return tmp_value.bitc.section;
}
void GH_DEBUG_IDSP_set_clock_gating_disable_smem_tile(U8 data)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S d;
d.all = *(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE;
d.bitc.smem_tile = data;
*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE = d.all;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_clock_gating_disable_smem_tile] <-- 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,d.all,d.all);
#endif
}
U8 GH_DEBUG_IDSP_get_clock_gating_disable_smem_tile(void)
{
GH_DEBUG_IDSP_CLOCK_GATING_DISABLE_S tmp_value;
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_CLOCK_GATING_DISABLE);
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_clock_gating_disable_smem_tile] --> 0x%08x\n",
REG_DEBUG_IDSP_CLOCK_GATING_DISABLE,value);
#endif
return tmp_value.bitc.smem_tile;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Section_command_start (read) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
U32 GH_DEBUG_IDSP_get_Section_command_start(U8 index)
{
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_COMMAND_START + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_command_start] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_COMMAND_START + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return value;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Section_debug1 (read) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
U32 GH_DEBUG_IDSP_get_Section_debug1(U8 index)
{
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return value;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_config_FSM_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_config_FSM_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.config_fsm_state;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_config_FSM_done(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_config_FSM_done] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.config_fsm_done;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_pending_secondary_stores(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_pending_secondary_stores] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.pending_secondary_stores;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_pending_primary_stores(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_pending_primary_stores] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.pending_primary_stores;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_line_sync_needed(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_line_sync_needed] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.line_sync_needed;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_line_sync_pending(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_line_sync_pending] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.line_sync_pending;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_store_FSM_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_store_FSM_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.store_fsm_state;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_store_FSM_top_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_store_FSM_top_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.store_fsm_top_state;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_pending_loads(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_pending_loads] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.pending_loads;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_load_FSM_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_load_FSM_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.load_fsm_state;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_load_FSM_top_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_load_FSM_top_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.load_fsm_top_state;
}
U8 GH_DEBUG_IDSP_get_Section_debug1_main_FSM_state(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG1_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug1_main_FSM_state] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG1 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.main_fsm_state;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Section_debug2 (read) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
U32 GH_DEBUG_IDSP_get_Section_debug2(U8 index)
{
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return value;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_store_count0(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_store_count0] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.store_count0;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_store_count1(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_store_count1] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.store_count1;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_store_count2(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_store_count2] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.store_count2;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_last_half(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_last_half] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.last_half;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_last_word(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_last_word] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.last_word;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_more(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_more] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.more;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_filter(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_filter] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.filter;
}
U8 GH_DEBUG_IDSP_get_Section_debug2_section(U8 index)
{
GH_DEBUG_IDSP_SECTION_DEBUG2_S tmp_value;
U32 value = (*(volatile U32 *)(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)));
tmp_value.all = value;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Section_debug2_section] --> 0x%08x\n",
(REG_DEBUG_IDSP_SECTION_DEBUG2 + index * FIO_MOFFSET(DEBUG_IDSP,0x00000040)),value);
#endif
return tmp_value.bitc.section;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* register DEBUG_IDSP_Filter (read/write) */
/*----------------------------------------------------------------------------*/
#if GH_INLINE_LEVEL == 0
void GH_DEBUG_IDSP_set_Filter(U32 data)
{
*(volatile U32 *)REG_DEBUG_IDSP_FILTER = data;
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_IDSP_set_Filter] <-- 0x%08x\n",
REG_DEBUG_IDSP_FILTER,data,data);
#endif
}
U32 GH_DEBUG_IDSP_get_Filter(void)
{
U32 value = (*(volatile U32 *)REG_DEBUG_IDSP_FILTER);
#if GH_DEBUG_IDSP_ENABLE_DEBUG_PRINT
GH_DEBUG_IDSP_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_IDSP_get_Filter] --> 0x%08x\n",
REG_DEBUG_IDSP_FILTER,value);
#endif
return value;
}
#endif /* GH_INLINE_LEVEL == 0 */
/*----------------------------------------------------------------------------*/
/* init function */
/*----------------------------------------------------------------------------*/
void GH_DEBUG_IDSP_init(void)
{
GH_DEBUG_IDSP_set_Address((U32)0x00000000);
GH_DEBUG_IDSP_set_Section_reset((U32)0x00000000);
GH_DEBUG_IDSP_set_error((U32)0x00000000);
GH_DEBUG_IDSP_set_clock_gating_disable((U32)0x00000000);
GH_DEBUG_IDSP_set_Filter((U32)0x00000000);
/* read read-clear registers in order to set mirror variables */
}
/*----------------------------------------------------------------------------*/
/* end of file */
/*----------------------------------------------------------------------------*/
|