summaryrefslogtreecommitdiffstats
path: root/src/ssx/pgp/registers/sensors_firmware_registers.h
blob: 9cb252ed6771bc5bf324b69f5d19eb73b2bfef0f (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
#ifndef __SENSORS_FIRMWARE_REGISTERS_H__
#define __SENSORS_FIRMWARE_REGISTERS_H__

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

/// \file sensors_firmware_registers.h
/// \brief C register structs for the SENSORS 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 sensors_v0 {

    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 dts0 : 12;
    uint64_t thermal_trip0 : 2;
    uint64_t spare0 : 1;
    uint64_t valid0 : 1;
    uint64_t dts1 : 12;
    uint64_t thermal_trip1 : 2;
    uint64_t spare1 : 1;
    uint64_t valid1 : 1;
    uint64_t dts2 : 12;
    uint64_t thermal_trip2 : 2;
    uint64_t spare2 : 1;
    uint64_t valid2 : 1;
    uint64_t dts3 : 12;
    uint64_t thermal_trip3 : 2;
    uint64_t spare3 : 1;
    uint64_t valid3 : 1;
#else
    uint64_t valid3 : 1;
    uint64_t spare3 : 1;
    uint64_t thermal_trip3 : 2;
    uint64_t dts3 : 12;
    uint64_t valid2 : 1;
    uint64_t spare2 : 1;
    uint64_t thermal_trip2 : 2;
    uint64_t dts2 : 12;
    uint64_t valid1 : 1;
    uint64_t spare1 : 1;
    uint64_t thermal_trip1 : 2;
    uint64_t dts1 : 12;
    uint64_t valid0 : 1;
    uint64_t spare0 : 1;
    uint64_t thermal_trip0 : 2;
    uint64_t dts0 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v0_t;



typedef union sensors_v1 {

    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 dts4 : 12;
    uint64_t thermal_trip4 : 2;
    uint64_t spare4 : 1;
    uint64_t valid4 : 1;
    uint64_t dts5 : 12;
    uint64_t thermal_trip5 : 2;
    uint64_t spare5 : 1;
    uint64_t valid5 : 1;
    uint64_t dts6 : 12;
    uint64_t thermal_trip6 : 2;
    uint64_t spare6 : 1;
    uint64_t valid6 : 1;
    uint64_t dts7 : 12;
    uint64_t thermal_trip7 : 2;
    uint64_t spare7 : 1;
    uint64_t valid7 : 1;
#else
    uint64_t valid7 : 1;
    uint64_t spare7 : 1;
    uint64_t thermal_trip7 : 2;
    uint64_t dts7 : 12;
    uint64_t valid6 : 1;
    uint64_t spare6 : 1;
    uint64_t thermal_trip6 : 2;
    uint64_t dts6 : 12;
    uint64_t valid5 : 1;
    uint64_t spare5 : 1;
    uint64_t thermal_trip5 : 2;
    uint64_t dts5 : 12;
    uint64_t valid4 : 1;
    uint64_t spare4 : 1;
    uint64_t thermal_trip4 : 2;
    uint64_t dts4 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v1_t;



typedef union sensors_v2 {

    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 dts8 : 12;
    uint64_t thermal_trip8 : 2;
    uint64_t spare8 : 1;
    uint64_t valid8 : 1;
    uint64_t dts9 : 12;
    uint64_t thermal_trip9 : 2;
    uint64_t spare9 : 1;
    uint64_t valid9 : 1;
    uint64_t dts10 : 12;
    uint64_t thermal_trip10 : 2;
    uint64_t spare10 : 1;
    uint64_t valid10 : 1;
    uint64_t dts12 : 12;
    uint64_t thermal_trip12 : 2;
    uint64_t spare12 : 1;
    uint64_t valid12 : 1;
#else
    uint64_t valid12 : 1;
    uint64_t spare12 : 1;
    uint64_t thermal_trip12 : 2;
    uint64_t dts12 : 12;
    uint64_t valid10 : 1;
    uint64_t spare10 : 1;
    uint64_t thermal_trip10 : 2;
    uint64_t dts10 : 12;
    uint64_t valid9 : 1;
    uint64_t spare9 : 1;
    uint64_t thermal_trip9 : 2;
    uint64_t dts9 : 12;
    uint64_t valid8 : 1;
    uint64_t spare8 : 1;
    uint64_t thermal_trip8 : 2;
    uint64_t dts8 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v2_t;



typedef union sensors_v3 {

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



typedef union sensors_v5 {

    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 raw_cpm0 : 12;
    uint64_t spare0 : 4;
    uint64_t raw_cpm1 : 12;
    uint64_t spare1 : 4;
    uint64_t raw_cpm2 : 12;
    uint64_t spare2 : 4;
    uint64_t raw_cpm3 : 12;
    uint64_t spare3 : 4;
#else
    uint64_t spare3 : 4;
    uint64_t raw_cpm3 : 12;
    uint64_t spare2 : 4;
    uint64_t raw_cpm2 : 12;
    uint64_t spare1 : 4;
    uint64_t raw_cpm1 : 12;
    uint64_t spare0 : 4;
    uint64_t raw_cpm0 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v5_t;



typedef union sensors_v6 {

    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 raw_cpm4 : 12;
    uint64_t spare4 : 4;
    uint64_t raw_cpm5 : 12;
    uint64_t spare5 : 4;
    uint64_t raw_cpm6 : 12;
    uint64_t spare6 : 4;
    uint64_t raw_cpm7 : 12;
    uint64_t spare7 : 4;
#else
    uint64_t spare7 : 4;
    uint64_t raw_cpm7 : 12;
    uint64_t spare6 : 4;
    uint64_t raw_cpm6 : 12;
    uint64_t spare5 : 4;
    uint64_t raw_cpm5 : 12;
    uint64_t spare4 : 4;
    uint64_t raw_cpm4 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v6_t;



typedef union sensors_v7 {

    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 raw_cpm8 : 12;
    uint64_t spare8 : 4;
    uint64_t raw_cpm9 : 12;
    uint64_t spare9 : 4;
    uint64_t raw_cpm10 : 12;
    uint64_t spare10 : 4;
    uint64_t raw_cpm11 : 12;
    uint64_t spare11 : 4;
#else
    uint64_t spare11 : 4;
    uint64_t raw_cpm11 : 12;
    uint64_t spare10 : 4;
    uint64_t raw_cpm10 : 12;
    uint64_t spare9 : 4;
    uint64_t raw_cpm9 : 12;
    uint64_t spare8 : 4;
    uint64_t raw_cpm8 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v7_t;



typedef union sensors_v8 {

    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 dts0 : 12;
    uint64_t thermal_trip0 : 2;
    uint64_t spare0 : 1;
    uint64_t valid0 : 1;
    uint64_t dts1 : 12;
    uint64_t thermal_trip1 : 2;
    uint64_t spare1 : 1;
    uint64_t valid1 : 1;
    uint64_t dts2 : 12;
    uint64_t thermal_trip2 : 2;
    uint64_t spare2 : 1;
    uint64_t valid2 : 1;
    uint64_t encoded_cpm0 : 4;
    uint64_t encoded_cpm1 : 4;
    uint64_t encoded_cpm2 : 4;
    uint64_t encoded_cpm3 : 4;
#else
    uint64_t encoded_cpm3 : 4;
    uint64_t encoded_cpm2 : 4;
    uint64_t encoded_cpm1 : 4;
    uint64_t encoded_cpm0 : 4;
    uint64_t valid2 : 1;
    uint64_t spare2 : 1;
    uint64_t thermal_trip2 : 2;
    uint64_t dts2 : 12;
    uint64_t valid1 : 1;
    uint64_t spare1 : 1;
    uint64_t thermal_trip1 : 2;
    uint64_t dts1 : 12;
    uint64_t valid0 : 1;
    uint64_t spare0 : 1;
    uint64_t thermal_trip0 : 2;
    uint64_t dts0 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v8_t;



typedef union sensors_v9 {

    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 dts4 : 12;
    uint64_t thermal_trip4 : 2;
    uint64_t spare4 : 1;
    uint64_t valid4 : 1;
    uint64_t dts5 : 12;
    uint64_t thermal_trip5 : 2;
    uint64_t spare5 : 1;
    uint64_t valid5 : 1;
    uint64_t dts6 : 12;
    uint64_t thermal_trip6 : 2;
    uint64_t spare6 : 1;
    uint64_t valid6 : 1;
    uint64_t encoded_cpm4 : 4;
    uint64_t encoded_cpm5 : 4;
    uint64_t encoded_cpm6 : 4;
    uint64_t encoded_cpm7 : 4;
#else
    uint64_t encoded_cpm7 : 4;
    uint64_t encoded_cpm6 : 4;
    uint64_t encoded_cpm5 : 4;
    uint64_t encoded_cpm4 : 4;
    uint64_t valid6 : 1;
    uint64_t spare6 : 1;
    uint64_t thermal_trip6 : 2;
    uint64_t dts6 : 12;
    uint64_t valid5 : 1;
    uint64_t spare5 : 1;
    uint64_t thermal_trip5 : 2;
    uint64_t dts5 : 12;
    uint64_t valid4 : 1;
    uint64_t spare4 : 1;
    uint64_t thermal_trip4 : 2;
    uint64_t dts4 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v9_t;



typedef union sensors_v10 {

    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 dts8 : 12;
    uint64_t thermal_trip8 : 2;
    uint64_t spare8 : 1;
    uint64_t valid8 : 1;
    uint64_t dts9 : 12;
    uint64_t thermal_trip9 : 2;
    uint64_t spare9 : 1;
    uint64_t valid9 : 1;
    uint64_t dts10 : 12;
    uint64_t thermal_trip10 : 2;
    uint64_t spare10 : 1;
    uint64_t valid10 : 1;
    uint64_t encoded_cpm8 : 4;
    uint64_t encoded_cpm9 : 4;
    uint64_t encoded_cpm10 : 4;
    uint64_t encoded_cpm11 : 4;
#else
    uint64_t encoded_cpm11 : 4;
    uint64_t encoded_cpm10 : 4;
    uint64_t encoded_cpm9 : 4;
    uint64_t encoded_cpm8 : 4;
    uint64_t valid10 : 1;
    uint64_t spare10 : 1;
    uint64_t thermal_trip10 : 2;
    uint64_t dts10 : 12;
    uint64_t valid9 : 1;
    uint64_t spare9 : 1;
    uint64_t thermal_trip9 : 2;
    uint64_t dts9 : 12;
    uint64_t valid8 : 1;
    uint64_t spare8 : 1;
    uint64_t thermal_trip8 : 2;
    uint64_t dts8 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v10_t;



typedef union sensors_v11 {

    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 dvs0 : 12;
    uint64_t spare00 : 1;
    uint64_t trip0 : 1;
    uint64_t spare01 : 1;
    uint64_t valid0 : 1;
    uint64_t dvs1 : 12;
    uint64_t spare10 : 1;
    uint64_t trip1 : 1;
    uint64_t spare11 : 1;
    uint64_t valid1 : 1;
    uint64_t dvs2 : 12;
    uint64_t spare20 : 1;
    uint64_t trip2 : 1;
    uint64_t spare21 : 1;
    uint64_t valid2 : 1;
    uint64_t dvs3 : 12;
    uint64_t spare30 : 1;
    uint64_t trip3 : 1;
    uint64_t spare31 : 1;
    uint64_t valid3 : 1;
#else
    uint64_t valid3 : 1;
    uint64_t spare31 : 1;
    uint64_t trip3 : 1;
    uint64_t spare30 : 1;
    uint64_t dvs3 : 12;
    uint64_t valid2 : 1;
    uint64_t spare21 : 1;
    uint64_t trip2 : 1;
    uint64_t spare20 : 1;
    uint64_t dvs2 : 12;
    uint64_t valid1 : 1;
    uint64_t spare11 : 1;
    uint64_t trip1 : 1;
    uint64_t spare10 : 1;
    uint64_t dvs1 : 12;
    uint64_t valid0 : 1;
    uint64_t spare01 : 1;
    uint64_t trip0 : 1;
    uint64_t spare00 : 1;
    uint64_t dvs0 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v11_t;



typedef union sensors_v12 {

    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 dvs4 : 12;
    uint64_t spare40 : 1;
    uint64_t trip4 : 1;
    uint64_t spare41 : 1;
    uint64_t valid4 : 1;
    uint64_t dvs5 : 12;
    uint64_t spare50 : 1;
    uint64_t trip5 : 1;
    uint64_t spare51 : 1;
    uint64_t valid5 : 1;
    uint64_t dvs6 : 12;
    uint64_t spare60 : 1;
    uint64_t trip6 : 1;
    uint64_t spare61 : 1;
    uint64_t valid6 : 1;
    uint64_t dvs7 : 12;
    uint64_t spare70 : 1;
    uint64_t trip7 : 1;
    uint64_t spare71 : 1;
    uint64_t valid7 : 1;
#else
    uint64_t valid7 : 1;
    uint64_t spare71 : 1;
    uint64_t trip7 : 1;
    uint64_t spare70 : 1;
    uint64_t dvs7 : 12;
    uint64_t valid6 : 1;
    uint64_t spare61 : 1;
    uint64_t trip6 : 1;
    uint64_t spare60 : 1;
    uint64_t dvs6 : 12;
    uint64_t valid5 : 1;
    uint64_t spare51 : 1;
    uint64_t trip5 : 1;
    uint64_t spare50 : 1;
    uint64_t dvs5 : 12;
    uint64_t valid4 : 1;
    uint64_t spare41 : 1;
    uint64_t trip4 : 1;
    uint64_t spare40 : 1;
    uint64_t dvs4 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v12_t;



typedef union sensors_v13 {

    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 dvs8 : 12;
    uint64_t spare80 : 1;
    uint64_t trip8 : 1;
    uint64_t spare81 : 1;
    uint64_t valid8 : 1;
    uint64_t dvs9 : 12;
    uint64_t spare90 : 1;
    uint64_t trip9 : 1;
    uint64_t spare91 : 1;
    uint64_t valid9 : 1;
    uint64_t dvs10 : 12;
    uint64_t spare100 : 1;
    uint64_t trip10 : 1;
    uint64_t spare101 : 1;
    uint64_t valid10 : 1;
    uint64_t dvs11 : 12;
    uint64_t spare110 : 1;
    uint64_t trip11 : 1;
    uint64_t spare111 : 1;
    uint64_t valid11 : 1;
#else
    uint64_t valid11 : 1;
    uint64_t spare111 : 1;
    uint64_t trip11 : 1;
    uint64_t spare110 : 1;
    uint64_t dvs11 : 12;
    uint64_t valid10 : 1;
    uint64_t spare101 : 1;
    uint64_t trip10 : 1;
    uint64_t spare100 : 1;
    uint64_t dvs10 : 12;
    uint64_t valid9 : 1;
    uint64_t spare91 : 1;
    uint64_t trip9 : 1;
    uint64_t spare90 : 1;
    uint64_t dvs9 : 12;
    uint64_t valid8 : 1;
    uint64_t spare81 : 1;
    uint64_t trip8 : 1;
    uint64_t spare80 : 1;
    uint64_t dvs8 : 12;
#endif // _BIG_ENDIAN
    } fields;
} sensors_v13_t;


#endif // __ASSEMBLER__
#endif // __SENSORS_FIRMWARE_REGISTERS_H__

OpenPOWER on IntegriCloud