3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
22 ResetEsalServicesClassCommonEntry (
31 IN SAL_EXTENDED_SAL_PROC ExtendedSalProc
,
32 IN BOOLEAN VirtualMode
,
39 Main entry for Extended SAL Reset Services
43 FunctionId Function Id which needed to be called.
44 Arg2 EFI_RESET_TYPE, whether WARM of COLD reset
46 Arg4 Data Size of UNICODE STRING passed in ARG5
47 Arg5 Unicode String which CHAR16*
54 // TODO: Arg6 - add argument and description to function comment
55 // TODO: Arg7 - add argument and description to function comment
56 // TODO: Arg8 - add argument and description to function comment
57 // TODO: ExtendedSalProc - add argument and description to function comment
58 // TODO: VirtualMode - add argument and description to function comment
59 // TODO: Global - add argument and description to function comment
61 SAL_RETURN_REGS ReturnVal
;
65 KbcResetSystem (Arg2
, Arg3
, (UINTN
) Arg4
, (VOID
*) Arg5
);
66 ReturnVal
.Status
= EFI_SUCCESS
;
70 ReturnVal
.Status
= EFI_SAL_INVALID_ARGUMENT
;
80 IN EFI_HANDLE ImageHandle
,
81 IN EFI_SYSTEM_TABLE
*SystemTable
87 Initialize the state information for the Reset Architectural Protocol
91 ImageHandle of the loaded driver
92 Pointer to the System Table
98 EFI_SUCCESS - thread can be successfully created
99 EFI_OUT_OF_RESOURCES - cannot allocate protocol data structure
100 EFI_DEVICE_ERROR - cannot create the timer service
103 // TODO: SystemTable - add argument and description to function comment
105 EfiInitializeRuntimeDriverLib (ImageHandle
, SystemTable
, NULL
);
108 &gEfiExtendedSalResetServicesProtocolGuid
,
110 ResetEsalServicesClassCommonEntry
,