summaryrefslogtreecommitdiffstats
path: root/src/include/usr/scom/runtime
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/usr/scom/runtime
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/usr/scom/runtime')
-rw-r--r--src/include/usr/scom/runtime/rt_scomif.H49
1 files changed, 49 insertions, 0 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
OpenPOWER on IntegriCloud