]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/ResetRuntimeDxe/reset.c
MdePkg: Add BootManagerPolicy protocol definition.
[mirror_edk2.git] / Nt32Pkg / ResetRuntimeDxe / reset.c
index a4df52f19a3538b4f2d00814a6d6637fe1b87510..468f7128fb96b87d3b97734a1db4e7f0b5c361fe 100644 (file)
@@ -1,7 +1,7 @@
-/*++\r
+/**@file\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -17,14 +17,16 @@ Abstract:
 \r
   Reset Architectural Protocol as defined in Tiano under NT Emulation\r
 \r
---*/\r
-\r
+**/\r
 \r
+#include <Uefi.h>\r
+#include <WinNtDxe.h>\r
+#include <Protocol/Reset.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiDriverEntryPoint.h>\r
+#include <Library/WinNtLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
 \r
 EFI_STATUS\r
 EFIAPI\r
@@ -33,14 +35,13 @@ InitializeNtReset (
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   );\r
 \r
-STATIC\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 WinNtResetSystem (\r
   IN EFI_RESET_TYPE   ResetType,\r
   IN EFI_STATUS       ResetStatus,\r
   IN UINTN            DataSize,\r
-  IN CHAR16           *ResetData OPTIONAL\r
+  IN VOID             *ResetData OPTIONAL\r
   );\r
 \r
 \r
@@ -83,14 +84,13 @@ Returns:
   return Status;\r
 }\r
 \r
-STATIC\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 WinNtResetSystem (\r
   IN EFI_RESET_TYPE   ResetType,\r
   IN EFI_STATUS       ResetStatus,\r
   IN UINTN            DataSize,\r
-  IN CHAR16           *ResetData OPTIONAL\r
+  IN VOID             *ResetData OPTIONAL\r
   )\r
 /*++\r
 \r
@@ -122,5 +122,5 @@ Returns:
   //\r
   // Should never go here\r
   //\r
-  return EFI_SUCCESS;\r
+  ASSERT (FALSE);\r
 }\r