summaryrefslogtreecommitdiffstats
path: root/src/ssx/pgp/registers/pc_firmware_registers.h
blob: 2c86308198e6fa273860ed09331587b8225b6f21 (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
#ifndef __PC_FIRMWARE_REGISTERS_H__
#define __PC_FIRMWARE_REGISTERS_H__

// $Id: pc_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/pc_firmware_registers.h,v $
//-----------------------------------------------------------------------------
// *! (C) Copyright International Business Machines Corp. 2013
// *! All Rights Reserved -- Property of IBM
// *! *** IBM Confidential ***
//-----------------------------------------------------------------------------

/// \file pc_firmware_registers.h
/// \brief C register structs for the PC 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 pc_pfth_modereg {

    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 pfth_cntr_dis : 1;
    uint64_t pfth_charac_mode : 1;
    uint64_t pfth_cntr_run_latch_gate_dis : 1;
    uint64_t sprd_pfth_tx_run_latches : 8;
    uint64_t tx_threads_stopped : 8;
    uint64_t _reserved0 : 45;
#else
    uint64_t _reserved0 : 45;
    uint64_t tx_threads_stopped : 8;
    uint64_t sprd_pfth_tx_run_latches : 8;
    uint64_t pfth_cntr_run_latch_gate_dis : 1;
    uint64_t pfth_charac_mode : 1;
    uint64_t pfth_cntr_dis : 1;
#endif // _BIG_ENDIAN
    } fields;
} pc_pfth_modereg_t;



typedef union pc_occ_sprc {

    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 : 53;
    uint64_t autoinc : 1;
    uint64_t sprn : 7;
    uint64_t reserved1 : 3;
#else
    uint64_t reserved1 : 3;
    uint64_t sprn : 7;
    uint64_t autoinc : 1;
    uint64_t reserved0 : 53;
#endif // _BIG_ENDIAN
    } fields;
} pc_occ_sprc_t;



typedef union pc_occ_sprd {

    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 value : 64;
#else
    uint64_t value : 64;
#endif // _BIG_ENDIAN
    } fields;
} pc_occ_sprd_t;



typedef union pc_pfth_oha_instr_cnt_sel {

    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 : 62;
    uint64_t value : 2;
#else
    uint64_t value : 2;
    uint64_t _reserved0 : 62;
#endif // _BIG_ENDIAN
    } fields;
} pc_pfth_oha_instr_cnt_sel_t;



typedef union pc_pfth_throt_reg {

    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 didt_trigger_enable : 1;
    uint64_t isu_trigger_enable : 1;
    uint64_t didt_throttle : 2;
    uint64_t uthrottle : 2;
    uint64_t force_suppress_speedup : 1;
    uint64_t suppress_speedup_on_throttle : 1;
    uint64_t core_slowdown : 1;
    uint64_t suppress_on_slowdown : 1;
    uint64_t isu_only_count_mode : 1;
    uint64_t spare : 5;
    uint64_t reserved : 48;
#else
    uint64_t reserved : 48;
    uint64_t spare : 5;
    uint64_t isu_only_count_mode : 1;
    uint64_t suppress_on_slowdown : 1;
    uint64_t core_slowdown : 1;
    uint64_t suppress_speedup_on_throttle : 1;
    uint64_t force_suppress_speedup : 1;
    uint64_t uthrottle : 2;
    uint64_t didt_throttle : 2;
    uint64_t isu_trigger_enable : 1;
    uint64_t didt_trigger_enable : 1;
#endif // _BIG_ENDIAN
    } fields;
} pc_pfth_throt_reg_t;



