Updated to support passing PE/COFF and LZMA decompress up via HOBS. Currently turned...
[mirror_edk2.git] / EmbeddedPkg / Include / Library / HalRuntimeServicesLib.h
CommitLineData
2ef2b01e
A
1/** @file\r
2\r
3 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>\r
4\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15\r
16#ifndef __RUNTIME_SERVICES_LIB_H__\r
17#define __RUNTIME_SERVICES_LIB_H__\r
18\r
19VOID\r
20LibMtcInitialize (VOID);\r
21\r
22VOID\r
23LibMtcVirtualAddressChangeEvent (VOID);\r
24\r
25EFI_STATUS\r
26EFIAPI\r
27LibMtcGetNextHighMonotonicCount (\r
28 OUT UINT32 *HighCount\r
29 );\r
30\r
31EFI_STATUS\r
32LibMtcGetNextMonotonicCount (\r
33 OUT UINT64 *Count\r
34 );\r
35\r
36\r
37\r
38VOID\r
39LibVariableInitialize (VOID);\r
40\r
41VOID\r
42LibVariableVirtualAddressChangeEvent (VOID);\r
43\r
44EFI_STATUS\r
45LibGetVariable (\r
46 IN CHAR16 *VariableName,\r
47 IN EFI_GUID *VendorGuid,\r
48 OUT UINT32 *Attributes OPTIONAL,\r
49 IN OUT UINTN *DataSize,\r
50 OUT VOID *Data\r
51 );\r
52\r
53EFI_STATUS\r
54LibGetNextVariableName (\r
55 IN OUT UINTN *VariableNameSize,\r
56 IN OUT CHAR16 *VariableName,\r
57 IN OUT EFI_GUID *VendorGuid\r
58 );\r
59\r
60EFI_STATUS\r
61LibSetVariable (\r
62 IN CHAR16 *VariableName,\r
63 IN EFI_GUID *VendorGuid,\r
64 IN UINT32 Attributes,\r
65 IN UINTN DataSize,\r
66 IN VOID *Data\r
67 );\r
68\r
69EFI_STATUS\r
70LibQueryVariableInfo (\r
71 IN UINT32 Attributes,\r
72 OUT UINT64 *MaximumVariableStorageSize,\r
73 OUT UINT64 *RemainingVariableStorageSize,\r
74 OUT UINT64 *MaximumVariableSize\r
75 );\r
76\r
77\r
78\r
79VOID\r
80LibResetInitializeReset (VOID);\r
81\r
82VOID\r
83LibResetVirtualAddressChangeEvent (VOID);\r
84\r
85VOID\r
86LibResetSystem (\r
87 IN EFI_RESET_TYPE ResetType,\r
88 IN EFI_STATUS ResetStatus,\r
89 IN UINTN DataSize,\r
90 IN CHAR16 *ResetData OPTIONAL\r
91 );\r
92\r
93\r
94VOID\r
95LibCapsuleInitialize (VOID);\r
96\r
97VOID\r
98LibCapsuleVirtualAddressChangeEvent (VOID);\r
99\r
100EFI_STATUS\r
101LibUpdateCapsule (\r
102 IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,\r
103 IN UINTN CapsuleCount,\r
104 IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL\r
105 );\r
106\r
107EFI_STATUS\r
108QueryCapsuleCapabilities (\r
109 IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,\r
110 IN UINTN CapsuleCount,\r
111 OUT UINT64 *MaxiumCapsuleSize,\r
112 OUT EFI_RESET_TYPE *ResetType\r
113 );\r
114\r
115\r
116\r
117VOID\r
118LibRtcInitialize (VOID);\r
119\r
120VOID\r
121LibRtcVirtualAddressChangeEvent (VOID);\r
122\r
123EFI_STATUS\r
124LibGetTime (\r
125 OUT EFI_TIME *Time,\r
126 OUT EFI_TIME_CAPABILITIES *Capabilities\r
127 );\r
128\r
129EFI_STATUS\r
130LibSetTime (\r
131 IN EFI_TIME *Time\r
132 );\r
133\r
134EFI_STATUS\r
135LibGetWakeupTime (\r
136 OUT BOOLEAN *Enabled,\r
137 OUT BOOLEAN *Pending,\r
138 OUT EFI_TIME *Time\r
139 );\r
140\r
141EFI_STATUS\r
142LibSetWakeupTime (\r
143 IN BOOLEAN Enabled,\r
144 OUT EFI_TIME *Time\r
145 );\r
146\r
147\r
148VOID\r
149LibReportStatusCodeInitialize (VOID);\r
150\r
151VOID\r
152LibReportStatusCodeVirtualAddressChangeEvent (VOID);\r
153\r
154EFI_STATUS\r
155LibReportStatusCode (\r
156 IN EFI_STATUS_CODE_TYPE CodeType,\r
157 IN EFI_STATUS_CODE_VALUE Value,\r
158 IN UINT32 Instance,\r
159 IN EFI_GUID *CallerId,\r
160 IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r
161 );\r
162\r
163\r
164#endif\r
165\r