]> git.proxmox.com Git - mirror_edk2.git/blame - 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
CommitLineData
0e047a2a
RN
1/*++ @file\r
2 Some definitions for reset.\r
3\r
4Copyright (c) 2006 - 2010, Intel Corporation \r
5All rights reserved. This program and the accompanying materials \r
6are licensed and made available under the terms and conditions of the BSD License \r
7which accompanies this distribution. The full text of the license may be found at \r
8http://opensource.org/licenses/bsd-license.php \r
9 \r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13--*/\r
14\r
15#ifndef _ACPI_RESET_H\r
16#define _ACPI_RESET_H\r
17\r
18#include <PiDxe.h>\r
19\r
20#include <Library/BaseLib.h>\r
21#include <Library/IoLib.h>\r
22#include <Library/PciLib.h>\r
23#include <Library/HobLib.h>\r
24#include <Library/DebugLib.h>\r
25#include <Library/BaseMemoryLib.h>\r
26#include <Library/UefiBootServicesTableLib.h>\r
27\r
28#include <Protocol/Reset.h>\r
29#include <Guid/AcpiDescription.h>\r
30\r
31/**\r
32 Initialize the state information for the Reset Architectural Protocol.\r
33\r
34 @param[in] ImageHandle Image handle of the loaded driver\r
35 @param[in] SystemTable Pointer to the System Table\r
36\r
37 @retval EFI_SUCCESS Thread can be successfully created\r
38 @retval EFI_UNSUPPORTED Cannot find the info to reset system\r
39\r
40**/\r
41EFI_STATUS\r
42EFIAPI\r
43InitializeReset (\r
44 IN EFI_HANDLE ImageHandle,\r
45 IN EFI_SYSTEM_TABLE *SystemTable\r
46 )\r
47;\r
48\r
49/**\r
50 Reset the system.\r
51\r
52 @param[in] ResetType Warm or cold\r
53 @param[in] ResetStatus Possible cause of reset\r
54 @param[in] DataSize Size of ResetData in bytes\r
55 @param[in] ResetData Optional Unicode string\r
56\r
57**/\r
58VOID\r
59EFIAPI\r
60AcpiResetSystem (\r
61 IN EFI_RESET_TYPE ResetType,\r
62 IN EFI_STATUS ResetStatus,\r
63 IN UINTN DataSize,\r
64 IN CHAR16 *ResetData, OPTIONAL\r
65 IN EFI_ACPI_DESCRIPTION *AcpiDescription\r
66 )\r
67;\r
68\r
69BOOLEAN\r
70GetAcpiDescription (\r
71 IN EFI_ACPI_DESCRIPTION *AcpiDescription\r
72 );\r
73\r
74#endif\r