summaryrefslogtreecommitdiffstats
path: root/src/occ/scom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/occ/scom.h')
-rw-r--r--src/occ/scom.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/occ/scom.h b/src/occ/scom.h
new file mode 100644
index 0000000..3a7e504
--- /dev/null
+++ b/src/occ/scom.h
@@ -0,0 +1,64 @@
+/******************************************************************************
+// @file scom.h
+// @brief scom wrapper functions
+*/
+/******************************************************************************
+ *
+ * @page ChangeLogs Change Logs
+ * @section scom.h SCOM.H
+ * @verbatim
+ *
+ * Flag Def/Fea Userid Date Description
+ * ------- ---------- -------- ---------- ----------------------------------
+ * @gm033 920448 milesg 03/26/2014 New file
+ *
+ * @endverbatim
+ *
+ *///*************************************************************************/
+#ifndef _scom_h
+#define _scom_h
+
+//*************************************************************************
+// Includes
+//*************************************************************************
+#include <occ_common.h>
+#include <common_types.h>
+#include "errl.h"
+
+//*************************************************************************
+// Externs
+//*************************************************************************
+
+//*************************************************************************
+// Macros
+//*************************************************************************
+
+//*************************************************************************
+// Defines/Enums
+//*************************************************************************
+
+//*************************************************************************
+// Macros
+//*************************************************************************
+
+//*************************************************************************
+// Structures
+//*************************************************************************
+
+//*************************************************************************
+// Globals
+//*************************************************************************
+
+//*************************************************************************
+// Function Prototypes
+//*************************************************************************
+
+//uses non-panic version of getscom/putscom and creates predictive error log
+//with trace and processor callout on failure. If o_err is NULL, error is
+//committed internally. Otherwise, it is assumed the caller will handle
+//committing the error log. These errors should not be discarded!
+int putscom_ffdc(uint32_t i_addr, uint64_t i_data, errlHndl_t* o_err);
+int getscom_ffdc(uint32_t i_addr, uint64_t* o_data, errlHndl_t* o_err);
+
+#endif
+
OpenPOWER on IntegriCloud