summaryrefslogtreecommitdiffstats
path: root/src/ssx/pgp/registers/pore_firmware_registers.h
blob: 76127d9427431ba85796a77f2f272362cdcaee67 (plain)
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
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
#ifndef __PORE_FIRMWARE_REGISTERS_H__
#define __PORE_FIRMWARE_REGISTERS_H__

// $Id: pore_firmware_registers.h,v 1.1.1.1 2013/12/11 21:03:25 bcbrock Exp $
// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/chips/p8/working/procedures/ssx/pgp/registers/pore_firmware_registers.h,v $
//-----------------------------------------------------------------------------
// *! (C) Copyright International Business Machines Corp. 2013
// *! All Rights Reserved -- Property of IBM
// *! *** IBM Confidential ***
//-----------------------------------------------------------------------------

/// \file pore_firmware_registers.h
/// \brief C register structs for the PORE unit

// *** WARNING *** - This file is generated automatically, do not edit.

#ifndef SIXTYFOUR_BIT_CONSTANT
#ifdef __ASSEMBLER__
#define SIXTYFOUR_BIT_CONSTANT(x) x
#else
#define SIXTYFOUR_BIT_CONSTANT(x) x##ull
#endif
#endif

#ifndef __ASSEMBLER__

#include <stdint.h>




typedef union pore_status {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t cur_state : 8;
    uint64_t freeze_action : 1;
    uint64_t interrupt_pending : 1;
    uint64_t spare : 2;
    uint64_t stack_pointer : 4;
    uint64_t pc : 48;
#else
    uint64_t pc : 48;
    uint64_t stack_pointer : 4;
    uint64_t spare : 2;
    uint64_t interrupt_pending : 1;
    uint64_t freeze_action : 1;
    uint64_t cur_state : 8;
#endif // _BIG_ENDIAN
    } fields;
} pore_status_t;

#endif // __ASSEMBLER__
#define PORE_STATUS_CUR_STATE_MASK SIXTYFOUR_BIT_CONSTANT(0xff00000000000000)
#define PORE_STATUS_FREEZE_ACTION SIXTYFOUR_BIT_CONSTANT(0x0080000000000000)
#define PORE_STATUS_INTERRUPT_PENDING SIXTYFOUR_BIT_CONSTANT(0x0040000000000000)
#define PORE_STATUS_SPARE_MASK SIXTYFOUR_BIT_CONSTANT(0x0030000000000000)
#define PORE_STATUS_STACK_POINTER_MASK SIXTYFOUR_BIT_CONSTANT(0x000f000000000000)
#define PORE_STATUS_PC_MASK SIXTYFOUR_BIT_CONSTANT(0xffffffffffffffff)
#ifndef __ASSEMBLER__


typedef union pore_control {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t start_stop : 1;
    uint64_t continue_step : 1;
    uint64_t skip : 1;
    uint64_t set_pc : 1;
    uint64_t set_tp_scan_clk : 3;
    uint64_t lock_exe_trig : 1;
    uint64_t freeze_mask : 1;
    uint64_t check_parity : 1;
    uint64_t prv_parity : 1;
    uint64_t trap_enable : 1;
    uint64_t narrow_mode_trace : 1;
    uint64_t interruptible : 1;
    uint64_t pore_done_override : 1;
    uint64_t interruptible_en : 1;
    uint64_t pc_brk_pt : 48;
#else
    uint64_t pc_brk_pt : 48;
    uint64_t interruptible_en : 1;
    uint64_t pore_done_override : 1;
    uint64_t interruptible : 1;
    uint64_t narrow_mode_trace : 1;
    uint64_t trap_enable : 1;
    uint64_t prv_parity : 1;
    uint64_t check_parity : 1;
    uint64_t freeze_mask : 1;
    uint64_t lock_exe_trig : 1;
    uint64_t set_tp_scan_clk : 3;
    uint64_t set_pc : 1;
    uint64_t skip : 1;
    uint64_t continue_step : 1;
    uint64_t start_stop : 1;
#endif // _BIG_ENDIAN
    } fields;
} pore_control_t;

