]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootOptionSupport.c
ArmPlatformPkg/Bds: Add a signature in front of the Boot Argument propoer to this Bds
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootOptionSupport.c
index a7e83b828b99ffeea510ba3570bfe458bc28148f..4c37c9de8831e00d8c96ecff2a02828aa79c1b47 100644 (file)
@@ -35,7 +35,7 @@ EFI_STATUS
 BdsLoadOptionFileSystemCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   );\r
 \r
@@ -43,7 +43,7 @@ EFI_STATUS
 BdsLoadOptionFileSystemUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   );\r
 \r
@@ -61,7 +61,7 @@ EFI_STATUS
 BdsLoadOptionMemMapCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   );\r
 \r
@@ -69,7 +69,7 @@ EFI_STATUS
 BdsLoadOptionMemMapUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   );\r
 \r
@@ -87,7 +87,7 @@ EFI_STATUS
 BdsLoadOptionPxeCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   );\r
 \r
@@ -95,7 +95,7 @@ EFI_STATUS
 BdsLoadOptionPxeUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   );\r
 \r
@@ -113,7 +113,7 @@ EFI_STATUS
 BdsLoadOptionTftpCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   );\r
 \r
@@ -121,7 +121,7 @@ EFI_STATUS
 BdsLoadOptionTftpUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   );\r
 \r
@@ -131,34 +131,34 @@ BdsLoadOptionTftpIsSupported (
   );\r
 \r
 BDS_LOAD_OPTION_SUPPORT BdsLoadOptionSupportList[] = {\r
-    {\r
-        BDS_DEVICE_FILESYSTEM,\r
-        BdsLoadOptionFileSystemList,\r
-        BdsLoadOptionFileSystemIsSupported,\r
-        BdsLoadOptionFileSystemCreateDevicePath,\r
-        BdsLoadOptionFileSystemUpdateDevicePath\r
-    },\r
-    {\r
-        BDS_DEVICE_MEMMAP,\r
-        BdsLoadOptionMemMapList,\r
-        BdsLoadOptionMemMapIsSupported,\r
-        BdsLoadOptionMemMapCreateDevicePath,\r
-        BdsLoadOptionMemMapUpdateDevicePath\r
-    },\r
-    {\r
-        BDS_DEVICE_PXE,\r
-        BdsLoadOptionPxeList,\r
-        BdsLoadOptionPxeIsSupported,\r
-        BdsLoadOptionPxeCreateDevicePath,\r
-        BdsLoadOptionPxeUpdateDevicePath\r
-    },\r
-    {\r
-        BDS_DEVICE_TFTP,\r
-        BdsLoadOptionTftpList,\r
-        BdsLoadOptionTftpIsSupported,\r
-        BdsLoadOptionTftpCreateDevicePath,\r
-        BdsLoadOptionTftpUpdateDevicePath\r
-    }\r
+  {\r
+    BDS_DEVICE_FILESYSTEM,\r
+    BdsLoadOptionFileSystemList,\r
+    BdsLoadOptionFileSystemIsSupported,\r
+    BdsLoadOptionFileSystemCreateDevicePath,\r
+    BdsLoadOptionFileSystemUpdateDevicePath\r
+  },\r
+  {\r
+    BDS_DEVICE_MEMMAP,\r
+    BdsLoadOptionMemMapList,\r
+    BdsLoadOptionMemMapIsSupported,\r
+    BdsLoadOptionMemMapCreateDevicePath,\r
+    BdsLoadOptionMemMapUpdateDevicePath\r
+  },\r
+  {\r
+    BDS_DEVICE_PXE,\r
+    BdsLoadOptionPxeList,\r
+    BdsLoadOptionPxeIsSupported,\r
+    BdsLoadOptionPxeCreateDevicePath,\r
+    BdsLoadOptionPxeUpdateDevicePath\r
+  },\r
+  {\r
+    BDS_DEVICE_TFTP,\r
+    BdsLoadOptionTftpList,\r
+    BdsLoadOptionTftpIsSupported,\r
+    BdsLoadOptionTftpCreateDevicePath,\r
+    BdsLoadOptionTftpUpdateDevicePath\r
+  }\r
 };\r
 \r
 EFI_STATUS\r
