aboutsummaryrefslogtreecommitdiff
path: root/hdata/spira.h
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2015-02-04 12:29:45 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-11 18:49:39 +1100
commit2e2acc7d9444742f0069811497efa8a194cb72c2 (patch)
treed24eaa6dec508eb5bae0cc8aaf3ab13e47ccfafb /hdata/spira.h
parentde8bd4d09310f8307ffd1cee7d0f10b11c44fb60 (diff)
downloadskiboot-2e2acc7d9444742f0069811497efa8a194cb72c2.zip
skiboot-2e2acc7d9444742f0069811497efa8a194cb72c2.tar.gz
skiboot-2e2acc7d9444742f0069811497efa8a194cb72c2.tar.bz2
vpd: Use slca parent-child relationship to create vpd tree
SLCA entries available through hdat have parent-child relationship of various FRUs of the system, the patch makes use of this data to create VPD nodes in hierarchial fashion. This is further useful for the user space tools like 'lshw'/'lsvpd' to plug-in the support easily on POWER. Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.h')
-rw-r--r--hdata/spira.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hdata/spira.h b/hdata/spira.h
index fa73452..a1ed79d 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -599,6 +599,8 @@ struct cpu_ctl_init_data {
*/
#define SLCA_IDATA_ARRAY 0
+#define SLCA_ROOT_INDEX 0
+
/* Note: An "index" (or idx) is always an index into the SLCA array
* and "id" is a reference to some other object.
*/