summaryrefslogtreecommitdiffstats
path: root/src/ssx/pgp/registers/tpc_firmware_registers.h
blob: 62f1c421c8cbc611d47e40b7dc4122f679f8f649 (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
#ifndef __TPC_FIRMWARE_REGISTERS_H__
#define __TPC_FIRMWARE_REGISTERS_H__

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

/// \file tpc_firmware_registers.h
/// \brief C register structs for the TPC 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 tpc_perv_gp3 {

    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 tp_chiplet_chiplet_en_dc : 1;
    uint64_t put_in_later0 : 25;
    uint64_t tp_chiplet_fence_pcb_dc : 1;
    uint64_t put_in_later1 : 37;
#else
    uint64_t put_in_later1 : 37;
    uint64_t tp_chiplet_fence_pcb_dc : 1;
    uint64_t put_in_later0 : 25;
    uint64_t tp_chiplet_chiplet_en_dc : 1;
#endif // _BIG_ENDIAN
    } fields;
} tpc_perv_gp3_t;



typedef union tpc_gp0 {

    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 put_in_later0 : 40;
    uint64_t tc_node_id_dc : 3;
    uint64_t tc_chip_id_dc : 3;
    uint64_t put_in_later1 : 18;
#else
    uint64_t put_in_later1 : 18;
    uint64_t tc_chip_id_dc : 3;
    uint64_t tc_node_id_dc : 3;
    uint64_t put_in_later0 : 40;
#endif // _BIG_ENDIAN
    } fields;
} tpc_gp0_t;



typedef union tpc_gp0_and {

    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 put_in_later0 : 40;
    uint64_t tc_node_id_dc : 3;
    uint64_t tc_chip_id_dc : 3;
    uint64_t put_in_later1 : 18;
#else
    uint64_t put_in_later1 : 18;
    uint64_t tc_chip_id_dc : 3;
    uint64_t tc_node_id_dc : 3;
    uint64_t put_in_later0 : 40;
#endif // _BIG_ENDIAN
    } fields;
} tpc_gp0_and_t;



typedef union tpc_gp0_or {

    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 put_in_later0 : 40;
    uint64_t tc_node_id_dc : 3;
    uint64_t tc_chip_id_dc : 3;
    uint64_t put_in_later1 : 18;
#else
    uint64_t put_in_later1 : 18;
    uint64_t tc_chip_id_dc : 3;
    uint64_t tc_node_id_dc : 3;
    uint64_t put_in_later0 : 40;
#endif // _BIG_ENDIAN
    } fields;
} tpc_gp0_or_t;



typedef union tpc_hpr2 {

    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 hang_pulse_reg : 6;
    uint64_t suppress_hang : 1;
    uint64_t _reserved0 : 57;
#else
    uint64_t _reserved0 : 57;
    uint64_t suppress_hang : 1;
    uint64_t hang_pulse_reg : 6;
#endif // _BIG_ENDIAN
    } fields;
} tpc_hpr2_t;



typedef union tpc_device_id {

    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 cfam_id : 32;
    uint64_t fuse_nx_allow_crypto : 1;
    uint64_t fuse_vmx_crypto_dis : 1;
    uint64_t fuse_fp_throttle_en : 1;
    uint64_t reserved32 : 1;
    uint64_t socket_id : 3;
    uint64_t chippos_id : 1;
    uint64_t _reserved0 : 24;
#else
    uint64_t _reserved0 : 24;
    uint64_t chippos_id : 1;
    uint64_t socket_id : 3;
    uint64_t reserved32 : 1;
    uint64_t fuse_fp_throttle_en : 1;
    uint64_t fuse_vmx_crypto_dis : 1;
    uint64_t fuse_nx_allow_crypto : 1;
    uint64_t cfam_id : 32;
#endif // _BIG_ENDIAN
    } fields;
} tpc_device_id_t;


#endif // __ASSEMBLER__
#endif // __TPC_FIRMWARE_REGISTERS_H__

OpenPOWER on IntegriCloud