/**@file\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. 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
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
Module Name:\r
\r
EFI_STATUS\r
EFIAPI\r
InitializeBootMode (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
+ IN EFI_PEI_FILE_HANDLE FileHandle,\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
/*++\r
\r
\r
Arguments:\r
\r
- PeiServices - General purpose services available to every PEIM.\r
+ FileHandle - Handle of the file being invoked.\r
+ PeiServices - Describes the list of possible PEI Services.\r
\r
Returns:\r
\r
Status - EFI_SUCCESS if the boot mode could be set\r
\r
--*/\r
-// TODO: FfsHeader - add argument and description to function comment\r
{\r
EFI_STATUS Status;\r
UINTN BootMode;\r
//\r
BootMode = BOOT_WITH_FULL_CONFIGURATION;\r
\r
- Status = (**PeiServices).SetBootMode ((const EFI_PEI_SERVICES **)PeiServices, (UINT8) BootMode);\r
+ Status = (**PeiServices).SetBootMode (PeiServices, (UINT8) BootMode);\r
ASSERT_EFI_ERROR (Status);\r
\r
- Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListBootMode);\r
+ Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListBootMode);\r
ASSERT_EFI_ERROR (Status);\r
\r
if (BootMode == BOOT_IN_RECOVERY_MODE) {\r
- Status = (**PeiServices).InstallPpi ((const EFI_PEI_SERVICES **)PeiServices, &mPpiListRecoveryBootMode);\r
+ Status = (**PeiServices).InstallPpi (PeiServices, &mPpiListRecoveryBootMode);\r
ASSERT_EFI_ERROR (Status);\r
}\r
\r