]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c
OvmfPkg: QemuFlashFvbServicesRuntimeDxe: rewrap source code to 79 chars
[mirror_edk2.git] / OvmfPkg / QemuFlashFvbServicesRuntimeDxe / FvbInfo.c
index 4eb69616b38a1aa0fb1f1c3818112094ef36bb4e..ec6bfdb24b43f5f505cc0b66a7c4bcc085ee9280 100644 (file)
@@ -1,22 +1,23 @@
 /**@file\r
 \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
+  Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\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
+  This program and the accompanying materials are licensed and made available\r
+  under the terms and conditions of the BSD License which accompanies this\r
+  distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-Module Name:\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
-  FvbInfo.c\r
+  Module Name:\r
 \r
-Abstract:\r
+    FvbInfo.c\r
 \r
-  Defines data structure that is the volume header found.These data is intent\r
-  to decouple FVB driver with FV header.\r
+  Abstract:\r
+\r
+    Defines data structure that is the volume header found.These data is intent\r
+    to decouple FVB driver with FV header.\r
 \r
 **/\r
 \r
@@ -94,7 +95,8 @@ EFI_FVB_MEDIA_INFO  mPlatformFvbMediaInfo[] = {
           (FixedPcdGet32 (PcdFlashNvStorageVariableSize) +\r
            FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) +\r
            FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) +\r
-           FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) / FixedPcdGet32 (PcdOvmfFirmwareBlockSize),\r
+           FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) /\r
+          FixedPcdGet32 (PcdOvmfFirmwareBlockSize),\r
           FixedPcdGet32 (PcdOvmfFirmwareBlockSize),\r
         }\r
       } // BlockMap[1]\r
@@ -118,7 +120,9 @@ GetFvbInfo (
   UINTN Index;\r
 \r
   if (!Checksummed) {\r
-    for (Index = 0; Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO); Index += 1) {\r
+    for (Index = 0;\r
+         Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO);\r
+         Index += 1) {\r
       UINT16 Checksum;\r
       mPlatformFvbMediaInfo[Index].FvbInfo.Checksum = 0;\r
       Checksum = CalculateCheckSum16 (\r
@@ -130,7 +134,9 @@ GetFvbInfo (
     Checksummed = TRUE;\r
   }\r
 \r
-  for (Index = 0; Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO); Index += 1) {\r
+  for (Index = 0;\r
+       Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO);\r
+       Index += 1) {\r
     if (mPlatformFvbMediaInfo[Index].FvLength == FvLength) {\r
       *FvbInfo = &mPlatformFvbMediaInfo[Index].FvbInfo;\r
       return EFI_SUCCESS;\r