1
/* Copyright 2013-2014 IBM Corp.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
7
* http://www.apache.org/licenses/LICENSE-2.0
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
19
#define MAX_PATH_ELEMENTS 10
20
#define PATH_TYPE_SHIFT 4
21
#define PATH_ELEMENTS_MASK (0x0F)
26
TYPE_SYS = 0x00000001,
27
TYPE_NODE = 0x00000002,
28
TYPE_DIMM = 0x00000003,
29
TYPE_MEMBUF = 0x00000004,
30
TYPE_PROC = 0x00000005,
32
TYPE_CORE = 0x00000007,
36
TYPE_MCS = 0x0000000B,
37
TYPE_MBA = 0x0000000D,
38
TYPE_XBUS = 0x0000000E,
39
TYPE_ABUS = 0x0000000F,
40
TYPE_PCI = 0x00000010,
41
TYPE_DPSS = 0x00000011,
42
TYPE_APSS = 0x00000012,
43
TYPE_OCC = 0x00000013,
44
TYPE_PSI = 0x00000014,
45
TYPE_FSP = 0x00000015,
46
TYPE_PNOR = 0x00000016,
47
TYPE_OSC = 0x00000017,
48
TYPE_TODCLK = 0x00000018,
49
TYPE_CONTROL_NODE = 0x00000019,
50
TYPE_OSCREFCLK = 0x0000001A,
51
TYPE_OSCPCICLK = 0x0000001B,
52
TYPE_REFCLKENDPT = 0x0000001C,
53
TYPE_PCICLKENDPT = 0x0000001D,
55
TYPE_PORE = 0x0000001F,
56
TYPE_PCIESWITCH = 0x00000020,
57
TYPE_CAPP = 0x00000021,
58
TYPE_FSI = 0x00000022,
59
TYPE_TEST_FAIL = 0x00000023,
60
TYPE_LAST_IN_RANGE = 0x00000024,
74
} __attribute__((packed));
77
/* First 4 bits are a path_type enum */
78
/* Second 4 bits are the amount of path_elements */
80
struct path_element path_elements[MAX_PATH_ELEMENTS];
82
} __attribute__((packed));
85
/* defined by hostboot */
88
struct entity_path target_id;
92
uint8_t resource_recovery;
94
} __attribute__((packed));