Attn: Do not always trace hostboot registers

Only trace hostboot registers if we are handling a checkstop or TI.

Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I66f234b424dbd36e8789c64c9a9e82a3a0e75d44
diff --git a/attn/attn_common.hpp b/attn/attn_common.hpp
index 7d8ed34..67d3f71 100644
--- a/attn/attn_common.hpp
+++ b/attn/attn_common.hpp
@@ -3,6 +3,36 @@
 namespace attn
 {
 
+/** @brief Attention handler return codes */
+enum ReturnCodes
+{
+    RC_SUCCESS        = 0,
+    RC_NOT_HANDLED    = 1,
+    RC_ANALYZER_ERROR = 2,
+    RC_CFAM_ERROR     = 3,
+    RC_DBUS_ERROR     = 4
+};
+
+/** @brief Code seciton for error reporing */
+enum class AttnSection
+{
+    reserved        = 0x0000,
+    attnHandler     = 0x0100,
+    tiHandler       = 0x0200,
+    handlePhypTi    = 0x0300,
+    handleHbTi      = 0x0400,
+    addHbStatusRegs = 0x0500
+};
+
+/** @brief Attention handler error reason codes */
+enum AttnCodes
+{
+    ATTN_NO_ERROR  = 0,
+    ATTN_INFO_NULL = 1,
+    ATTN_PDBG_CFAM = 2,
+    ATTN_PDBG_SCOM = 3
+};
+
 enum class HostState
 {
     Quiesce,
@@ -19,4 +49,16 @@
  */
 void transitionHost(const HostState i_hostState);
 
+/**
+ * @brief Traces some regs for hostboot
+ *
+ * When we receive a Checkstop or special Attention Term Immediate,
+ * hostboot wants some regs added to the error log. We will do this
+ * by tracing them and then the traces will get added to the error
+ * log later.
+ *
+ * @return nothing
+ */
+void addHbStatusRegs();
+
 } // namespace attn