]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c
Fix the bug that definition of EFI_DISPATCH_OPROM_TABLE does not follow Framework...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVol / FwVolWrite.c
index a053a96d43c7c4d59a9be49e64f2e102c7205b5f..1ec563c8655e9a885c7b385ad4e372883c2cc532 100644 (file)
@@ -1,21 +1,42 @@
-/** @file \r
-\r
+/** @file\r
   Implements functions to write firmware file\r
 \r
-Copyright (c) 2006 - 2008, 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 - 2008, 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
+\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
 \r
 **/\r
 \r
-#include <DxeMain.h>\r
+#include "DxeMain.h"\r
+#include "FwVolDriver.h"\r
+\r
+\r
+/**\r
+  Writes one or more files to the firmware volume.\r
 \r
+  @param  This                   Indicates the calling context.\r
+  @param  NumberOfFiles          Number of files.\r
+  @param  WritePolicy            WritePolicy indicates the level of reliability\r
+                                 for the write in the event of a power failure or\r
+                                 other system failure during the write operation.\r
+  @param  FileData               FileData is an pointer to an array of\r
+                                 EFI_FV_WRITE_DATA. Each element of array\r
+                                 FileData represents a file to be written.\r
 \r
+  @retval EFI_SUCCESS            Files successfully written to firmware volume\r
+  @retval EFI_OUT_OF_RESOURCES   Not enough buffer to be allocated.\r
+  @retval EFI_DEVICE_ERROR       Device error.\r
+  @retval EFI_WRITE_PROTECTED    Write protected.\r
+  @retval EFI_NOT_FOUND          Not found.\r
+  @retval EFI_INVALID_PARAMETER  Invalid parameter.\r
+  @retval EFI_UNSUPPORTED        This function not supported.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 FvWriteFile (\r
@@ -24,31 +45,8 @@ FvWriteFile (
   IN       EFI_FV_WRITE_POLICY            WritePolicy,\r
   IN       EFI_FV_WRITE_FILE_DATA         *FileData\r
   )\r
-/*++\r
-\r
-    Routine Description:\r
-      Writes one or more files to the firmware volume.\r
-\r
-    Arguments:\r
-    This            - Indicates the calling context.\r
-    NumberOfFiles   - Number of files.\r
-    WritePolicy     - WritePolicy indicates the level of reliability for\r
-                      the write in the event of a power failure or other\r
-                      system failure during the write operation.\r
-    FileData        - FileData is an pointer to an array of EFI_FV_WRITE_DATA.\r
-                      Each element of FileData[] represents a file to be written.\r
-\r
-    Returns:\r
-      EFI_SUCCESS                   - Files successfully written to firmware volume\r
-      EFI_OUT_OF_RESOURCES          - Not enough buffer to be allocated.\r
-      EFI_DEVICE_ERROR              - Device error.\r
-      EFI_WRITE_PROTECTED           - Write protected.\r
-      EFI_NOT_FOUND                 - Not found.\r
-      EFI_INVALID_PARAMETER         - Invalid parameter.\r
-      EFI_UNSUPPORTED               - This function not supported.\r
-\r
---*/\r
-{ \r
+{\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
+\r