Combine attn handler and openpower hwdiags
The main binary is now openpower-hw-diags. This application will take a
command line option --daemon to load it as a daemon. As a daemon it will
register the attention handler portion of application as the attention
gpio event handler. If the application is not loaded as a daemon it will
operate as a stand alone application which accepts command line options
for requesting hardware analyses and diagnostics operations.
Change-Id: I6210b744cb320873d74a0757928f904ca6296846
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
diff --git a/analyzer/hei_user_defines.hpp b/analyzer/hei_user_defines.hpp
new file mode 100644
index 0000000..e45e18d
--- /dev/null
+++ b/analyzer/hei_user_defines.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+/**
+ * @file hei_user_defines.hpp
+ * @brief The purpose of this file is to provide defines that are required by
+ * the hardware error isolator library (libhei)
+ */
+
+#include <assert.h>
+#include <inttypes.h>
+#include <stdio.h>
+
+#define HEI_INF(...) \
+ { \
+ printf("HWDIAGS I> " __VA_ARGS__); \
+ printf("\n"); \
+ }
+
+#define HEI_ERR(...) \
+ { \
+ printf("HWDIAGS E> " __VA_ARGS__); \
+ printf("\n"); \
+ }
+
+#define HEI_ASSERT(expression) assert(expression);