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