summaryrefslogtreecommitdiffstats
path: root/src/occ/cmdh/cmdh_tunable_parms.h
diff options
context:
space:
mode:
authorStephan Broyles <sbroyles@us.ibm.com>2014-11-05 19:09:37 -0600
committerStephan Broyles <sbroyles@us.ibm.com>2014-11-05 19:22:32 -0600
commit9976c207cdb20871880bd2f4cf123cf4cb6a8b0f (patch)
tree1cf9ed8f23085e6fe3e0e6046fc30dcb7e02ccf2 /src/occ/cmdh/cmdh_tunable_parms.h
parent2f8ce357b89d361b5091d88aea91416011b73ccb (diff)
downloadtalos-occ-9976c207cdb20871880bd2f4cf123cf4cb6a8b0f.tar.gz
talos-occ-9976c207cdb20871880bd2f4cf123cf4cb6a8b0f.zip
Added remaining occ files.
Change-Id: I91a748d3dcf3161a6a3eedcb376fcaf1e4dfe655
Diffstat (limited to 'src/occ/cmdh/cmdh_tunable_parms.h')
-rwxr-xr-xsrc/occ/cmdh/cmdh_tunable_parms.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/src/occ/cmdh/cmdh_tunable_parms.h b/src/occ/cmdh/cmdh_tunable_parms.h
new file mode 100755
index 0000000..8dfb9d5
--- /dev/null
+++ b/src/occ/cmdh/cmdh_tunable_parms.h
@@ -0,0 +1,107 @@
+/**
+ * @file cmdh_tunable_parms.h
+ * @brief Header file for Tunable Parms interface.
+ *
+ *
+*/
+/**
+ * @page ChangeLogs Change Logs
+ * @section _cmdh_tunable_parms_h cmdh_tunable_parms.h
+ * @verbatim
+ *
+ * Flag Def/Fea Userid Date Description
+ * -------- ---------- -------- --------- ----------------------------------
+ * @rt004 905638 tapiar 11/13/2013 Created
+ *
+ * @endverbatim
+ */
+#ifndef CMDH_TUNABLE_PARMS_H
+#define CMDH_TUNABLE_PARMS_H
+
+//*************************************************************************
+// Includes
+//*************************************************************************
+#include "cmdh_fsp_cmds.h"
+
+//*************************************************************************
+// Defines/Enums
+//*************************************************************************
+
+typedef enum {
+ TUNABLE_PARMS_QUERY = 0x00,
+ TUNABLE_PARMS_WRITE = 0x01,
+ TUNABLE_PARMS_RESTORE = 0x02,
+} TUNABLE_PARMS_CMD;
+
+
+/**
+ * @struct tunable_parms_query_cmd_t
+ * @brief Used by OCC to get tunable parms query
+ * command
+ */
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_cmd_header;
+ uint8_t sub_cmd;
+ uint8_t version;
+}tunable_parms_query_cmd_t;
+
+#define TUNABLE_PARMS_MAX_PARMS 29
+
+#define TUNABLE_PARMS_QUERY_VERSION 0
+#define TUNABLE_PARMS_WRITE_VERSION 0
+
+typedef struct __attribute__ ((packed))
+{
+ uint8_t id;
+ uint8_t value[2];
+}tunable_parm_write_entry_t;
+
+/**
+ * @struct tunable_parms_write_cmd_t
+ * @brief Used by OCC to get tunable parms write
+ * command
+ */
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_cmd_header;
+ uint8_t sub_cmd;
+ uint8_t version;
+ uint8_t numParms;
+ tunable_parm_write_entry_t data[TUNABLE_PARMS_MAX_PARMS];
+}tunable_parms_write_cmd_t;
+
+
+/**
+ * @struct tunable_parms_query_rsp_t
+ * @brief Used by OCC to get tunable parms query
+ * response
+ */
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_rsp_header;
+ uint8_t version;
+ uint8_t numParms;
+ cmdh_tunable_param_table_t data[TUNABLE_PARMS_MAX_PARMS];
+}tunable_parms_query_rsp_t;
+
+
+
+/*******************************************************************/
+/* Function Definitions */
+/*******************************************************************/
+
+errlHndl_t cmdh_tunable_parms( const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
+
+uint8_t cmdh_tunable_parms_query( const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
+
+uint8_t cmdh_tunable_parms_write( const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
+
+uint8_t cmdh_tunable_parms_restore( const cmdh_fsp_cmd_t * i_cmd_ptr,
+ cmdh_fsp_rsp_t * o_rsp_ptr);
+
+
+#endif
OpenPOWER on IntegriCloud