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