summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hdat
diff options
context:
space:
mode:
authorJaymes Wilks <mjwilks@us.ibm.com>2017-02-23 12:57:30 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-02 17:34:10 -0400
commit91ada9424dd95a58c4a998f0d51b36cb0c31dbfe (patch)
tree2df6b692836626c89bceb67c6c540c1b42483500 /src/include/usr/hdat
parentd6aaf2fe4f15c5360bb67fde5fc96f437ba3d271 (diff)
downloadblackbird-hostboot-91ada9424dd95a58c4a998f0d51b36cb0c31dbfe.tar.gz
blackbird-hostboot-91ada9424dd95a58c4a998f0d51b36cb0c31dbfe.zip
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 <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/hdat')
-rwxr-xr-xsrc/include/usr/hdat/hdat.H25
1 files changed, 14 insertions, 11 deletions
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
OpenPOWER on IntegriCloud