]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/AcpiResetDxe/Reset.h
Port AcpiResetDxe from EDK to EDKII to enable reset function on DUET above legacy...
[mirror_edk2.git] / DuetPkg / AcpiResetDxe / Reset.h
1 /*++ @file
2 Some definitions for reset.
3
4 Copyright (c) 2006 - 2010, Intel Corporation
5 All rights reserved. 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 #ifndef _ACPI_RESET_H
16 #define _ACPI_RESET_H
17
18 #include <PiDxe.h>
19
20 #include <Library/BaseLib.h>
21 #include <Library/IoLib.h>
22 #include <Library/PciLib.h>
23 #include <Library/HobLib.h>
24 #include <Library/DebugLib.h>
25 #include <Library/BaseMemoryLib.h>
26 #include <Library/UefiBootServicesTableLib.h>
27
28 #include <Protocol/Reset.h>
29 #include <Guid/AcpiDescription.h>
30
31 /**
32 Initialize the state information for the Reset Architectural Protocol.
33
34 @param[in] ImageHandle Image handle of the loaded driver
35 @param[in] SystemTable Pointer to the System Table
36
37 @retval EFI_SUCCESS Thread can be successfully created
38 @retval EFI_UNSUPPORTED Cannot find the info to reset system
39
40 **/
41 EFI_STATUS
42 EFIAPI
43 InitializeReset (
44 IN EFI_HANDLE ImageHandle,
45 IN EFI_SYSTEM_TABLE *SystemTable
46 )
47 ;
48
49 /**
50 Reset the system.
51
52 @param[in] ResetType Warm or cold
53 @param[in] ResetStatus Possible cause of reset
54 @param[in] DataSize Size of ResetData in bytes
55 @param[in] ResetData Optional Unicode string
56
57 **/
58 VOID
59 EFIAPI
60 AcpiResetSystem (
61 IN EFI_RESET_TYPE ResetType,
62 IN EFI_STATUS ResetStatus,
63 IN UINTN DataSize,
64 IN CHAR16 *ResetData, OPTIONAL
65 IN EFI_ACPI_DESCRIPTION *AcpiDescription
66 )
67 ;
68
69 BOOLEAN
70 GetAcpiDescription (
71 IN EFI_ACPI_DESCRIPTION *AcpiDescription
72 );
73
74 #endif