#endif // __ASSEMBLER__
#define PORE_CONTROL_START_STOP SIXTYFOUR_BIT_CONSTANT(0x8000000000000000)
#define PORE_CONTROL_CONTINUE_STEP SIXTYFOUR_BIT_CONSTANT(0x4000000000000000)
#define PORE_CONTROL_SKIP SIXTYFOUR_BIT_CONSTANT(0x2000000000000000)
#define PORE_CONTROL_SET_PC SIXTYFOUR_BIT_CONSTANT(0x1000000000000000)
#define PORE_CONTROL_SET_TP_SCAN_CLK_MASK SIXTYFOUR_BIT_CONSTANT(0x0e00000000000000)
#define PORE_CONTROL_LOCK_EXE_TRIG SIXTYFOUR_BIT_CONSTANT(0x0100000000000000)
#define PORE_CONTROL_FREEZE_MASK SIXTYFOUR_BIT_CONSTANT(0x0080000000000000)
#define PORE_CONTROL_CHECK_PARITY SIXTYFOUR_BIT_CONSTANT(0x0040000000000000)
#define PORE_CONTROL_PRV_PARITY SIXTYFOUR_BIT_CONSTANT(0x0020000000000000)
#define PORE_CONTROL_TRAP_ENABLE SIXTYFOUR_BIT_CONSTANT(0x0010000000000000)
#define PORE_CONTROL_NARROW_MODE_TRACE SIXTYFOUR_BIT_CONSTANT(0x0008000000000000)
#define PORE_CONTROL_INTERRUPTIBLE SIXTYFOUR_BIT_CONSTANT(0x0004000000000000)
#define PORE_CONTROL_PORE_DONE_OVERRIDE SIXTYFOUR_BIT_CONSTANT(0x0002000000000000)
#define PORE_CONTROL_INTERRUPTIBLE_EN SIXTYFOUR_BIT_CONSTANT(0x0001000000000000)
#define PORE_CONTROL_PC_BRK_PT_MASK SIXTYFOUR_BIT_CONSTANT(0xffffffffffffffff)
#ifndef __ASSEMBLER__


typedef union pore_reset {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t fn_reset : 1;
    uint64_t oci_reset : 1;
    uint64_t _reserved0 : 62;
#else
    uint64_t _reserved0 : 62;
    uint64_t oci_reset : 1;
    uint64_t fn_reset : 1;
#endif // _BIG_ENDIAN
    } fields;
} pore_reset_t;



typedef union pore_error_mask {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t enable_err_handler0 : 1;
    uint64_t enable_err_handler1 : 1;
    uint64_t enable_err_handler2 : 1;
    uint64_t enable_err_handler3 : 1;
    uint64_t enable_err_handler4 : 1;
    uint64_t enable_err_output0 : 1;
    uint64_t enable_err_output1 : 1;
    uint64_t enable_err_output2 : 1;
    uint64_t enable_err_output3 : 1;
    uint64_t enable_err_output4 : 1;
    uint64_t enable_fatal_err_output0 : 1;
    uint64_t enable_fatal_err_output1 : 1;
    uint64_t enable_fatal_err_output2 : 1;
    uint64_t enable_fatal_err_output3 : 1;
    uint64_t enable_fatal_err_output4 : 1;
    uint64_t stop_exe_on_error0 : 1;
    uint64_t stop_exe_on_error1 : 1;
    uint64_t stop_exe_on_error2 : 1;
    uint64_t stop_exe_on_error3 : 1;
    uint64_t stop_exe_on_error4 : 1;
    uint64_t gate_chiplet_offline_err : 1;
    uint64_t i2c_bad_status_0 : 1;
    uint64_t i2c_bad_status_1 : 1;
    uint64_t i2c_bad_status_2 : 1;
    uint64_t i2c_bad_status_3 : 1;
    uint64_t group_parity_error_0 : 1;
    uint64_t group_parity_error_1 : 1;
    uint64_t group_parity_error_2 : 1;
    uint64_t group_parity_error_3 : 1;
    uint64_t group_parity_error_4 : 1;
    uint64_t _reserved0 : 34;
#else
    uint64_t _reserved0 : 34;
    uint64_t group_parity_error_4 : 1;
    uint64_t group_parity_error_3 : 1;
    uint64_t group_parity_error_2 : 1;
    uint64_t group_parity_error_1 : 1;
    uint64_t group_parity_error_0 : 1;
    uint64_t i2c_bad_status_3 : 1;
    uint64_t i2c_bad_status_2 : 1;
    uint64_t i2c_bad_status_1 : 1;
    uint64_t i2c_bad_status_0 : 1;
    uint64_t gate_chiplet_offline_err : 1;
    uint64_t stop_exe_on_error4 : 1;
    uint64_t stop_exe_on_error3 : 1;
    uint64_t stop_exe_on_error2 : 1;
    uint64_t stop_exe_on_error1 : 1;
    uint64_t stop_exe_on_error0 : 1;
    uint64_t enable_fatal_err_output4 : 1;
    uint64_t enable_fatal_err_output3 : 1;
    uint64_t enable_fatal_err_output2 : 1;
    uint64_t enable_fatal_err_output1 : 1;
    uint64_t enable_fatal_err_output0 : 1;
    uint64_t enable_err_output4 : 1;
    uint64_t enable_err_output3 : 1;
    uint64_t enable_err_output2 : 1;
    uint64_t enable_err_output1 : 1;
    uint64_t enable_err_output0 : 1;
    uint64_t enable_err_handler4 : 1;
    uint64_t enable_err_handler3 : 1;
    uint64_t enable_err_handler2 : 1;
    uint64_t enable_err_handler1 : 1;
    uint64_t enable_err_handler0 : 1;
#endif // _BIG_ENDIAN
    } fields;
} pore_error_mask_t;

