summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf/hwp/fapiTestHwp.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/hwpf/hwp/fapiTestHwp.H')
-rw-r--r--src/include/usr/hwpf/hwp/fapiTestHwp.H31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/hwp/fapiTestHwp.H b/src/include/usr/hwpf/hwp/fapiTestHwp.H
new file mode 100644
index 000000000..db619737f
--- /dev/null
+++ b/src/include/usr/hwpf/hwp/fapiTestHwp.H
@@ -0,0 +1,31 @@
+/**
+ * @file fapiTestHwp.H
+ *
+ * @brief Defines test Hardware Procedures that are intended to test out the
+ * Hardware Procedure Framework
+ */
+
+#ifndef FAPITESTHWPROC_H_
+#define FAPITESTHWPROC_H_
+
+#include <fapi.H>
+
+// HWPs are defined as C functions because platforms may wish to package them
+// in linux shared libraries which are DL-Opened
+extern "C"
+{
+
+/**
+ * @brief Finds if a P7 EM0 chiplet clock is on
+ *
+ * @param[in] i_chip Target chip
+ * @param[out] o_clocksOn True if clocks are on, else false
+ *
+ * @return ReturnCode
+ */
+fapi::ReturnCode hwpIsP7EM0ChipletClockOn(const fapi::Target & i_chip,
+ bool & o_clocksOn);
+
+} // extern "C"
+
+#endif // FAPITESTHWPROC_H_
OpenPOWER on IntegriCloud