]>
Commit | Line | Data |
---|---|---|
2ef2b01e A |
1 | /** @file\r |
2 | Simple PC Port 0x92 reset driver\r | |
3 | \r | |
60274cca HT |
4 | Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r |
5 | Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r | |
2ef2b01e | 6 | \r |
60274cca | 7 | This program and the accompanying materials\r |
2ef2b01e A |
8 | are licensed and made available under the terms and conditions of the BSD License\r |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | \r | |
19 | \r | |
20 | VOID\r | |
21 | LibResetInitializeReset (\r | |
22 | VOID\r | |
23 | )\r | |
24 | {\r | |
25 | }\r | |
26 | \r | |
27 | VOID\r | |
28 | LibResetVirtualAddressChangeEvent (\r | |
29 | VOID\r | |
30 | )\r | |
31 | {\r | |
32 | }\r | |
33 | \r | |
34 | \r | |
35 | VOID\r | |
36 | LibResetSystem (\r | |
37 | IN EFI_RESET_TYPE ResetType,\r | |
38 | IN EFI_STATUS ResetStatus,\r | |
39 | IN UINTN DataSize,\r | |
40 | IN CHAR16 *ResetData OPTIONAL\r | |
41 | )\r | |
42 | {\r | |
43 | UINT8 Data;\r | |
44 | \r | |
45 | switch (ResetType) {\r | |
46 | case EfiResetWarm:\r | |
47 | case EfiResetCold:\r | |
48 | case EfiResetShutdown:\r | |
49 | Data = IoRead8 (0x92);\r | |
50 | Data |= 1;\r | |
51 | IoWrite8 (0x92, Data);\r | |
52 | break;\r | |
53 | \r | |
54 | default:\r | |
55 | return ;\r | |
56 | }\r | |
57 | \r | |
58 | //\r | |
59 | // Given we should have reset getting here would be bad\r | |
60 | //\r | |
61 | ASSERT (FALSE);\r | |
62 | }\r | |
63 | \r |