From 275ea30364bf2d831f213f9a73b5f8fa8ef851af Mon Sep 17 00:00:00 2001 From: Chris Cain Date: Thu, 18 Jun 2015 12:46:05 -0500 Subject: HTMGT support for Pstate Table Biasing Change-Id: I96aff34fb9b588d8546575b77655a6cf167469fb RTC: 128436 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18789 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: A. Patrick Williams III --- src/include/runtime/interface.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/include/runtime/interface.h') diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index a7177a000..055f751a5 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -466,6 +466,32 @@ typedef struct runtimeInterfaces int (*apply_attr_override)(uint8_t* i_data, size_t i_size ); + /** + * @brief Send a pass-through command to HTMGT + * + * @details  This is a blocking call that will send a command + *           to HTMGT. + * + * @note     If o_rspLength is returned with a non-zero value, + *           the data at the o_rspData should be dumped to + *           stdout in a hex dump format. + * @note The maximum response data returned will be 4096 bytes + * + * @param[in] i_cmdLength number of bytes in pass-thru command data + * @param[in]     *i_cmdData   pointer to pass-thru command data + * @param[out] *o_rspLength pointer to number of bytes returned + * in o_rspData + * @param[out] *o_rspData   pointer to a 4096 byte buffer that will + * contain the response data from the command + * + * @returns  0 on success, or return code if the command failed + * @platform OpenPower + */ + int (*mfg_htmgt_pass_thru)(uint16_t i_cmdLength, + uint8_t * i_cmdData, + uint16_t * o_rspLength, + uint8_t * o_rspData); + // Reserve some space for future growth. void (*reserved[32])(void); -- cgit v1.2.1