#endif // __ASSEMBLER__
#define PORE_ERROR_MASK_ENABLE_ERR_HANDLER0 SIXTYFOUR_BIT_CONSTANT(0x8000000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_HANDLER1 SIXTYFOUR_BIT_CONSTANT(0x4000000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_HANDLER2 SIXTYFOUR_BIT_CONSTANT(0x2000000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_HANDLER3 SIXTYFOUR_BIT_CONSTANT(0x1000000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_HANDLER4 SIXTYFOUR_BIT_CONSTANT(0x0800000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_OUTPUT0 SIXTYFOUR_BIT_CONSTANT(0x0400000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_OUTPUT1 SIXTYFOUR_BIT_CONSTANT(0x0200000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_OUTPUT2 SIXTYFOUR_BIT_CONSTANT(0x0100000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_OUTPUT3 SIXTYFOUR_BIT_CONSTANT(0x0080000000000000)
#define PORE_ERROR_MASK_ENABLE_ERR_OUTPUT4 SIXTYFOUR_BIT_CONSTANT(0x0040000000000000)
#define PORE_ERROR_MASK_ENABLE_FATAL_ERR_OUTPUT0 SIXTYFOUR_BIT_CONSTANT(0x0020000000000000)
#define PORE_ERROR_MASK_ENABLE_FATAL_ERR_OUTPUT1 SIXTYFOUR_BIT_CONSTANT(0x0010000000000000)
#define PORE_ERROR_MASK_ENABLE_FATAL_ERR_OUTPUT2 SIXTYFOUR_BIT_CONSTANT(0x0008000000000000)
#define PORE_ERROR_MASK_ENABLE_FATAL_ERR_OUTPUT3 SIXTYFOUR_BIT_CONSTANT(0x0004000000000000)
#define PORE_ERROR_MASK_ENABLE_FATAL_ERR_OUTPUT4 SIXTYFOUR_BIT_CONSTANT(0x0002000000000000)
#define PORE_ERROR_MASK_STOP_EXE_ON_ERROR0 SIXTYFOUR_BIT_CONSTANT(0x0001000000000000)
#define PORE_ERROR_MASK_STOP_EXE_ON_ERROR1 SIXTYFOUR_BIT_CONSTANT(0x0000800000000000)
#define PORE_ERROR_MASK_STOP_EXE_ON_ERROR2 SIXTYFOUR_BIT_CONSTANT(0x0000400000000000)
#define PORE_ERROR_MASK_STOP_EXE_ON_ERROR3 SIXTYFOUR_BIT_CONSTANT(0x0000200000000000)
#define PORE_ERROR_MASK_STOP_EXE_ON_ERROR4 SIXTYFOUR_BIT_CONSTANT(0x0000100000000000)
#define PORE_ERROR_MASK_GATE_CHIPLET_OFFLINE_ERR SIXTYFOUR_BIT_CONSTANT(0x0000080000000000)
#define PORE_ERROR_MASK_I2C_BAD_STATUS_0 SIXTYFOUR_BIT_CONSTANT(0x0000040000000000)
#define PORE_ERROR_MASK_I2C_BAD_STATUS_1 SIXTYFOUR_BIT_CONSTANT(0x0000020000000000)
#define PORE_ERROR_MASK_I2C_BAD_STATUS_2 SIXTYFOUR_BIT_CONSTANT(0x0000010000000000)
#define PORE_ERROR_MASK_I2C_BAD_STATUS_3 SIXTYFOUR_BIT_CONSTANT(0x0000008000000000)
#define PORE_ERROR_MASK_GROUP_PARITY_ERROR_0 SIXTYFOUR_BIT_CONSTANT(0x0000004000000000)
#define PORE_ERROR_MASK_GROUP_PARITY_ERROR_1 SIXTYFOUR_BIT_CONSTANT(0x0000002000000000)
#define PORE_ERROR_MASK_GROUP_PARITY_ERROR_2 SIXTYFOUR_BIT_CONSTANT(0x0000001000000000)
#define PORE_ERROR_MASK_GROUP_PARITY_ERROR_3 SIXTYFOUR_BIT_CONSTANT(0x0000000800000000)
#define PORE_ERROR_MASK_GROUP_PARITY_ERROR_4 SIXTYFOUR_BIT_CONSTANT(0x0000000400000000)
#ifndef __ASSEMBLER__


