]> git.proxmox.com Git - mirror_edk2.git/blame - PcAtChipsetPkg/KbcResetDxe/ResetEntry.c
Refine the file/function comments to follow doxygen format
[mirror_edk2.git] / PcAtChipsetPkg / KbcResetDxe / ResetEntry.c
CommitLineData
18c97f53 1/** @file\r
2 Driver entry for KbcReset driver.\r
c69dd9df 3\r
18c97f53 4Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>\r
5This program and the accompanying materials \r
c69dd9df 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
18c97f53 12**/\r
c69dd9df 13\r
14#include "Reset.h"\r
15\r
16//\r
17// The handle onto which the Reset Architectural Protocol is installed\r
18//\r
19EFI_HANDLE mResetHandle = NULL;\r
20\r
21\r
18c97f53 22/**\r
23 Initialize the state information for the Reset Architectural Protocol\r
24\r
25 @param ImageHandle Handle of the loaded driver \r
26 @param SystemTable Pointer to the System Table\r
27\r
28 @retval EFI_SUCCESS Thread can be successfully created\r
29 @retval EFI_OUT_OF_RESOURCES Cannot allocate protocol data structure\r
30 @retval EFI_DEVICE_ERROR Cannot create the timer service\r
31\r
32**/\r
c69dd9df 33EFI_STATUS\r
34EFIAPI\r
35InitializeReset (\r
36 IN EFI_HANDLE ImageHandle,\r
37 IN EFI_SYSTEM_TABLE *SystemTable\r
38 )\r
c69dd9df 39{\r
40 EFI_STATUS Status;\r
41\r
42 //\r
43 // Make sure the Reset Architectural Protocol is not already installed in the system\r
44 //\r
45 ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiResetArchProtocolGuid);\r
46\r
47 //\r
48 // Hook the runtime service table\r
49 //\r
50 SystemTable->RuntimeServices->ResetSystem = KbcResetSystem;\r
51\r
52 //\r
53 // Now install the Reset RT AP on a new handle\r
54 //\r
55 Status = gBS->InstallMultipleProtocolInterfaces (\r
56 &mResetHandle,\r
57 &gEfiResetArchProtocolGuid,\r
58 NULL,\r
59 NULL\r
60 );\r
61 ASSERT_EFI_ERROR (Status);\r
62\r
63 return Status;\r
64}\r