summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2018-03-19 16:46:58 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-03-27 09:50:58 -0400
commit8a783ea89563b0e452caab5c5900add8cc99e358 (patch)
tree029f82798d081b6af6b3557e76f461440cedb375 /src/include
parent3d9454e644784df51aaa61ca6ab6c4f69a40b528 (diff)
downloadtalos-hostboot-8a783ea89563b0e452caab5c5900add8cc99e358.tar.gz
talos-hostboot-8a783ea89563b0e452caab5c5900add8cc99e358.zip
Move runtime scoms to common function
- Calls hypervisor scom interfaces - Move from xscom/runtime to scom/runtime RTC:190143 Change-Id: I41e0788f03fa27ae87c31a48dd041dbd66ca09c2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56042 CI-Ready: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/scom/runtime/rt_scomif.H49
-rw-r--r--src/include/usr/scom/scomif.H2
-rw-r--r--src/include/usr/scom/scomreasoncodes.H2
3 files changed, 52 insertions, 1 deletions
diff --git a/src/include/usr/scom/runtime/rt_scomif.H b/src/include/usr/scom/runtime/rt_scomif.H
new file mode 100644
index 000000000..4039f2827
--- /dev/null
+++ b/src/include/usr/scom/runtime/rt_scomif.H
@@ -0,0 +1,49 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/scom/runtime/rt_scomif.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016,2018 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __RT_SCOMIF_H
+#define __RT_SCOMIF_H
+
+#include <devicefw/driverif.H>
+
+namespace SCOM
+{
+
+/**
+ * @brief This function sends the scom op to the Hypervisor
+ *
+ * @param[in] i_opType Scom operation type
+ * @param[in] i_target Scom target
+ * @param[in] i_scomAddr Scom address
+ * @param[in|out] io_buffer Pointer to scom data
+ * @return errlHndl_t
+ */
+errlHndl_t sendScomToHyp(DeviceFW::OperationType i_opType,
+ TARGETING::Target * i_target,
+ uint64_t i_scomAddr,
+ void * io_buffer);
+
+}; // end namespace SCOM
+
+#endif // end __RT_SCOMIF_H
diff --git a/src/include/usr/scom/scomif.H b/src/include/usr/scom/scomif.H
index 5df08120d..da7227735 100644
--- a/src/include/usr/scom/scomif.H
+++ b/src/include/usr/scom/scomif.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* Contributors Listed Below - COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
diff --git a/src/include/usr/scom/scomreasoncodes.H b/src/include/usr/scom/scomreasoncodes.H
index 5f52f2a9e..b6fb9816b 100644
--- a/src/include/usr/scom/scomreasoncodes.H
+++ b/src/include/usr/scom/scomreasoncodes.H
@@ -40,6 +40,7 @@ namespace SCOM
SCOM_DO_FORM_1_INDIRECT_SCOM = 0x06,
SCOM_HANDLE_SPECIAL_WAKEUP = 0x07,
SCOM_TRANSLATE_CENTAUR = 0x08,
+ SCOM_RT_SEND_SCOM_TO_HYP = 0x09,
};
enum scomReasonCode
@@ -64,6 +65,7 @@ namespace SCOM
SCOM_RUNTIME_INTERFACE_ERR = SCOM_COMP_ID | 0x12,
SCOM_SPCWKUP_COUNT_ERR = SCOM_COMP_ID | 0x13,
SCOM_CEN_TRANS_INVALID_TYPE = SCOM_COMP_ID | 0x14,
+ SCOM_RUNTIME_HYP_ERR = SCOM_COMP_ID | 0x15,
};
enum UserDetailsTypes
OpenPOWER on IntegriCloud