summaryrefslogtreecommitdiffstats
path: root/src/occ_405/cmdh/cmdh_mnfg_intf.h
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-03-09 16:08:57 -0600
committerMartha Broyles <mbroyles@us.ibm.com>2017-03-13 16:23:47 -0400
commitad7e5252c5ef3018832e581d7f363009c3ddab02 (patch)
tree36ebb5c0d3c3b9bc8420c49026787bd6f1667e0b /src/occ_405/cmdh/cmdh_mnfg_intf.h
parent35eb166d9825cef7e483ac46f954ebc2777c16b3 (diff)
downloadtalos-occ-ad7e5252c5ef3018832e581d7f363009c3ddab02.tar.gz
talos-occ-ad7e5252c5ef3018832e581d7f363009c3ddab02.zip
New mfg test command to set per quad pstate
Change-Id: I3f3b187608b0bfaf83cfa612358b40257db7d5b6 RTC: 170583 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37765 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/cmdh/cmdh_mnfg_intf.h')
-rwxr-xr-xsrc/occ_405/cmdh/cmdh_mnfg_intf.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/occ_405/cmdh/cmdh_mnfg_intf.h b/src/occ_405/cmdh/cmdh_mnfg_intf.h
index c3a47d5..e96ce0c 100755
--- a/src/occ_405/cmdh/cmdh_mnfg_intf.h
+++ b/src/occ_405/cmdh/cmdh_mnfg_intf.h
@@ -28,18 +28,15 @@
#include "cmdh_fsp.h"
#include "sensor.h"
+#include "p9_pstates_common.h"
typedef enum {
MNFG_RUN_STOP_SLEW = 0x02,
MNFG_LIST_SENSORS = 0x05,
MNFG_GET_SENSOR = 0x06,
MNFG_OVERSUB_EMULATION = 0x07,
- MNFG_RETRIEVE_EAR = 0x08,
MNFG_MEMORY_SLEW = 0x09,
- MNFG_SET_FMINMAX = 0x0A,
- MNFG_CPM_STRESS_CALI = 0x0D,
- MNFG_UV_CONTROL = 0x0E,
- MNFG_FCHECK_CONTROL = 0x0F,
+ MNFG_QUAD_PSTATE = 0x0A,
} MNFG_CMD;
#define MNFG_INTF_SLEW_START 0x00
@@ -172,8 +169,26 @@ typedef struct __attribute__ ((packed))
uint16_t checksum;
}cmdh_mfg_get_sensor_resp_t;
-void cmdh_mnfg_test_parse (const cmdh_fsp_cmd_t * i_cmd_ptr,
- cmdh_fsp_rsp_t * o_rsp_ptr);
+#define MFG_QUAD_PSTATE_VERSION 0
+
+// Used by OCC to get mnfg request quad pstate command
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_cmd_header;
+ uint8_t sub_cmd;
+ uint8_t version;
+ uint8_t quad_pstate_in[MAX_QUADS];
+}mnfg_quad_pstate_cmd_t;
+
+// Used by OCC firmware to respond to mnfg request quad pstate command
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_rsp_header;
+ uint8_t quad_pstate_out[MAX_QUADS];
+}mnfg_quad_pstate_rsp_t;
+
+errlHndl_t cmdh_mnfg_test_parse (const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
uint8_t cmdh_mnfg_emulate_oversub(const cmdh_fsp_cmd_t * i_cmd_ptr,
cmdh_fsp_rsp_t * o_rsp_ptr);
@@ -187,4 +202,7 @@ uint8_t cmdh_mnfg_get_sensor(const cmdh_fsp_cmd_t * i_cmd_ptr,
uint8_t cmdh_mnfg_run_stop_slew(const cmdh_fsp_cmd_t * i_cmd_ptr,
cmdh_fsp_rsp_t * o_rsp_ptr);
+uint8_t cmdh_mnfg_request_quad_pstate(const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
+
#endif
OpenPOWER on IntegriCloud