From 278e29100f424cc4d148bbfdcc509b19b3a2ec3e Mon Sep 17 00:00:00 2001 From: Martin Peschke Date: Thu, 15 Sep 2016 14:40:39 +0200 Subject: P9-XIP: p9_xip_get_item() can now deal with array attributes This is a new API only used in one place so far. So enhancing it should be ok. The funtionality is needed for a p9_xip_tool change. Change-Id: Ibecb2ee45dc5fbf1394fcac0bfef92aa10468927 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29752 Reviewed-by: Shakeeb A. Pasha B K Reviewed-by: Sachin Gupta Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Richard J. Knight Reviewed-by: Martin Peschke Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29755 Reviewed-by: Hostboot Team Tested-by: FSP CI Jenkins --- src/import/chips/p9/xip/p9_xip_image.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/import/chips/p9/xip/p9_xip_image.h') diff --git a/src/import/chips/p9/xip/p9_xip_image.h b/src/import/chips/p9/xip/p9_xip_image.h index 06240326..58410d4d 100644 --- a/src/import/chips/p9/xip/p9_xip_image.h +++ b/src/import/chips/p9/xip/p9_xip_image.h @@ -739,11 +739,13 @@ p9_xip_get_scalar(void* i_image, const char* i_id, uint64_t* o_data); /// data. Assuming the item is located this variable is assigned by the call. /// In the event of an error the final state of \a o_data is not specified. /// +/// \param[in] i_index The index of the vector element to return. +/// /// \retval 0 Success /// /// \retval non-0 See \ref p9_xip_image_errors int -p9_xip_get_item(const P9XipItem *i_item, uint64_t* o_data); +p9_xip_get_item(const P9XipItem *i_item, uint64_t* o_data, uint32_t i_index); /// Get an integral element from a vector held in a P9-XIP image -- cgit v1.2.1