]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Bds/FirmwareVolume.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / BeagleBoardPkg / Bds / FirmwareVolume.c
index 142095fa661eda4aef52172f1ae51e85b5ff9c0e..31e1c5100effc88ff9ff970b45293d51d95fc2d1 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements \r
-  of the UEFI specification as it is designed to implement an embedded systmes \r
+  The entry of the embedded BDS. This BDS does not follow the Boot Manager requirements\r
+  of the UEFI specification as it is designed to implement an embedded systmes\r
   propriatary boot scheme.\r
 \r
-  This template assume a DXE driver produces a SerialIo protocol not using the EFI \r
+  This template assume a DXE driver produces a SerialIo protocol not using the EFI\r
   driver module and it will attempt to connect a console on top of this.\r
 \r
-  \r
+\r
   Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+\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
@@ -42,14 +42,14 @@ FindApplicationMatchingUiSection (
   UINTN                         UiStringLen;\r
   CHAR16                        *UiSection;\r
   UINT32                        Authentication;\r
-  \r
-  \r
+\r
+\r
   UiStringLen = 0;\r
   if (UiString != NULL) {\r
     DEBUG ((DEBUG_ERROR, "UiString %s\n", UiString));\r
     UiStringLen = StrLen (UiString);\r
   }\r
-  \r
+\r
   Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiFirmwareVolume2ProtocolGuid, NULL, &NoHandles, &Buffer);\r
   if (!EFI_ERROR (Status)) {\r
     for (Index = 0; Index < NoHandles; Index++) {\r
@@ -58,9 +58,9 @@ FindApplicationMatchingUiSection (
         Key = AllocatePool (Fv->KeySize);\r
         ASSERT (Key != NULL);\r
         ZeroMem (Key, Fv->KeySize);\r
-        \r
+\r
         FileType = EFI_FV_FILETYPE_APPLICATION;\r
-        \r
+\r
         do {\r
           NextStatus = Fv->GetNextFile (Fv, Key, &FileType, NameGuid, &Attributes, &Size);\r
           if (!EFI_ERROR (NextStatus)) {\r
@@ -72,12 +72,12 @@ FindApplicationMatchingUiSection (
               FreePool (Key);\r
               return Status;\r
             }\r
-            \r
+\r
             UiSection = NULL;\r
             Status = Fv->ReadSection (\r
-                          Fv, \r
-                          NameGuid, \r
-                          EFI_SECTION_USER_INTERFACE, \r
+                          Fv,\r
+                          NameGuid,\r
+                          EFI_SECTION_USER_INTERFACE,\r
                           0,\r
                           (VOID **)&UiSection,\r
                           &Size,\r
@@ -86,7 +86,7 @@ FindApplicationMatchingUiSection (
             if (!EFI_ERROR (Status)) {\r
               if (StrnCmp (UiString, UiSection, UiStringLen) == 0) {\r
                 //\r
-                // We found a UiString match. \r
+                // We found a UiString match.\r
                 //\r
                 *FvHandle = Buffer[Index];\r
                 FreePool (Key);\r
@@ -97,11 +97,11 @@ FindApplicationMatchingUiSection (
             }\r
           }\r
         } while (!EFI_ERROR (NextStatus));\r
-        \r
+\r
         FreePool (Key);\r
       }\r
     }\r
-    \r
+\r
     FreePool (Buffer);\r
    }\r
 \r
@@ -114,14 +114,14 @@ FvFileDevicePath (
   IN  EFI_HANDLE   FvHandle,\r
   IN  EFI_GUID     *NameGuid\r
   )\r
-{ \r
+{\r
   EFI_DEVICE_PATH_PROTOCOL          *DevicePath;\r
   MEDIA_FW_VOL_FILEPATH_DEVICE_PATH NewNode;\r
 \r
   DevicePath = DevicePathFromHandle (FvHandle);\r
 \r
   EfiInitializeFwVolDevicepathNode (&NewNode, NameGuid);\r
-  \r
+\r
   return AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *)&NewNode);\r
 }\r
 \r
@@ -129,7 +129,7 @@ FvFileDevicePath (
 \r
 EFI_STATUS\r
 LoadPeCoffSectionFromFv (\r
- IN  EFI_HANDLE   FvHandle,  \r
+ IN  EFI_HANDLE   FvHandle,\r
  IN  EFI_GUID     *NameGuid\r
  )\r
 {\r
@@ -138,13 +138,13 @@ LoadPeCoffSectionFromFv (
   EFI_HANDLE                    ImageHandle;\r
 \r
   DevicePath = FvFileDevicePath (FvHandle, NameGuid);\r
-    \r
+\r
   Status = gBS->LoadImage (TRUE, gImageHandle, DevicePath, NULL, 0, &ImageHandle);\r
   if (!EFI_ERROR (Status)) {\r
     PERF_END (NULL, "BDS", NULL, 0);\r
     Status = gBS->StartImage (ImageHandle, NULL, NULL);\r
   }\r
-  \r
+\r
   return Status;\r
 }\r
\r
+\r