typedef union pore_prv_base_address0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t spare : 25;
    uint64_t mc : 1;
    uint64_t chiplet_id : 6;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t chiplet_id : 6;
    uint64_t mc : 1;
    uint64_t spare : 25;
#endif // _BIG_ENDIAN
    } fields;
} pore_prv_base_address0_t;



typedef union pore_prv_base_address1 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t spare : 25;
    uint64_t mc : 1;
    uint64_t chiplet_id : 6;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t chiplet_id : 6;
    uint64_t mc : 1;
    uint64_t spare : 25;
#endif // _BIG_ENDIAN
    } fields;
} pore_prv_base_address1_t;



typedef union pore_oci_base_address0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t spare : 18;
    uint64_t oci_mem_route : 14;
    uint64_t oci_base_address : 32;
#else
    uint64_t oci_base_address : 32;
    uint64_t oci_mem_route : 14;
    uint64_t spare : 18;
#endif // _BIG_ENDIAN
    } fields;
} pore_oci_base_address0_t;



typedef union pore_oci_base_address1 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t spare : 18;
    uint64_t oci_mem_route : 14;
    uint64_t oci_base_address : 32;
#else
    uint64_t oci_base_address : 32;
    uint64_t oci_mem_route : 14;
    uint64_t spare : 18;
#endif // _BIG_ENDIAN
    } fields;
} pore_oci_base_address1_t;



typedef union pore_table_base_addr {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t reserved : 16;
    uint64_t memory_space : 16;
    uint64_t table_base_address : 32;
#else
    uint64_t table_base_address : 32;
    uint64_t memory_space : 16;
    uint64_t reserved : 16;
#endif // _BIG_ENDIAN
    } fields;
} pore_table_base_addr_t;



typedef union pore_exe_trigger {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t reserved : 8;
    uint64_t start_vector : 4;
    uint64_t zeroes : 8;
    uint64_t unused : 12;
    uint64_t mc_chiplet_select_mask : 32;
#else
    uint64_t mc_chiplet_select_mask : 32;
    uint64_t unused : 12;
    uint64_t zeroes : 8;
    uint64_t start_vector : 4;
    uint64_t reserved : 8;
#endif // _BIG_ENDIAN
    } fields;
} pore_exe_trigger_t;



typedef union pore_scratch0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t zeroes : 8;
    uint64_t scratch0 : 24;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t scratch0 : 24;
    uint64_t zeroes : 8;
#endif // _BIG_ENDIAN
    } fields;
} pore_scratch0_t;



typedef union pore_scratch1 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t scratch1 : 64;
#else
    uint64_t scratch1 : 64;
#endif // _BIG_ENDIAN
    } fields;
} pore_scratch1_t;