typedef union pc_direct_controln {

    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 : 42;
    uint64_t dc_prestart_sleep : 1;
    uint64_t dc_prestart_winkle : 1;
    uint64_t dc_clear_maint : 1;
    uint64_t dc_ntc_flush : 1;
    uint64_t reserved46 : 1;
    uint64_t dc_prestart_nap : 1;
    uint64_t dc_cancel_lost : 1;
    uint64_t dc_reset_maint : 1;
    uint64_t reserved50 : 1;
    uint64_t dc_set_maint : 1;
    uint64_t dc_goto_quiesce_state : 1;
    uint64_t reserved53 : 1;
    uint64_t dc_inj_test_hang : 2;
    uint64_t dc_core_running : 1;
    uint64_t dc_hang_inject : 1;
    uint64_t dc_smt_start_suppress : 1;
    uint64_t reserved59 : 1;
    uint64_t dc_sreset_request : 1;
    uint64_t dc_core_step : 1;
    uint64_t dc_core_start : 1;
    uint64_t dc_core_stop : 1;
#else
    uint64_t dc_core_stop : 1;
    uint64_t dc_core_start : 1;
    uint64_t dc_core_step : 1;
    uint64_t dc_sreset_request : 1;
    uint64_t reserved59 : 1;
    uint64_t dc_smt_start_suppress : 1;
    uint64_t dc_hang_inject : 1;
    uint64_t dc_core_running : 1;
    uint64_t dc_inj_test_hang : 2;
    uint64_t reserved53 : 1;
    uint64_t dc_goto_quiesce_state : 1;
    uint64_t dc_set_maint : 1;
    uint64_t reserved50 : 1;
    uint64_t dc_reset_maint : 1;
    uint64_t dc_cancel_lost : 1;
    uint64_t dc_prestart_nap : 1;
    uint64_t reserved46 : 1;
    uint64_t dc_ntc_flush : 1;
    uint64_t dc_clear_maint : 1;
    uint64_t dc_prestart_winkle : 1;
    uint64_t dc_prestart_sleep : 1;
    uint64_t reserved0 : 42;
#endif // _BIG_ENDIAN
    } fields;
} pc_direct_controln_t;



typedef union pc_ras_moderegn {

    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 : 43;
    uint64_t mr_thread_in_debug_mode : 1;
    uint64_t mr_pmon_inhibit : 1;
    uint64_t mr_fence_interrupts : 1;
    uint64_t mr_stop_fetch : 1;
    uint64_t mr_stop_prefetch : 1;
    uint64_t mr_stop_dispatch : 1;
    uint64_t mr_single_decode : 1;
    uint64_t mr_do_single_mode : 1;
    uint64_t mr_one_ppc_mode : 1;
    uint64_t mr_hang_test_ctrl : 2;
    uint64_t mr_attempt_gps_hr : 3;
    uint64_t mr_hang_dis : 1;
    uint64_t mr_on_corehng : 1;
    uint64_t mr_on_ambihng : 1;
    uint64_t mr_on_nesthng : 1;
    uint64_t mr_recov_enable : 1;
    uint64_t mr_block_hmi_on_maint : 1;
    uint64_t mr_fence_intr_on_checkstop : 1;
#else
    uint64_t mr_fence_intr_on_checkstop : 1;
    uint64_t mr_block_hmi_on_maint : 1;
    uint64_t mr_recov_enable : 1;
    uint64_t mr_on_nesthng : 1;
    uint64_t mr_on_ambihng : 1;
    uint64_t mr_on_corehng : 1;
    uint64_t mr_hang_dis : 1;
    uint64_t mr_attempt_gps_hr : 3;
    uint64_t mr_hang_test_ctrl : 2;
    uint64_t mr_one_ppc_mode : 1;
    uint64_t mr_do_single_mode : 1;
    uint64_t mr_single_decode : 1;
    uint64_t mr_stop_dispatch : 1;
    uint64_t mr_stop_prefetch : 1;
    uint64_t mr_stop_fetch : 1;
    uint64_t mr_fence_interrupts : 1;
    uint64_t mr_pmon_inhibit : 1;
    uint64_t mr_thread_in_debug_mode : 1;
    uint64_t reserved0 : 43;
#endif // _BIG_ENDIAN
    } fields;
} pc_ras_moderegn_t;