@@ -172,7 +172,7 @@ BootDeviceListSupportedInit (
   InitializeListHead (SupportedDeviceList);\r
 \r
   for (Index = 0; Index < BDS_DEVICE_MAX; Index++) {\r
-    BdsLoadOptionSupportList[Index].ListDevices(SupportedDeviceList);\r
+    BdsLoadOptionSupportList[Index].ListDevices (SupportedDeviceList);\r
   }\r
 \r
   return EFI_SUCCESS;\r
@@ -192,7 +192,7 @@ BootDeviceListSupportedFree (
     SupportedDevice = SUPPORTED_BOOT_DEVICE_FROM_LINK(Entry);\r
     Entry = RemoveEntryList (Entry);\r
     if (SupportedDevice != Except) {\r
-      FreePool(SupportedDevice);\r
+      FreePool (SupportedDevice);\r
     }\r
   }\r
 \r
@@ -222,7 +222,7 @@ STATIC
 EFI_STATUS\r
 BootDeviceGetType (\r
   IN  CHAR16* FileName,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   )\r
 {\r
@@ -295,7 +295,7 @@ BdsLoadOptionFileSystemList (
     Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID **)&DevicePathProtocol);\r
     if (!EFI_ERROR(Status)) {\r
       // Allocate BDS Supported Device structure\r
-      SupportedDevice = (BDS_SUPPORTED_DEVICE*)AllocatePool(sizeof(BDS_SUPPORTED_DEVICE));\r
+      SupportedDevice = (BDS_SUPPORTED_DEVICE*)AllocatePool (sizeof(BDS_SUPPORTED_DEVICE));\r
 \r
       FileProtocol = NULL;\r
       Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiSimpleFileSystemProtocolGuid, (VOID **)&FileProtocol);\r
@@ -329,7 +329,7 @@ EFI_STATUS
 BdsLoadOptionFileSystemCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   )\r
 {\r
@@ -373,7 +373,7 @@ EFI_STATUS
 BdsLoadOptionFileSystemUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   )\r
 {\r
@@ -527,7 +527,7 @@ EFI_STATUS
 BdsLoadOptionMemMapCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   )\r
 {\r
@@ -549,7 +549,7 @@ BdsLoadOptionMemMapCreateDevicePath (
   }\r
 \r
   // Create the MemMap Device Path Node\r
-  MemMapDevicePath = (MEMMAP_DEVICE_PATH*)AllocatePool(sizeof(MEMMAP_DEVICE_PATH));\r
+  MemMapDevicePath = (MEMMAP_DEVICE_PATH*)AllocatePool (sizeof(MEMMAP_DEVICE_PATH));\r
   MemMapDevicePath->Header.Type = HARDWARE_DEVICE_PATH;\r
   MemMapDevicePath->Header.SubType = HW_MEMMAP_DP;\r
   MemMapDevicePath->MemoryType = EfiBootServicesData;\r
@@ -570,7 +570,7 @@ EFI_STATUS
 BdsLoadOptionMemMapUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   )\r
 {\r
@@ -674,7 +674,7 @@ EFI_STATUS
 BdsLoadOptionPxeCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   )\r
 {\r
@@ -688,7 +688,7 @@ EFI_STATUS
 BdsLoadOptionPxeUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   )\r
 {\r
@@ -775,7 +775,7 @@ EFI_STATUS
 BdsLoadOptionTftpCreateDevicePath (\r
   IN  BDS_SUPPORTED_DEVICE* BdsLoadOption,\r
   OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathNode,\r
-  OUT BDS_LOADER_TYPE   *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE   *BootType,\r
   OUT UINT32      *Attributes\r
   )\r
 {\r
@@ -854,7 +854,7 @@ EFI_STATUS
 BdsLoadOptionTftpUpdateDevicePath (\r
   IN EFI_DEVICE_PATH *OldDevicePath,\r
   OUT EFI_DEVICE_PATH_PROTOCOL** NewDevicePath,\r
-  OUT BDS_LOADER_TYPE *BootType,\r
+  OUT ARM_BDS_LOADER_TYPE *BootType,\r
   OUT UINT32 *Attributes\r
   )\r
 {\r