typedef union pore_scratch2 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t scratch2 : 64;
#else
    uint64_t scratch2 : 64;
#endif // _BIG_ENDIAN
    } fields;
} pore_scratch2_t;



typedef union pore_ibuf_01 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t ibuf0 : 32;
    uint64_t ibuf1 : 32;
#else
    uint64_t ibuf1 : 32;
    uint64_t ibuf0 : 32;
#endif // _BIG_ENDIAN
    } fields;
} pore_ibuf_01_t;



typedef union pore_ibuf_2 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t ibuf2 : 32;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t ibuf2 : 32;
#endif // _BIG_ENDIAN
    } fields;
} pore_ibuf_2_t;



typedef union pore_dbg0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t last_completed_address : 32;
    uint64_t last_pib_parity_fail : 1;
    uint64_t last_ret_code_prv : 3;
    uint64_t i2c_bad_status0 : 1;
    uint64_t i2c_bad_status1 : 1;
    uint64_t i2c_bad_status2 : 1;
    uint64_t i2c_bad_status3 : 1;
    uint64_t group_parity_error0 : 1;
    uint64_t group_parity_error1 : 1;
    uint64_t group_parity_error2 : 1;
    uint64_t group_parity_error3 : 1;
    uint64_t group_parity_error4 : 1;
    uint64_t interrupt_counter : 8;
    uint64_t _reserved0 : 11;
#else
    uint64_t _reserved0 : 11;
    uint64_t interrupt_counter : 8;
    uint64_t group_parity_error4 : 1;
    uint64_t group_parity_error3 : 1;
    uint64_t group_parity_error2 : 1;
    uint64_t group_parity_error1 : 1;
    uint64_t group_parity_error0 : 1;
    uint64_t i2c_bad_status3 : 1;
    uint64_t i2c_bad_status2 : 1;
    uint64_t i2c_bad_status1 : 1;
    uint64_t i2c_bad_status0 : 1;
    uint64_t last_ret_code_prv : 3;
    uint64_t last_pib_parity_fail : 1;
    uint64_t last_completed_address : 32;
#endif // _BIG_ENDIAN
    } fields;
} pore_dbg0_t;



typedef union pore_dbg1 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t pc_last_access : 48;
    uint64_t oci_master_rd_parity_err : 1;
    uint64_t last_ret_code_oci : 3;
    uint64_t bad_instr_parity : 1;
    uint64_t invalid_instr_code : 1;
    uint64_t pc_overflow_underrun : 1;
    uint64_t bad_scan_crc : 1;
    uint64_t pc_stack_ovflw_undrn_err : 1;
    uint64_t instruction_fetch_error : 1;
    uint64_t invalid_instruction_operand : 1;
    uint64_t invalid_instruction_path : 1;
    uint64_t invalid_start_vector : 1;
    uint64_t fast_i2c_protocol_hang : 1;
    uint64_t spare : 1;
    uint64_t debug_regs_locked : 1;
#else
    uint64_t debug_regs_locked : 1;
    uint64_t spare : 1;
    uint64_t fast_i2c_protocol_hang : 1;
    uint64_t invalid_start_vector : 1;
    uint64_t invalid_instruction_path : 1;
    uint64_t invalid_instruction_operand : 1;
    uint64_t instruction_fetch_error : 1;
    uint64_t pc_stack_ovflw_undrn_err : 1;
    uint64_t bad_scan_crc : 1;
    uint64_t pc_overflow_underrun : 1;
    uint64_t invalid_instr_code : 1;
    uint64_t bad_instr_parity : 1;
    uint64_t last_ret_code_oci : 3;
    uint64_t oci_master_rd_parity_err : 1;
    uint64_t pc_last_access : 48;
#endif // _BIG_ENDIAN
    } fields;
} pore_dbg1_t;



typedef union pore_pc_stack0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t pc_stack0 : 48;
    uint64_t _reserved0 : 11;
    uint64_t set_new_stack_pointer : 1;
    uint64_t new_stack_pointer : 4;
#else
    uint64_t new_stack_pointer : 4;
    uint64_t set_new_stack_pointer : 1;
    uint64_t _reserved0 : 11;
    uint64_t pc_stack0 : 48;
