]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - EdkModulePkg/Library/EdkDxeRuntimeDriverLib/Ipf/RuntimeService.c
Initial import.
[mirror_edk2.git] / EdkModulePkg / Library / EdkDxeRuntimeDriverLib / Ipf / RuntimeService.c
... / ...
Content-type: text/html ]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - EdkModulePkg/Library/EdkDxeRuntimeDriverLib/Ipf/RuntimeService.c


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 86.
CommitLineData
1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 RuntimeService.c\r
15\r
16Abstract:\r
17\r
18 Light weight lib to support Tiano drivers.\r
19\r
20--*/\r
21\r
22#include <RuntimeLibInternal.h>\r
23\r
24VOID\r
25EfiResetSystem (\r
26 IN EFI_RESET_TYPE ResetType,\r
27 IN EFI_STATUS ResetStatus,\r
28 IN UINTN DataSize,\r
29 IN CHAR16 *ResetData\r
30 )\r
31/*++\r
32\r
33Routine Description:\r
34\r
35 Resets the entire platform.\r
36\r
37Arguments:\r
38\r
39 ResetType - The type of reset to perform.\r
40 ResetStatus - The status code for the reset.\r
41 DataSize - The size, in bytes, of ResetData.\r
42 ResetData - A data buffer that includes a Null-terminated Unicode string, optionally\r
43 followed by additional binary data.\r
44\r
45Returns:\r
46\r
47 None\r
48\r
49--*/\r
50{\r
51 EFI_GUID Guid = EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID;\r
52\r
53 EfiCallEsalService (\r
54 &Guid,\r
55 ResetSystem,\r
56 (UINT64) ResetType,\r
57 (UINT64) ResetStatus,\r
58 (UINT64) DataSize,\r
59 (UINT64) ResetData,\r
60 0,\r
61 0,\r
62 0\r
63 );\r
64}\r
65\r
66\r
67//\r
68// The following functions hide the mRT local global from the call to\r
69// runtime service in the EFI system table.\r
70//\r
71EFI_STATUS\r
72EfiGetTime (\r
73 OUT EFI_TIME *Time,\r
74 OUT EFI_TIME_CAPABILITIES *Capabilities\r
75 )\r
76/*++\r
77\r
78Routine Description:\r
79\r
80 Returns the current time and date information, and the time-keeping \r
81 capabilities of the hardware platform.\r
82\r
83Arguments:\r
84\r
85 Time - A pointer to storage to receive a snapshot of the current time.\r
86