]>
Commit | Line | Data |
---|---|---|
e5516b49 | 1 | /** @file\r |
2 | Internal Header file of Report Status Code Library for RUNTIME\r | |
3 | DXE Phase.\r | |
4 | \r | |
19796be3 | 5 | Copyright (c) 2006 - 2010, Intel Corporation<BR>\r |
e5516b49 | 6 | All rights reserved. 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 | |
29f766e4 | 15 | #ifndef __REPORT_STATUS_CODE_LIB_INTERNAL__H__\r |
16 | #define __REPORT_STATUS_CODE_LIB_INTERNAL__H__\r | |
e5516b49 | 17 | \r |
55e1864e | 18 | #include <FrameworkSmm.h>\r |
e5516b49 | 19 | \r |
20 | #include <Library/ReportStatusCodeLib.h>\r | |
21 | #include <Library/DebugLib.h>\r | |
e5516b49 | 22 | #include <Library/BaseLib.h>\r |
23 | #include <Library/BaseMemoryLib.h>\r | |
24 | #include <Library/PcdLib.h>\r | |
25 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
9556741c | 26 | #include <Library/UefiBootServicesTableLib.h>\r |
2067710d | 27 | #include <Library/DevicePathLib.h>\r |
29f766e4 | 28 | #include <Library/MemoryAllocationLib.h>\r |
e5516b49 | 29 | \r |
30 | #include <Guid/StatusCodeDataTypeId.h>\r | |
3a6064fa | 31 | #include <Guid/StatusCodeDataTypeDebug.h>\r |
6a27a4eb | 32 | #include <Guid/EventGroup.h>\r |
29f766e4 | 33 | \r |
19796be3 | 34 | #include <Protocol/SmmStatusCode.h>\r |
e5516b49 | 35 | #include <Protocol/StatusCode.h>\r |
29f766e4 | 36 | #include <Protocol/SmmBase.h>\r |
37 | \r | |
e5516b49 | 38 | \r |
29f766e4 | 39 | extern EFI_STATUS_CODE_DATA *mStatusCodeData;\r |
9f6531d1 | 40 | \r |
e5516b49 | 41 | /**\r |
29f766e4 | 42 | Internal worker function that reports a status code through the status code service.\r |
e5516b49 | 43 | \r |
29f766e4 | 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 | |
e5516b49 | 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 | |
29f766e4 | 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 | |
e5516b49 | 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 | |
29f766e4 | 72 | #endif\r |
e5516b49 | 73 | \r |