]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | RuntimeService.c\r | |
15 | \r | |
16 | Abstract:\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 | |
24 | VOID\r | |
25 | EfiResetSystem (\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 | |
33 | Routine Description:\r | |
34 | \r | |
35 | Resets the entire platform.\r | |
36 | \r | |
37 | Arguments:\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 | |
45 | Returns:\r | |
46 | \r | |
47 | None\r | |
48 | \r | |
49 | --*/\r | |
50 | {\r | |
51 | mRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);\r | |
52 | }\r | |
53 | \r | |
54 | //\r | |
55 | // The following functions hide the mRT local global from the call to\r | |
56 | // runtime service in the EFI system table.\r | |
57 | //\r | |
58 | EFI_STATUS\r | |
59 | EfiGetTime (\r | |
60 | OUT EFI_TIME *Time,\r | |
61 | OUT EFI_TIME_CAPABILITIES *Capabilities\r | |
62 | )\r | |
63 | /*++\r | |
64 | \r | |
65 | Routine Description:\r | |
66 | \r | |
67 | Returns the current time and date information, and the time-keeping \r | |
68 | capabilities of the hardware platform.\r | |
69 | \r | |
70 | Arguments:\r | |
71 | \r | |
72 | Time - A pointer to storage to receive a snapshot of the current time.\r | |
73 | Content-type: text/html ]>