summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2017-04-28 14:52:29 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-05-10 15:19:52 -0400
commit17969937b73f10ffe25ba6b4ac22e5d64a2e1f4c (patch)
treeb0c34d7b6d87728323494d19f26257ad4938db8b /src/include
parent1f4dfe8eb4042b590d9e948591a6c285823fa548 (diff)
downloadblackbird-hostboot-17969937b73f10ffe25ba6b4ac22e5d64a2e1f4c.tar.gz
blackbird-hostboot-17969937b73f10ffe25ba6b4ac22e5d64a2e1f4c.zip
Full Path of SBE message passing Design updates
Several design changes have been made and need to be reflected in the HBRT code. Increase size of SBE Communication buffer Changes to definition of Command Class / Command Add a wrapper for existing HTMGT function Set Generic HTMGT Message to be processed via wrapper Add erase of process command function entry from map Also address minor review comments from prior reviews. Change-Id: Ibe450507233a39dc976042296ce5ea0314a4af78 RTC:173486 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39894 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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/sbeio/runtime/sbe_msg_passing.H24
-rw-r--r--src/include/usr/sbeio/sbeioreasoncodes.H3
2 files changed, 19 insertions, 8 deletions
diff --git a/src/include/usr/sbeio/runtime/sbe_msg_passing.H b/src/include/usr/sbeio/runtime/sbe_msg_passing.H
index 48d3331ce..035047a28 100644
--- a/src/include/usr/sbeio/runtime/sbe_msg_passing.H
+++ b/src/include/usr/sbeio/runtime/sbe_msg_passing.H
@@ -37,7 +37,7 @@ namespace SBE_MSG
/**
* @brief SBE Communication package size in number of pages
*/
- const uint8_t SBE_COMM_PKG_SIZE = 1;
+ const uint8_t SBE_COMM_PKG_SIZE = 2;
/**
* @brief SBE Communication buffer size
@@ -77,13 +77,11 @@ namespace SBE_MSG
// Pass-Through Command enums for Command Header command field
enum passThruCmds
{
- PASSTHRU_SET_OCC_STATE = 0x00E00001, // Set OCC State
- PASSTHRU_GET_OCC_SENSOR = 0x00E00002, // Get OCC Sensor Readings
- PASSTHRU_SET_HYPER_ENV = 0x00E00003, // Set Hypervisor Environment
- PASSTHRU_QRY_MD_FN = 0x00E00004, // Query Mode and Function
- PASSTHRU_RST_PM_COMPLEX = 0x00E00005, // Reset PM Complex
- PASSTHRU_CTL_AUTOSLEW = 0x00E00006, // Control Autoslew
- PASSTHRU_GET_PSTATE = 0x00E00007, // Get PState Table
+ // Command Class 0xE0 - HTMGT Messages
+ PASSTHRU_HTMGT_GENERIC = 0x00E00001, // HTMGT Generic Message
+ PASSTHRU_HTMGT_GET_PSTATE = 0x00E00002, // HTMGT Get PState Table
+ // Command Class 0xE1 - HBRT Messages
+ PASSTHRU_HBRT_GET_PSTATE = 0x00E10001, // HBRT Get PState Table
};
@@ -153,6 +151,16 @@ namespace SBE_MSG
*/
int setProcessCmdFunction(enum passThruCmds i_command,
processCmdFunction_t i_function);
+
+ /**
+ * @brief Erase process pass-through command function in Process Command Map
+ *
+ * @param[in] i_command Process pass-through command
+ *
+ * @return int Return code.
+ */
+ int eraseProcessCmdFunction(enum passThruCmds i_command);
} // namespace SBE_MSG
+
#endif
diff --git a/src/include/usr/sbeio/sbeioreasoncodes.H b/src/include/usr/sbeio/sbeioreasoncodes.H
index 9b845096f..d7eb94ac8 100644
--- a/src/include/usr/sbeio/sbeioreasoncodes.H
+++ b/src/include/usr/sbeio/sbeioreasoncodes.H
@@ -95,6 +95,9 @@ enum sbeioReasonCode
SBEIO_RT_DATA_TOO_LARGE = SBEIO_COMP_ID | 0x36,
SBEIO_RT_RSP_FIELD_ALTERED = SBEIO_COMP_ID | 0x37,
SBEIO_RT_NO_SBE_COMM_BUFFER = SBEIO_COMP_ID | 0x38,
+ SBEIO_RT_FUNCTION_NOT_FOUND = SBEIO_COMP_ID | 0x39,
+ SBEIO_RT_NO_INTERFACE_POINTER = SBEIO_COMP_ID | 0x3A,
+ SBEIO_RT_NO_INTERFACE_FUNCTION = SBEIO_COMP_ID | 0x3B,
// Remove once we collect the FFDC ourselves - @todo-RTC:144313
//termination_rc
OpenPOWER on IntegriCloud