summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/hwpf/hwpf_reasoncodes.H3
-rw-r--r--src/include/usr/runtime/rt_targeting.H70
-rw-r--r--src/include/usr/targeting/common/targreasoncodes.H7
-rw-r--r--src/include/usr/xscom/xscomreasoncodes.H5
4 files changed, 80 insertions, 5 deletions
diff --git a/src/include/usr/hwpf/hwpf_reasoncodes.H b/src/include/usr/hwpf/hwpf_reasoncodes.H
index ce8f55e0e..37c3b50c9 100644
--- a/src/include/usr/hwpf/hwpf_reasoncodes.H
+++ b/src/include/usr/hwpf/hwpf_reasoncodes.H
@@ -66,6 +66,8 @@ namespace fapi
MOD_PLAT_ATTR_SVC_SET_BADDQ_DATA = 0x1B,
MOD_HOST_COALESCE_HOST = 0x1C,
MOD_ATTR_OVERRIDE = 0x1D,
+ MOD_PLAT_SPECIAL_WAKEUP = 0x1E,
+
};
/**
@@ -114,6 +116,7 @@ namespace fapi
RC_HOST_TIMER_EXPIRED = HWPF_COMP_ID | 0x2A,
RC_HOST_TIMER_THREAD_FAIL = HWPF_COMP_ID | 0x2B,
RC_NULL_POINTER = HWPF_COMP_ID | 0x2C,
+ RC_RT_WAKEUP_FAILED = HWPF_COMP_ID | 0x2D,
};
/**
diff --git a/src/include/usr/runtime/rt_targeting.H b/src/include/usr/runtime/rt_targeting.H
new file mode 100644
index 000000000..d3e5475cd
--- /dev/null
+++ b/src/include/usr/runtime/rt_targeting.H
@@ -0,0 +1,70 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/runtime/rt_targeting.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2014 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __RT_TARGETING_H
+#define __RT_TARGETING_H
+
+#include <errl/errlentry.H>
+
+namespace TARGETING
+{
+ class Target;
+}
+
+namespace RT_TARG
+{
+ typedef uint64_t rtChipId_t;
+
+ enum
+ {
+ CHIPID_NODE_SHIFT = 3, //!< CHIPID NODE is 'NNNCCC'b
+ MEMBUF_ID_SHIFT = 4, //!< CHIPID for MEMBUF is 'NNNCCCMMMM'b
+ UNIT_ID_SHIFT = 4, //!< CHIPID for CORE is 'NNNCCCPPPP'b
+ UNIT_ID_MASK = 0x000003ff, //!< Valid id bits w/o ID_FLAG
+ PROC_ID_TYPE = 0x00000000, //!< PROC chip id type
+ MEMBUF_ID_TYPE = 0x80000000, //!< MEMBUF chip id type
+ CORE_ID_TYPE = 0x40000000, //!< CORE/EX chip id type
+ CHIPID_ID_MASK = 0xFF000000, //!< TYPE field
+ };
+
+
+ /**
+ * @brief Convert a TARGETING::Target to an unit ID that can be used
+ * in calls to Sapphire
+ * @param[in] The HB TARGETING::Target
+ * @param[out] Sapphire target id
+ * @return an error handle on error
+ */
+ errlHndl_t getRtTarget(const TARGETING::Target* i_target,
+ rtChipId_t &o_targetId);
+
+ /**
+ * @brier Convert a runtime chip_id (target) into a TARGETING::Target
+ * @param[in] The rt chipId
+ * @param[out] The TARGETING::Target pointer
+ * @return error log handle on error else NULL
+ */
+ errlHndl_t getHbTarget(rtChipId_t i_rt_chip_id,
+ TARGETING::Target *& o_target);
+};
+
+#endif
diff --git a/src/include/usr/targeting/common/targreasoncodes.H b/src/include/usr/targeting/common/targreasoncodes.H
index fcd45ae95..cc05ae437 100644
--- a/src/include/usr/targeting/common/targreasoncodes.H
+++ b/src/include/usr/targeting/common/targreasoncodes.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -39,6 +39,8 @@ enum TargetingModuleId
TARG_MOD_TEST = 0x01,
TARG_MOD_ATTRRP = 0x02,
TARG_MOD_ATTR_SYNC = 0x03,
+ TARG_RT_GET_RT_TARGET = 0x04,
+ TARG_RT_GET_HB_TARGET = 0x05,
};
enum TargetingReasonCode
@@ -52,6 +54,9 @@ enum TargetingReasonCode
TARG_RC_ATTR_SYNC_TO_FSP_FAIL = TARG_COMP_ID | 0x07,
TARG_RC_ATTR_SYNC_REQUEST_TO_HB_FAIL = TARG_COMP_ID | 0x08,
TARG_RC_ATTR_SYNC_TO_HB_FAIL = TARG_COMP_ID | 0x09,
+ TARG_RT_UNIT_TARGET_NOT_FOUND = TARG_COMP_ID | 0x0a,
+ TARG_RT_NO_PROC_TARGET = TARG_COMP_ID | 0x0b,
+ TARG_RT_TARGET_TYPE_NOT_SUPPORTED = TARG_COMP_ID | 0x0c,
};
}; // End TARGETING namespace
diff --git a/src/include/usr/xscom/xscomreasoncodes.H b/src/include/usr/xscom/xscomreasoncodes.H
index c3af7a186..5f6593da7 100644
--- a/src/include/usr/xscom/xscomreasoncodes.H
+++ b/src/include/usr/xscom/xscomreasoncodes.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -39,7 +39,6 @@ namespace XSCOM
XSCOM_DO_OP = 0x07,
XSCOM_RT_DO_OP = 0x08,
XSCOM_RT_SANITY_CHECK = 0x09,
- XSCOM_RT_GET_TARGET = 0x0A,
};
enum xscomReasonCode
@@ -51,8 +50,6 @@ namespace XSCOM
XSCOM_MMIO_UNMAP_ERR = XSCOM_COMP_ID | 0x05,
XSCOM_RUNTIME_ERR = XSCOM_COMP_ID | 0x06,
XSCOM_RUNTIME_INTERFACE_ERR = XSCOM_COMP_ID | 0x07,
- XSCOM_RT_NO_MCS_TARGET = XSCOM_COMP_ID | 0x08,
- XSCOM_RT_NO_PROC_TARGET = XSCOM_COMP_ID | 0x09,
};
};
OpenPOWER on IntegriCloud