typedef union pc_ras_statusn {

    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 quiesce_status : 20;
    uint64_t reserved20 : 1;
    uint64_t reserved21 : 1;
    uint64_t reserved22 : 1;
    uint64_t other_thread_active : 1;
    uint64_t hang_fsm : 3;
    uint64_t reserved27 : 1;
    uint64_t hang_hist0 : 1;
    uint64_t hang_hist1 : 1;
    uint64_t hang_hist2 : 1;
    uint64_t hang_hist3 : 1;
    uint64_t reserved32 : 1;
    uint64_t hr_comp_cnt : 8;
    uint64_t smt_dead_stop : 1;
    uint64_t stop_fetch : 1;
    uint64_t stop_dispatch : 1;
    uint64_t stop_completion : 1;
    uint64_t hold_decode : 1;
    uint64_t reserved46 : 1;
    uint64_t reserved47 : 1;
    uint64_t thread_enabled : 1;
    uint64_t pow_status_thread_state : 4;
    uint64_t reserved53 : 1;
    uint64_t maint_single_mode : 1;
    uint64_t reserved55 : 1;
    uint64_t reserved56 : 1;
    uint64_t reserved57 : 7;
#else
    uint64_t reserved57 : 7;
    uint64_t reserved56 : 1;
    uint64_t reserved55 : 1;
    uint64_t maint_single_mode : 1;
    uint64_t reserved53 : 1;
    uint64_t pow_status_thread_state : 4;
    uint64_t thread_enabled : 1;
    uint64_t reserved47 : 1;
    uint64_t reserved46 : 1;
    uint64_t hold_decode : 1;
    uint64_t stop_completion : 1;
    uint64_t stop_dispatch : 1;
    uint64_t stop_fetch : 1;
    uint64_t smt_dead_stop : 1;
    uint64_t hr_comp_cnt : 8;
    uint64_t reserved32 : 1;
    uint64_t hang_hist3 : 1;
    uint64_t hang_hist2 : 1;
    uint64_t hang_hist1 : 1;
    uint64_t hang_hist0 : 1;
    uint64_t reserved27 : 1;
    uint64_t hang_fsm : 3;
    uint64_t other_thread_active : 1;
    uint64_t reserved22 : 1;
    uint64_t reserved21 : 1;
    uint64_t reserved20 : 1;
    uint64_t quiesce_status : 20;
#endif // _BIG_ENDIAN
    } fields;
} pc_ras_statusn_t;



typedef union pc_pow_statusn {

    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 thread_state : 4;
    uint64_t thread_pow_state : 2;
    uint64_t smt_mode : 3;
    uint64_t hmi_intr : 1;
    uint64_t maybe_ext_intr : 1;
    uint64_t decr_intr : 1;
    uint64_t maybe_debug_intr : 1;
    uint64_t hdec_intr : 1;
    uint64_t maybe_pmu_intr : 1;
    uint64_t sp_attn_intr : 1;
    uint64_t sreset_type : 3;
    uint64_t reserved19 : 1;
    uint64_t sreset_pending : 1;
    uint64_t debug_fetch_stop : 1;
    uint64_t async_pending : 1;
    uint64_t core_pow_state : 3;
    uint64_t reserved26 : 3;
    uint64_t _reserved0 : 35;
#else
    uint64_t _reserved0 : 35;
    uint64_t reserved26 : 3;
    uint64_t core_pow_state : 3;
    uint64_t async_pending : 1;
    uint64_t debug_fetch_stop : 1;
    uint64_t sreset_pending : 1;
    uint64_t reserved19 : 1;
    uint64_t sreset_type : 3;
    uint64_t sp_attn_intr : 1;
    uint64_t maybe_pmu_intr : 1;
    uint64_t hdec_intr : 1;
    uint64_t maybe_debug_intr : 1;
    uint64_t decr_intr : 1;
    uint64_t maybe_ext_intr : 1;
    uint64_t hmi_intr : 1;
    uint64_t smt_mode : 3;
    uint64_t thread_pow_state : 2;
    uint64_t thread_state : 4;
#endif // _BIG_ENDIAN
    } fields;
} pc_pow_statusn_t;


#endif // __ASSEMBLER__
#endif // __PC_FIRMWARE_REGISTERS_H__

OpenPOWER on IntegriCloud