#ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
#define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
\r
+#include <Pi/PiStatusCode.h>\r
+\r
///\r
/// The Global ID used to identify a structure of type EFI_DEBUG_INFO.\r
///\r
///\r
/// The maximum size of an EFI_DEBUG_INFO structure.\r
///\r
-#define EFI_STATUS_CODE_DATA_MAX_SIZE 200\r
+#define EFI_STATUS_CODE_DATA_MAX_SIZE 0x200\r
+\r
+///\r
+/// Define the maximum extended data size that is supported when a\r
+/// status code is reported.\r
+///\r
+#define MAX_EXTENDED_DATA_SIZE (EFI_STATUS_CODE_DATA_MAX_SIZE + sizeof(EFI_STATUS_CODE_DATA))\r
\r
///\r
/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed\r
#include <Guid/StatusCodeDataTypeId.h>\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported when a status code is\r
-// reported at TPL_HIGH_LEVEL.\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
\r
/**\r
#include <Library/OemHookStatusCodeLib.h>\r
#include <Library/PcdLib.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported in the PEI phase\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
/**\r
Internal worker function that reports a status code through the PEI Status Code Service or\r
OEM Hook Status Code Library.\r
#include <Guid/StatusCodeDataTypeDebug.h>\r
#include <Guid/EventGroup.h>\r
\r
-//\r
-// Define the maximum extended data size that is supported when a status code is reported.\r
-//\r
-#define MAX_EXTENDED_DATA_SIZE 0x200\r
-\r
EFI_STATUS_CODE_PROTOCOL *mReportStatusCodeLibStatusCodeProtocol = NULL;\r
EFI_EVENT mReportStatusCodeLibVirtualAddressChangeEvent;\r
EFI_EVENT mReportStatusCodeLibExitBootServicesEvent;\r