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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/utils/imageProcs/p9_ring_identification.H $ */
/* */
/* OpenPOWER sbe Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
#ifndef _P9_RING_IDENT_H_
#define _P9_RING_IDENT_H_
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <p9_ring_id.h>
// MVPD Ring ID list structure.
typedef struct
{
const char* ringName;
RingID ringId;
uint8_t instanceIdMin; // the min instanceId
uint8_t instanceIdMax; // the max instanceId
uint8_t vpdKeyword;
uint8_t vpdRingClass; // Indicates std, gptr, or ex instance.
} RingIdList;
typedef struct
{
const RingIdList* ringIdList;
uint32_t ringIdListSize;
} VPDRingList;
extern const VPDRingList ALL_VPD_RINGS[];
extern const uint32_t RING_ID_LIST_CHIP_SIZE, RING_ID_LIST_CORE_SIZE,
RING_ID_LIST_CME_SIZE, RING_ID_LIST_CC_SIZE;
// Enumerated VPD keyword values.
// Note! This is DIFFERENT from the MvpdKeyword list in fapiMvpdAccess.H which
// can't be used in this file since it's not, per se, a fapi file. So
// these values need to be translated in xip_customize when passing the
// mvpdKeyword to getMvpdRing();
enum VpdKeyword
{
VPD_KEYWORD_PDG = 0,
VPD_KEYWORD_PDR = 1,
NUM_OF_VPD_TYPES = 2,
NON_VPD_RING = 3,
NON_VPD_PLL_RING = 4,
};
enum VpdRingClass
{
VPD_RING_CLASS_NEST = 0, // Indicates NEST [common] rings, except GPTR #G rings.
VPD_RING_CLASS_GPTR = 1, // Indicates GPTR #G [common]rings
VPD_RING_CLASS_EQ = 2, // Indicates EQ [common] rings
VPD_RING_CLASS_EX = 3, // Indicates EX [common] rings
VPD_RING_CLASS_EC = 4, // Indicates EC [common] rings
VPD_RING_CLASS_EQ_INS = 5, // Indicates EQ instance rings
VPD_RING_CLASS_EX_INS = 6, // Indicates EX instance rings
VPD_RING_CLASS_EC_INS = 7, // Indicates EC instance rings
VPD_RING_CLASS_LAST = 8,
};
#define MVPD_END_OF_DATA_MAGIC (uint32_t)0x454E4400 // "END "
#endif
|