summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-12-06 17:14:19 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-12-17 20:17:41 -0600
commit9a133dd18164f3836539c95ddf0524105647e73f (patch)
treec1386051b639615f0aa40285960235617df298d8 /src/include
parentb75c353365d02d84026c7867080d1816f4199821 (diff)
downloadtalos-hostboot-9a133dd18164f3836539c95ddf0524105647e73f.tar.gz
talos-hostboot-9a133dd18164f3836539c95ddf0524105647e73f.zip
Support Trace messages for FSP.
RTC: 35396 Change-Id: I0a8dddc6198d82b10780e897a284575a317862ba Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2648 Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/hwpf/plat/fapiPlatTrace.H48
-rw-r--r--src/include/usr/mbox/mbox_queues.H14
-rw-r--r--src/include/usr/trace/trace.H4
3 files changed, 35 insertions, 31 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatTrace.H b/src/include/usr/hwpf/plat/fapiPlatTrace.H
index 6500428db..d2005b315 100644
--- a/src/include/usr/hwpf/plat/fapiPlatTrace.H
+++ b/src/include/usr/hwpf/plat/fapiPlatTrace.H
@@ -1,25 +1,25 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/include/usr/hwpf/plat/fapiPlatTrace.H $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/hwpf/plat/fapiPlatTrace.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
/**
* @file platTrace.H
*
@@ -52,7 +52,7 @@ extern trace_desc_t* g_fapiImpTd;
extern trace_desc_t* g_fapiScanTd;
// Information traces (go into fast trace buffer that can wrap often)
-#define FAPI_INF(_fmt_, _args_...) TRACFCOMP(g_fapiTd, TRACE_FILENAME _fmt_, ##_args_ )
+#define FAPI_INF(_fmt_, _args_...) TRACSCOMP(g_fapiTd, TRACE_FILENAME _fmt_, ##_args_ )
// Important traces (go into slow trace buffer that should not wrap often)
#define FAPI_IMP(_fmt_, _args_...) TRACFCOMP(g_fapiImpTd, TRACE_FILENAME _fmt_, ##_args_ )
@@ -64,6 +64,6 @@ extern trace_desc_t* g_fapiScanTd;
#define FAPI_DBG(_fmt_, _args_...) TRACDCOMP(g_fapiTd, TRACE_FILENAME _fmt_, ##_args_)
// Scan traces
-#define FAPI_SCAN(_fmt_, _args_...) TRACFCOMP(g_fapiScanTd, _fmt_, ##_args_)
+#define FAPI_SCAN(_fmt_, _args_...) TRACSCOMP(g_fapiScanTd, _fmt_, ##_args_)
#endif // PLATTRACE_H_
diff --git a/src/include/usr/mbox/mbox_queues.H b/src/include/usr/mbox/mbox_queues.H
index 1941aec1b..f58bbaad5 100644
--- a/src/include/usr/mbox/mbox_queues.H
+++ b/src/include/usr/mbox/mbox_queues.H
@@ -41,25 +41,29 @@ namespace MBOX
{
NOT_FOUND = 0,
HB_MAILBOX_MSGQ = 1,
+ // Add HB services here:
HB_ISTEP_MSGQ = 2,
HB_ATTR_SYNC_MSGQ = 3,
HB_ERROR_MSGQ = 4,
+ // 5, // Reserved for VID
HB_HWPF_ATTR_MSGQ = 6, // HWPF Attribute override/sync
- // Add HB services here:
+ HB_TRACE_MSGQ = 7,
HB_TEST_MSGQ = 0x7FFFFFFF,
// FSP mailboxes
FSP_FIRST_MSGQ = 0x80000000,
FSP_MAILBOX_MSGQ = 0x80000001,
- FSP_PROGRESS_CODES_MSGQ = 0x80000002,
- FSP_TRACE_MSGQ = 0x80000003,
+ // Add FSP services here:
+ FSP_TRACE_MSGQ = 0x80000002,
+ FSP_PROGRESS_CODES_MSGQ = 0x80000003,
FSP_ERROR_MSGQ = 0x80000004,
- IPL_SERVICE_QUEUE = 0x80000008, // Defined by Fsp team
+ // 0x80000007, // reserved for TMGT
+ IPL_SERVICE_QUEUE = 0x80000008,
FSP_ATTR_SYNC_MSGQ = 0x80000009,
+ // 0x8000000A, // Reserved for VID
FSP_HWPF_ATTR_MSGQ = 0x8000000B, // HWPF Attribute override/sync
FSP_VPD_MSGQ = 0x8000000C,
- // Add FSP services here:
FSP_ECHO_MSGQ = 0xFFFFFFFF, // Fake FSP for test
};
diff --git a/src/include/usr/trace/trace.H b/src/include/usr/trace/trace.H
index 802efe525..2d3fc8db3 100644
--- a/src/include/usr/trace/trace.H
+++ b/src/include/usr/trace/trace.H
@@ -93,7 +93,7 @@ namespace TRACE
const trace_hash_val i_hash,
const char * i_fmt,
const uint32_t i_line,
- const int32_t i_type, ...);
+ const uint32_t i_type, ...);
/**
* @brief Write binary data out to trace buffer
@@ -115,7 +115,7 @@ namespace TRACE
const uint32_t i_line,
const void *i_ptr,
const uint32_t i_size,
- const int32_t i_type);
+ const uint32_t i_type);
/**
* @brief Retrieve the trace buffer named by i_pName
OpenPOWER on IntegriCloud