]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Internal Header file of Report Status Code Library for RUNTIME\r | |
3 | DXE Phase.\r | |
4 | \r | |
5 | Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | **/\r | |
9 | #ifndef __REPORT_STATUS_CODE_LIB_INTERNAL__H__\r | |
10 | #define __REPORT_STATUS_CODE_LIB_INTERNAL__H__\r | |
11 | \r | |
12 | #include <FrameworkSmm.h>\r | |
13 | \r | |
14 | #include <Library/ReportStatusCodeLib.h>\r | |
15 | #include <Library/DebugLib.h>\r | |
16 | #include <Library/BaseLib.h>\r | |
17 | #include <Library/BaseMemoryLib.h>\r | |
18 | #include <Library/PcdLib.h>\r | |
19 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
20 | #include <Library/UefiBootServicesTableLib.h>\r | |
21 | #include <Library/DevicePathLib.h>\r | |
22 | #include <Library/MemoryAllocationLib.h>\r | |
23 | \r | |
24 | #include <Guid/StatusCodeDataTypeId.h>\r | |
25 | #include <Guid/StatusCodeDataTypeDebug.h>\r | |
26 | #include <Guid/EventGroup.h>\r | |
27 | \r | |
28 | #include <Protocol/SmmStatusCode.h>\r | |
29 | #include <Protocol/StatusCode.h>\r | |
30 | #include <Protocol/SmmBase.h>\r | |
31 | \r | |
32 | \r | |
33 | extern EFI_STATUS_CODE_DATA *mStatusCodeData;\r | |
34 | \r | |
35 | /**\r | |
36 | Internal worker function that reports a status code through the status code service.\r | |
37 | \r | |
38 | If status code service is not cached, then this function checks if status code service is\r | |
39 | available in system. If status code service is not available, then EFI_UNSUPPORTED is\r | |
40 | returned. If status code service is present, then it is cached in mReportStatusCode.\r | |
41 | Finally this function reports status code through the status code service.\r | |
42 | \r | |
43 | @param Type Status code type.\r | |
44 | @param Value Status code value.\r | |
45 | @param Instance Status code instance number.\r | |
46 | @param CallerId Pointer to a GUID that identifies the caller of this\r | |
47 | function. This is an optional parameter that may be\r | |
48 | NULL.\r | |
49 | @param Data Pointer to the extended data buffer. This is an\r | |
50 | optional parameter that may be NULL.\r | |
51 | \r | |
52 | @retval EFI_SUCCESS The status code was reported.\r | |
53 | @retval EFI_UNSUPPORTED Status code service is not available.\r | |
54 | @retval EFI_UNSUPPORTED Status code type is not supported.\r | |
55 | \r | |
56 | **/\r | |
57 | EFI_STATUS\r | |
58 | InternalReportStatusCode (\r | |
59 | IN EFI_STATUS_CODE_TYPE Type,\r | |
60 | IN EFI_STATUS_CODE_VALUE Value,\r | |
61 | IN UINT32 Instance,\r | |
62 | IN CONST EFI_GUID *CallerId OPTIONAL,\r | |
63 | IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r | |
64 | );\r | |
65 | \r | |
66 | #endif\r | |
67 | \r |