EmbeddedPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmbeddedPkg / Include / Library / HalRuntimeServicesLib.h
1 /** @file
2
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9
10 #ifndef __RUNTIME_SERVICES_LIB_H__
11 #define __RUNTIME_SERVICES_LIB_H__
12
13 VOID
14 LibMtcInitialize (VOID);
15
16 VOID
17 LibMtcVirtualAddressChangeEvent (VOID);
18
19 EFI_STATUS
20 EFIAPI
21 LibMtcGetNextHighMonotonicCount (
22 OUT UINT32 *HighCount
23 );
24
25 EFI_STATUS
26 LibMtcGetNextMonotonicCount (
27 OUT UINT64 *Count
28 );
29
30
31
32 VOID
33 LibVariableInitialize (VOID);
34
35 VOID
36 LibVariableVirtualAddressChangeEvent (VOID);
37
38 EFI_STATUS
39 LibGetVariable (
40 IN CHAR16 *VariableName,
41 IN EFI_GUID *VendorGuid,
42 OUT UINT32 *Attributes OPTIONAL,
43 IN OUT UINTN *DataSize,
44 OUT VOID *Data
45 );
46
47 EFI_STATUS
48 LibGetNextVariableName (
49 IN OUT UINTN *VariableNameSize,
50 IN OUT CHAR16 *VariableName,
51 IN OUT EFI_GUID *VendorGuid
52 );
53
54 EFI_STATUS
55 LibSetVariable (
56 IN CHAR16 *VariableName,
57 IN EFI_GUID *VendorGuid,
58 IN UINT32 Attributes,
59 IN UINTN DataSize,
60 IN VOID *Data
61 );
62
63 EFI_STATUS
64 LibQueryVariableInfo (
65 IN UINT32 Attributes,
66 OUT UINT64 *MaximumVariableStorageSize,
67 OUT UINT64 *RemainingVariableStorageSize,
68 OUT UINT64 *MaximumVariableSize
69 );
70
71
72
73 VOID
74 LibResetInitializeReset (VOID);
75
76 VOID
77 LibResetVirtualAddressChangeEvent (VOID);
78
79 VOID
80 LibResetSystem (
81 IN EFI_RESET_TYPE ResetType,
82 IN EFI_STATUS ResetStatus,
83 IN UINTN DataSize,
84 IN CHAR16 *ResetData OPTIONAL
85 );
86
87
88 VOID
89 LibCapsuleInitialize (VOID);
90
91 VOID
92 LibCapsuleVirtualAddressChangeEvent (VOID);
93
94 EFI_STATUS
95 LibUpdateCapsule (
96 IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,
97 IN UINTN CapsuleCount,
98 IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL
99 );
100
101 EFI_STATUS
102 QueryCapsuleCapabilities (
103 IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,
104 IN UINTN CapsuleCount,
105 OUT UINT64 *MaxiumCapsuleSize,
106 OUT EFI_RESET_TYPE *ResetType
107 );
108
109
110
111 VOID
112 LibRtcInitialize (VOID);
113
114 VOID
115 LibRtcVirtualAddressChangeEvent (VOID);
116
117 EFI_STATUS
118 LibGetTime (
119 OUT EFI_TIME *Time,
120 OUT EFI_TIME_CAPABILITIES *Capabilities
121 );
122
123 EFI_STATUS
124 LibSetTime (
125 IN EFI_TIME *Time
126 );
127
128 EFI_STATUS
129 LibGetWakeupTime (
130 OUT BOOLEAN *Enabled,
131 OUT BOOLEAN *Pending,
132 OUT EFI_TIME *Time
133 );
134
135 EFI_STATUS
136 LibSetWakeupTime (
137 IN BOOLEAN Enabled,
138 OUT EFI_TIME *Time
139 );
140
141
142 VOID
143 LibReportStatusCodeInitialize (VOID);
144
145 VOID
146 LibReportStatusCodeVirtualAddressChangeEvent (VOID);
147
148 EFI_STATUS
149 LibReportStatusCode (
150 IN EFI_STATUS_CODE_TYPE CodeType,
151 IN EFI_STATUS_CODE_VALUE Value,
152 IN UINT32 Instance,
153 IN EFI_GUID *CallerId,
154 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
155 );
156
157
158 #endif
159