From 91ada9424dd95a58c4a998f0d51b36cb0c31dbfe Mon Sep 17 00:00:00 2001 From: Jaymes Wilks Date: Thu, 23 Feb 2017 12:57:30 -0600 Subject: Initialize HDAT TPM Info Add code to initialize TPM Info on OpenPower systems to the correct length and to all zeros. Change-Id: Ica2cd689cdc32e93746f68fa613c8dfbca1740bc RTC:166834 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36967 Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Michael Baiocchi Reviewed-by: Stephen M. Cprek Reviewed-by: Daniel M. Crowell --- src/include/usr/hdat/hdat.H | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/include/usr/hdat') diff --git a/src/include/usr/hdat/hdat.H b/src/include/usr/hdat/hdat.H index 6e052d7db..5c95ce792 100755 --- a/src/include/usr/hdat/hdat.H +++ b/src/include/usr/hdat/hdat.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -129,25 +129,28 @@ struct hdatFruId_t /*----------------------------------------------------------------------------*/ /* Constants */ /*----------------------------------------------------------------------------*/ -const int32_t HDAT_SUCCESS = 0; -const int32_t HDAT_FAILURE = -1; +extern const int32_t HDAT_SUCCESS; +extern const int32_t HDAT_FAILURE; /** @brief No children for a data structure*/ -const uint32_t HDAT_NO_CHILD = 0; +extern const uint32_t HDAT_NO_CHILD; /** @brief Structure id for an HDIF structure*/ -const uint16_t HDAT_HDIF_STRUCT_ID = 0xD1F0; +extern const uint16_t HDAT_HDIF_STRUCT_ID; /** @brief FFDC Version to classify data in error log */ -const uint8_t HDAT_VERSION1 = 1; +extern const uint8_t HDAT_VERSION1; /** @brief FFDC Sub Version to classify data in error log */ -const uint8_t HDAT_PCIA_FFDC_SUBSEC = 1; -const uint8_t HDAT_NACA_FFDC_SUBSEC1 = 2; -const uint8_t HDAT_NACA_FFDC_SUBSEC2 = 3; +extern const uint8_t HDAT_PCIA_FFDC_SUBSEC; +extern const uint8_t HDAT_NACA_FFDC_SUBSEC1; +extern const uint8_t HDAT_NACA_FFDC_SUBSEC2; -const uint32_t HDAT_REAL_ADDRESS_MASK = 0x80000000; -const uint64_t HDAT_REAL_ADDRESS_MASK64 = 0x8000000000000000ull; +extern const uint32_t HDAT_REAL_ADDRESS_MASK; +extern const uint64_t HDAT_REAL_ADDRESS_MASK64; + +/** @brief Align value for HDAT instances */ +extern const uint8_t HDAT_HDIF_ALIGN; // (this goes up to 8 threads on P8) #define HDAT_MAX_THREADS_SUPPORTED 8 -- cgit v1.2.3