]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/ReportStatusCodeLibInternal.h
Update the copyright notice format
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / SmmRuntimeDxeReportStatusCodeLibFramework / ReportStatusCodeLibInternal.h
1 /** @file
2 Internal Header file of Report Status Code Library for RUNTIME
3 DXE Phase.
4
5 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15 #ifndef __REPORT_STATUS_CODE_LIB_INTERNAL__H__
16 #define __REPORT_STATUS_CODE_LIB_INTERNAL__H__
17
18 #include <FrameworkSmm.h>
19
20 #include <Library/ReportStatusCodeLib.h>
21 #include <Library/DebugLib.h>
22 #include <Library/BaseLib.h>
23 #include <Library/BaseMemoryLib.h>
24 #include <Library/PcdLib.h>
25 #include <Library/UefiRuntimeServicesTableLib.h>
26 #include <Library/UefiBootServicesTableLib.h>
27 #include <Library/DevicePathLib.h>
28 #include <Library/MemoryAllocationLib.h>
29
30 #include <Guid/StatusCodeDataTypeId.h>
31 #include <Guid/StatusCodeDataTypeDebug.h>
32 #include <Guid/EventGroup.h>
33
34 #include <Protocol/SmmStatusCode.h>
35 #include <Protocol/StatusCode.h>
36 #include <Protocol/SmmBase.h>
37
38
39 extern EFI_STATUS_CODE_DATA *mStatusCodeData;
40
41 /**
42 Internal worker function that reports a status code through the status code service.
43
44 If status code service is not cached, then this function checks if status code service is
45 available in system. If status code service is not available, then EFI_UNSUPPORTED is
46 returned. If status code service is present, then it is cached in mReportStatusCode.
47 Finally this function reports status code through the status code service.
48
49 @param Type Status code type.
50 @param Value Status code value.
51 @param Instance Status code instance number.
52 @param CallerId Pointer to a GUID that identifies the caller of this
53 function. This is an optional parameter that may be
54 NULL.
55 @param Data Pointer to the extended data buffer. This is an
56 optional parameter that may be NULL.
57
58 @retval EFI_SUCCESS The status code was reported.
59 @retval EFI_UNSUPPORTED Status code service is not available.
60 @retval EFI_UNSUPPORTED Status code type is not supported.
61
62 **/
63 EFI_STATUS
64 InternalReportStatusCode (
65 IN EFI_STATUS_CODE_TYPE Type,
66 IN EFI_STATUS_CODE_VALUE Value,
67 IN UINT32 Instance,
68 IN CONST EFI_GUID *CallerId OPTIONAL,
69 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
70 );
71
72 #endif
73