#endif // _BIG_ENDIAN
    } fields;
} pore_pc_stack0_t;



typedef union pore_pc_stack1 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t pc_stack1 : 48;
    uint64_t _reserved0 : 16;
#else
    uint64_t _reserved0 : 16;
    uint64_t pc_stack1 : 48;
#endif // _BIG_ENDIAN
    } fields;
} pore_pc_stack1_t;



typedef union pore_pc_stack2 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t pc_stack2 : 48;
    uint64_t _reserved0 : 16;
#else
    uint64_t _reserved0 : 16;
    uint64_t pc_stack2 : 48;
#endif // _BIG_ENDIAN
    } fields;
} pore_pc_stack2_t;



typedef union pore_id_flags {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t reserved0 : 32;
    uint64_t pib_parity_fail : 1;
    uint64_t pib_status : 3;
    uint64_t oci_parity_fail : 1;
    uint64_t oci_status : 3;
    uint64_t reserved1 : 8;
    uint64_t ugt : 1;
    uint64_t ult : 1;
    uint64_t sgt : 1;
    uint64_t slt : 1;
    uint64_t c : 1;
    uint64_t o : 1;
    uint64_t n : 1;
    uint64_t z : 1;
    uint64_t reserved2 : 4;
    uint64_t ibuf_id : 4;
#else
    uint64_t ibuf_id : 4;
    uint64_t reserved2 : 4;
    uint64_t z : 1;
    uint64_t n : 1;
    uint64_t o : 1;
    uint64_t c : 1;
    uint64_t slt : 1;
    uint64_t sgt : 1;
    uint64_t ult : 1;
    uint64_t ugt : 1;
    uint64_t reserved1 : 8;
    uint64_t oci_status : 3;
    uint64_t oci_parity_fail : 1;
    uint64_t pib_status : 3;
    uint64_t pib_parity_fail : 1;
    uint64_t reserved0 : 32;
#endif // _BIG_ENDIAN
    } fields;
} pore_id_flags_t;



typedef union pore_data0 {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t data0 : 32;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t data0 : 32;
#endif // _BIG_ENDIAN
    } fields;
} pore_data0_t;



typedef union pore_memory_reloc {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t _reserved0 : 30;
    uint64_t memory_reloc_region : 2;
    uint64_t memory_reloc_base : 20;
    uint64_t _reserved1 : 12;
#else
    uint64_t _reserved1 : 12;
    uint64_t memory_reloc_base : 20;
    uint64_t memory_reloc_region : 2;
    uint64_t _reserved0 : 30;
#endif // _BIG_ENDIAN
    } fields;
} pore_memory_reloc_t;



typedef union pore_i2c_en_param {

    uint64_t value;
    struct {
#ifdef _BIG_ENDIAN
        uint32_t high_order;
        uint32_t low_order;
#else
        uint32_t low_order;
        uint32_t high_order;
#endif // _BIG_ENDIAN
    } words;
    struct {
#ifdef _BIG_ENDIAN
    uint64_t i2c_engine_identifier : 4;
    uint64_t reserved0 : 1;
    uint64_t i2c_engine_address_range : 3;
    uint64_t reserved1 : 3;
    uint64_t i2c_engine_port : 5;
    uint64_t reserved2 : 1;
    uint64_t i2c_engine_device_id : 7;
    uint64_t reserved3 : 2;
    uint64_t i2c_engine_speed : 2;
    uint64_t i2c_poll_threshold : 4;
    uint64_t _reserved0 : 32;
#else
    uint64_t _reserved0 : 32;
    uint64_t i2c_poll_threshold : 4;
    uint64_t i2c_engine_speed : 2;
    uint64_t reserved3 : 2;
    uint64_t i2c_engine_device_id : 7;
    uint64_t reserved2 : 1;
    uint64_t i2c_engine_port : 5;
    uint64_t reserved1 : 3;
    uint64_t i2c_engine_address_range : 3;
    uint64_t reserved0 : 1;
    uint64_t i2c_engine_identifier : 4;
#endif // _BIG_ENDIAN
    } fields;
} pore_i2c_en_param_t;


#endif // __ASSEMBLER__
#endif // __PORE_FIRMWARE_REGISTERS_H__

OpenPOWER on IntegriCloud