]> 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 f08de5767a379f642cf3ebf0eac9f1efaf3c7ce1..31e1c5100effc88ff9ff970b45293d51d95fc2d1 100644 (file)
@@ -1,22 +1,21 @@
 /** @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
- Copyright (c) 2009 Apple, Inc.  All rights reserved.                                                \r
- Portions copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
 \r
+  Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r
 \r
- This document is the property of Apple, Inc.\r
- It is considered confidential and proprietary.\r
\r
- This document may not be reproduced or transmitted in any form,\r
- in whole or in part, without the express written permission of\r
- Apple, Inc.\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
@@ -43,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
@@ -59,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
@@ -73,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
@@ -87,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
@@ -98,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
@@ -115,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
@@ -130,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
@@ -139,12 +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