summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2011-08-12 11:03:30 -0500
committerNicholas E. Bofferding <bofferdn@us.ibm.com>2011-08-19 15:08:51 -0500
commit2935ed01dae82a91c1bb4c181fd36cc42b2efaf9 (patch)
treeedbde05a7cf666342b704b2eb069e6dfbcbd96c5 /src/usr/hwpf/hwp/fapiTestHwpFfdc.C
parent02991f3ecb7356dc989148710e7ca40df0f7437c (diff)
downloadtalos-hostboot-2935ed01dae82a91c1bb4c181fd36cc42b2efaf9.tar.gz
talos-hostboot-2935ed01dae82a91c1bb4c181fd36cc42b2efaf9.zip
HWPF Error Info Support
Change-Id: Ib060599a4b64e768cbc75184a050e851c0a39c4e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/250 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwpFfdc.C')
-rw-r--r--src/usr/hwpf/hwp/fapiTestHwpFfdc.C37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpFfdc.C b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
new file mode 100644
index 000000000..5c9ffc7d5
--- /dev/null
+++ b/src/usr/hwpf/hwp/fapiTestHwpFfdc.C
@@ -0,0 +1,37 @@
+/**
+ * @file fapiTestHwpFfdc.C
+ *
+ * @brief Implements a simple test Hardware Procedure that collects FFDC data
+ */
+
+/*
+ * Change Log ******************************************************************
+ * Flag Defect/Feature User Date Description
+ * ------ -------------- ---------- ----------- ----------------------------
+ * mjjones 08/08/2011 Created.
+ *
+ */
+
+#include <fapiTestHwpFfdc.H>
+
+extern "C"
+{
+
+//******************************************************************************
+// hwpTestFfdc1 function
+//******************************************************************************
+fapi::ReturnCode hwpTestFfdc1(const fapi::Target & i_target,
+ fapi::TestFfdc1 & o_ffdc)
+{
+ FAPI_INF("Performing FFDC HWP: hwpTestFfdc1");
+
+ // Just set data to output structure. A real FFDC HWP would do a hardware
+ // access to get FFDC
+ fapi::ReturnCode l_rc;
+
+ o_ffdc.iv_data = 0x11223344;
+
+ return l_rc;
+}
+
+} // extern "C"
OpenPOWER on IntegriCloud