]> git.proxmox.com Git - mirror_edk2.git/blame - Nt32Pkg/ResetRuntimeDxe/reset.c
delete dxs file
[mirror_edk2.git] / Nt32Pkg / ResetRuntimeDxe / reset.c
CommitLineData
8681bee2 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 Reset.c\r
15\r
16Abstract:\r
17\r
18 Reset Architectural Protocol as defined in Tiano under NT Emulation\r
19\r
20--*/\r
21\r
22\r
23\r
24//\r
25// Include common header file for this module.\r
26//\r
27#include "CommonHeader.h"\r
28\r
29EFI_STATUS\r
30EFIAPI\r
31InitializeNtReset (\r
32 IN EFI_HANDLE ImageHandle,\r
33 IN EFI_SYSTEM_TABLE *SystemTable\r
34 );\r
35\r
36STATIC\r
37EFI_STATUS\r
38EFIAPI\r
39WinNtResetSystem (\r
40 IN EFI_RESET_TYPE ResetType,\r
41 IN EFI_STATUS ResetStatus,\r
42 IN UINTN DataSize,\r
43 IN CHAR16 *ResetData OPTIONAL\r
44 );\r
45\r
46\r
47EFI_STATUS\r
48EFIAPI\r
49InitializeNtReset (\r
50 IN EFI_HANDLE ImageHandle,\r
51 IN EFI_SYSTEM_TABLE *SystemTable\r
52 )\r
53/*++\r
54\r
55Routine Description:\r
56\r
57\r
58Arguments:\r
59\r
60 ImageHandle of the loaded driver\r
61 Pointer to the System Table\r
62\r
63Returns:\r
64\r
65 Status\r
66--*/\r
67// TODO: SystemTable - add argument and description to function comment\r
68{\r
69 EFI_STATUS Status;\r
70 EFI_HANDLE Handle;\r
71\r
72 SystemTable->RuntimeServices->ResetSystem = WinNtResetSystem;\r
73\r
74 Handle = NULL;\r
75 Status = gBS->InstallMultipleProtocolInterfaces (\r
76 &Handle,\r
77 &gEfiResetArchProtocolGuid,\r
78 NULL,\r
79 NULL\r
80 );\r
81 ASSERT_EFI_ERROR (Status);\r
82\r
83 return Status;\r
84}\r
85\r
86STATIC\r
87EFI_STATUS\r
88EFIAPI\r
89WinNtResetSystem (\r
90 IN EFI_RESET_TYPE ResetType,\r
91 IN EFI_STATUS ResetStatus,\r
92 IN UINTN DataSize,\r
93 IN CHAR16 *ResetData OPTIONAL\r
94 )\r
95/*++\r
96\r
97Routine Description:\r
98\r
99 TODO: Add function description\r
100\r
101Arguments:\r
102\r
103 ResetType - TODO: add argument description\r
104 ResetStatus - TODO: add argument description\r
105 DataSize - TODO: add argument description\r
106 ResetData - TODO: add argument description\r
107\r
108Returns:\r
109\r
110 EFI_SUCCESS - TODO: Add description for return value\r
111\r
112--*/\r
113{\r
114 //\r
115 // BUGBUG Need to kill all console windows later\r
116 //\r
117 //\r
118 // Discard ResetType, always return 0 as exit code\r
119 //\r
120 gWinNt->ExitProcess (0);\r
121\r
122 //\r
123 // Should never go here\r
124 //\r
125 return EFI_SUCCESS;\r
126}\r