VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.c@ 61380

最後變更 在這個檔案從61380是 48674,由 vboxsync 提交於 11 年 前

EFI: Export newly imported tinaocore UEFI sources to OSE.

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.9 KB
 
1/** @file
2 Reset System Library functions for PCAT platforms
3
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#include <Base.h>
16
17#include <Library/DebugLib.h>
18#include <Library/IoLib.h>
19
20/**
21 Calling this function causes a system-wide reset. This sets
22 all circuitry within the system to its initial state. This type of reset
23 is asynchronous to system operation and operates without regard to
24 cycle boundaries.
25
26 System reset should not return, if it returns, it means the system does
27 not support cold reset.
28**/
29VOID
30EFIAPI
31ResetCold (
32 VOID
33 )
34{
35 IoWrite8 (0x64, 0xfe);
36}
37
38/**
39 Calling this function causes a system-wide initialization. The processors
40 are set to their initial state, and pending cycles are not corrupted.
41
42 System reset should not return, if it returns, it means the system does
43 not support warm reset.
44**/
45VOID
46EFIAPI
47ResetWarm (
48 VOID
49 )
50{
51 IoWrite8 (0x64, 0xfe);
52}
53
54/**
55 Calling this function causes the system to enter a power state equivalent
56 to the ACPI G2/S5 or G3 states.
57
58 System shutdown should not return, if it returns, it means the system does
59 not support shut down reset.
60**/
61VOID
62EFIAPI
63ResetShutdown (
64 VOID
65 )
66{
67 ASSERT (FALSE);
68}
69
70
71/**
72 Calling this function causes the system to enter a power state for capsule
73 update.
74
75 Reset update should not return, if it returns, it means the system does
76 not support capsule update.
77
78**/
79VOID
80EFIAPI
81EnterS3WithImmediateWake (
82 VOID
83 )
84{
85 ASSERT (FALSE);
86}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette