diff options
Diffstat (limited to 'src/usr/hdat/hdattpmdata.H')
-rw-r--r-- | src/usr/hdat/hdattpmdata.H | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/src/usr/hdat/hdattpmdata.H b/src/usr/hdat/hdattpmdata.H index ce92b46a7..d17172366 100644 --- a/src/usr/hdat/hdattpmdata.H +++ b/src/usr/hdat/hdattpmdata.H @@ -38,12 +38,19 @@ #include <hdat/hdat_reasoncodes.H> #include "hdatutil.H" #include <hdat/hdat.H> +#include <sys/misc.h> + +#define TPM_SRTM_EVENT_LOG_MAX (64 * KILOBYTE) + +#define TPM_DRTM_EVENT_LOG_MAX (64 * KILOBYTE) + +#define NUM_I2C_PHYS_PRESENCE_DEVICES 2 namespace HDAT { /** - * @brief Structure definition for HDAT Tpm Node Related Data header + * @brief Structure definition for HDAT Tpm Node Data Header */ struct hdatTpmData_t { @@ -61,7 +68,7 @@ struct hdatSbTpmInfo_t { uint32_t hdatSbTpmArrayOffset; uint32_t hdatSbTpmArrayNumEntries; - uint32_t hdatsbTpmArraySize; + uint32_t hdatSbTpmArraySize; } __attribute__ ((packed)); @@ -85,6 +92,28 @@ struct hdatSbTpmInstInfo_t } __attribute__ ((packed)); +/** + * @brief Structure definition for HDAT physical interaction mechanism info + */ +struct hdatPhysInterMechInfo_t +{ + uint32_t hdatOffsetI2cDevInfoPtrs; + uint32_t hdatNumEntries; + uint32_t hdatSizeOfI2cDevInfoPtrs; +} __attribute__ ((packed)); + + +/** + * @brief Structure definition for HDAT Host I2c Device Information pointers + */ +struct hdatI2cDevInfoPtrs_t +{ + uint32_t hdatChipId; + uint32_t hdatDbobId; // Drawer/Book/Octant/Blade ID + uint32_t hdatHostI2cLinkId; +} __attribute__ ((packed)); + + /** Begin Class Description * * @brief The HdatTpmData class is used to construct the Node TPM Related Data @@ -186,6 +215,16 @@ class HdatTpmData }; // end of HdatTpmData class +/** + * @brief Calculate the maximum number of TPMs per node for this system. + * + * @pre None + * + * @post None + * + * @retval uint16_t Returns the maximum number of TPMs per node for this system + */ +uint16_t hdatCalcMaxTpmsPerNode(); } #endif // HDATTPMDATA_H |