summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/xip/p9_xip_image.h
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@de.ibm.com>2017-05-11 08:10:35 +0200
committerSachin Gupta <sgupta2m@in.ibm.com>2017-05-25 00:28:47 -0400
commit9ad3454eb398c34465725c6799a210262d80c376 (patch)
tree4fc0b1e8a263fa200eede7621f1e37458f40e73f /src/import/chips/p9/xip/p9_xip_image.h
parent157dc75ec016e311b528d616f408652db024c775 (diff)
downloadtalos-sbe-9ad3454eb398c34465725c6799a210262d80c376.tar.gz
talos-sbe-9ad3454eb398c34465725c6799a210262d80c376.zip
H-code ddLevel support: Bridging front-end to back-end.
Further add a small update to xip_image.C to clear the ddSupport field in XipSection upon deleting a section. Change-Id: I5a0aa28ac209d8d31a1e30a75389910da366c5f6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40046 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40476 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/xip/p9_xip_image.h')
-rw-r--r--src/import/chips/p9/xip/p9_xip_image.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/import/chips/p9/xip/p9_xip_image.h b/src/import/chips/p9/xip/p9_xip_image.h
index 484ce5a8..924acfa8 100644
--- a/src/import/chips/p9/xip/p9_xip_image.h
+++ b/src/import/chips/p9/xip/p9_xip_image.h
@@ -699,7 +699,7 @@ p9_xip_image_size(void* i_image, uint32_t* o_size);
int
p9_xip_get_section(const void* i_image,
const int i_sectionId,
-#ifdef __PPE__
+#if defined(__PPE__) || defined(WIN32)
P9XipSection* o_hostSection);
#else
P9XipSection* o_hostSection,
@@ -1380,7 +1380,7 @@ p9_xip_get_toc(void* i_image,
/// \retval 0 Success
///
/// \retval non-0 See \ref p9_xip_image_errors
-#ifndef __PPE__
+#if !defined(__PPE__) && !defined(WIN32)
int
p9_xip_dd_section_support(const void* i_image,
const int i_sectionId,
@@ -1504,6 +1504,9 @@ p9_xip_decode_toc_dump(void* i_image, void* i_dump,
/// Specified ddLevel was not found in section
#define P9_XIP_DDLEVEL_NOT_FOUND 21
+/// Code bug in the ddLevel handling codes
+#define P9_XIP_DDLEVEL_CODE_BUG 22
+
/// Applications can expand this macro to declare an array of string forms of
/// the error codes if desired.
#define P9_XIP_ERROR_STRINGS(var) \
@@ -1530,6 +1533,7 @@ p9_xip_decode_toc_dump(void* i_image, void* i_dump,
"P9_XIP_SBE_DD_SIZE_ERR", \
"P9_XIP_NO_DDLEVEL_SUPPORT", \
"P9_XIP_DDLEVEL_NOT_FOUND", \
+ "P9_XIP_DDLEVEL_CODE_BUG", \
}
/// Applications can use this macro to safely index the array of error
OpenPOWER on IntegriCloud