summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf/hwp/fapiTestHwpError.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/hwpf/hwp/fapiTestHwpError.H')
-rw-r--r--src/include/usr/hwpf/hwp/fapiTestHwpError.H36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/hwp/fapiTestHwpError.H b/src/include/usr/hwpf/hwp/fapiTestHwpError.H
new file mode 100644
index 000000000..5d7954e35
--- /dev/null
+++ b/src/include/usr/hwpf/hwp/fapiTestHwpError.H
@@ -0,0 +1,36 @@
+/**
+ * @file fapiTestHwpError.H
+ *
+ * @brief Defines a simple test Hardware Procedure that returns an error
+ */
+
+/*
+ * Change Log ******************************************************************
+ * Flag Defect/Feature User Date Description
+ * ------ -------------- ---------- ----------- ----------------------------
+ * mjjones 08/08/2011 Created.
+ *
+ */
+
+#ifndef FAPITESTHWPERROR_H_
+#define FAPITESTHWPERROR_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 Simple HWP that returns an error (RC_TEST_ERROR_A)
+ *
+ * @param[in] i_target Reference to target (unused by HWP)
+ *
+ * @return ReturnCode
+ */
+fapi::ReturnCode hwpTestError(const fapi::Target & i_target);
+
+} // extern "C"
+
+#endif // FAPITESTHWPERROR_H_
OpenPOWER on IntegriCloud