]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/BootModePei/BootModePei.c
Move Smbios measurement from TCG driver to Smbios driver.
[mirror_edk2.git] / Nt32Pkg / BootModePei / BootModePei.c
index d68f1d94d8988016abd0a35d6a038c8a2e8326a6..4f67b4b83a8d20b1f71dbb4496fb7add4af7f109 100644 (file)
@@ -1,7 +1,7 @@
 /**@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
@@ -55,8 +55,8 @@ EFI_PEI_PPI_DESCRIPTOR  mPpiListRecoveryBootMode = {
 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
@@ -66,14 +66,14 @@ Routine Description:
 \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
@@ -86,14 +86,14 @@ Returns:
   //\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