diff options
author | Cinnamon Shia <cinnamon.shia@hpe.com> | 2016-06-28 17:40:35 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-06-29 09:46:51 +0800 |
commit | 848e14723964231cc64dfe71342201237979e9fb (patch) | |
tree | a220e9c34e545ed87a604932e114760164b38d10 /MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h | |
parent | c99bcf3d8aa5c098881360e8598b4c9e612d0a2b (diff) | |
download | edk2-platforms-848e14723964231cc64dfe71342201237979e9fb.tar.xz |
MdeModulePkg/MemoryStatusCode: Expose the DXE memory status code table.
Let data of DXE memory status code can be used by other modules.
1. Save the address of DXE memory status code table to DxeConfigurationTable.
2. Save the address of SMM memory status code table to SmmConfigurationTable.
3. Move RUNTIME_MEMORY_STATUSCODE_HEADER to its public header file.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h')
-rw-r--r-- | MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h index 2bf341202e..a3185f5b52 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h +++ b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.h @@ -2,6 +2,7 @@ Internal include file for Status Code Handler Driver.
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+ (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -40,15 +41,6 @@ //
#define MAX_DEBUG_MESSAGE_LENGTH 0x100
-//
-// Runtime memory status code worker definition
-//
-typedef struct {
- UINT32 RecordIndex;
- UINT32 NumberOfRecords;
- UINT32 MaxRecordsNumber;
-} RUNTIME_MEMORY_STATUSCODE_HEADER;
-
extern RUNTIME_MEMORY_STATUSCODE_HEADER *mRtMemoryStatusCodeTable;
/**
@@ -65,7 +57,7 @@ EfiSerialStatusCodeInitializeWorker ( /**
Convert status code value and extended data to readable ASCII string, send string to serial I/O device.
-
+
@param CodeType Indicates the type of status code being reported.
@param Value Describes the current status of a hardware or software entity.
This included information about the class and subclass that is used to
@@ -96,6 +88,7 @@ SerialStatusCodeReportWorker ( Initialize runtime memory status code table as initialization for runtime memory status code worker
@retval EFI_SUCCESS Runtime memory status code table successfully initialized.
+ @retval others Errors from gBS->InstallConfigurationTable().
**/
EFI_STATUS
@@ -106,7 +99,7 @@ RtMemoryStatusCodeInitializeWorker ( /**
Report status code into runtime memory. If the runtime pool is full, roll back to the
first record and overwrite it.
-
+
@param CodeType Indicates the type of status code being reported.
@param Value Describes the current status of a hardware or software entity.
This included information about the class and subclass that is used to
@@ -117,7 +110,7 @@ RtMemoryStatusCodeInitializeWorker ( This parameter allows the status code driver to apply different rules to
different callers.
@param Data This optional parameter may be used to pass additional data.
-
+
@retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table.
**/
|