]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / InternalBm.h
index ac866ac25fd6f78463546d6cfccf52c76c6259fd..a9b0d485cace272f6baabc9c9fbf34a662e00612 100644 (file)
@@ -72,15 +72,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #include <Library/HiiLib.h>\r
 \r
 #if !defined (EFI_REMOVABLE_MEDIA_FILE_NAME)\r
-    #if defined (MDE_CPU_EBC)\r
-        //\r
-        // Uefi specification only defines the default boot file name for IA32, X64\r
-        // and IPF processor, so need define boot file name for EBC architecture here.\r
-        //\r
-        #define EFI_REMOVABLE_MEDIA_FILE_NAME L"\\EFI\\BOOT\\BOOTEBC.EFI"\r
-    #else\r
-        #error "Can not determine the default boot file name for unknown processor type!"\r
-    #endif\r
+  #if defined (MDE_CPU_EBC)\r
+//\r
+// Uefi specification only defines the default boot file name for IA32, X64\r
+// and IPF processor, so need define boot file name for EBC architecture here.\r
+//\r
+#define EFI_REMOVABLE_MEDIA_FILE_NAME  L"\\EFI\\BOOT\\BOOTEBC.EFI"\r
+  #else\r
+    #error "Can not determine the default boot file name for unknown processor type!"\r
+  #endif\r
 #endif\r
 \r
 typedef enum {\r
@@ -95,21 +95,21 @@ typedef enum {
 \r
 typedef\r
 CHAR16 *\r
-(* BM_GET_BOOT_DESCRIPTION) (\r
-  IN EFI_HANDLE          Handle\r
+(*BM_GET_BOOT_DESCRIPTION) (\r
+  IN EFI_HANDLE  Handle\r
   );\r
 \r
 //\r
 // PlatformRecovery#### is the load option with the longest name\r
 //\r
-#define BM_OPTION_NAME_LEN                          sizeof ("PlatformRecovery####")\r
+#define BM_OPTION_NAME_LEN  sizeof ("PlatformRecovery####")\r
 extern CHAR16  *mBmLoadOptionName[];\r
 \r
 //\r
 // Maximum number of reconnect retry to repair controller; it is to limit the\r
 // number of recursive call of BmRepairAllControllers.\r
 //\r
-#define MAX_RECONNECT_REPAIR                        10\r
+#define MAX_RECONNECT_REPAIR  10\r
 \r
 /**\r
   Visitor function to be called by BmForEachVariable for each variable\r
@@ -122,9 +122,9 @@ extern CHAR16  *mBmLoadOptionName[];
 typedef\r
 VOID\r
 (*BM_VARIABLE_VISITOR) (\r
-  CHAR16                *Name,\r
-  EFI_GUID              *Guid,\r
-  VOID                  *Context\r
+  CHAR16    *Name,\r
+  EFI_GUID  *Guid,\r
+  VOID      *Context\r
   );\r
 \r
 /**\r
@@ -135,15 +135,15 @@ VOID
 **/\r
 VOID\r
 BmForEachVariable (\r
-  BM_VARIABLE_VISITOR         Visitor,\r
-  VOID                        *Context\r
+  BM_VARIABLE_VISITOR  Visitor,\r
+  VOID                 *Context\r
   );\r
 \r
-#define BM_BOOT_DESCRIPTION_ENTRY_SIGNATURE SIGNATURE_32 ('b', 'm', 'd', 'h')\r
+#define BM_BOOT_DESCRIPTION_ENTRY_SIGNATURE  SIGNATURE_32 ('b', 'm', 'd', 'h')\r
 typedef struct {\r
-  UINT32                                    Signature;\r
-  LIST_ENTRY                                Link;\r
-  EFI_BOOT_MANAGER_BOOT_DESCRIPTION_HANDLER Handler;\r
+  UINT32                                       Signature;\r
+  LIST_ENTRY                                   Link;\r
+  EFI_BOOT_MANAGER_BOOT_DESCRIPTION_HANDLER    Handler;\r
 } BM_BOOT_DESCRIPTION_ENTRY;\r
 \r
 /**\r
@@ -154,22 +154,22 @@ typedef struct {
 **/\r
 VOID\r
 BmRepairAllControllers (\r
-  UINTN       ReconnectRepairCount\r
+  UINTN  ReconnectRepairCount\r
   );\r
 \r
-#define BM_HOTKEY_SIGNATURE SIGNATURE_32 ('b', 'm', 'h', 'k')\r
+#define BM_HOTKEY_SIGNATURE  SIGNATURE_32 ('b', 'm', 'h', 'k')\r
 typedef struct {\r
-  UINT32                    Signature;\r
-  LIST_ENTRY                Link;\r
-\r
-  BOOLEAN                   IsContinue;\r
-  UINT16                    BootOption;\r
-  UINT8                     CodeCount;\r
-  UINT8                     WaitingKey;\r
-  EFI_KEY_DATA              KeyData[3];\r
+  UINT32          Signature;\r
+  LIST_ENTRY      Link;\r
+\r
+  BOOLEAN         IsContinue;\r
+  UINT16          BootOption;\r
+  UINT8           CodeCount;\r
+  UINT8           WaitingKey;\r
+  EFI_KEY_DATA    KeyData[3];\r
 } BM_HOTKEY;\r
 \r
-#define BM_HOTKEY_FROM_LINK(a) CR (a, BM_HOTKEY, Link, BM_HOTKEY_SIGNATURE)\r
+#define BM_HOTKEY_FROM_LINK(a)  CR (a, BM_HOTKEY, Link, BM_HOTKEY_SIGNATURE)\r
 \r
 /**\r
   Get the Option Number that wasn't used.\r
@@ -184,8 +184,8 @@ typedef struct {
 **/\r
 EFI_STATUS\r
 BmGetFreeOptionNumber (\r
-  IN  EFI_BOOT_MANAGER_LOAD_OPTION_TYPE LoadOptionType,\r
-  OUT UINT16                            *FreeOptionNumber\r
+  IN  EFI_BOOT_MANAGER_LOAD_OPTION_TYPE  LoadOptionType,\r
+  OUT UINT16                             *FreeOptionNumber\r
   );\r
 \r
 /**\r
@@ -200,7 +200,7 @@ BmGetFreeOptionNumber (
 **/\r
 VOID\r
 BmSetMemoryTypeInformationVariable (\r
-  IN BOOLEAN                    Boot\r
+  IN BOOLEAN  Boot\r
   );\r
 \r
 /**\r
@@ -217,8 +217,8 @@ BmSetMemoryTypeInformationVariable (
 **/\r
 BOOLEAN\r
 BmMatchPartitionDevicePathNode (\r
-  IN  EFI_DEVICE_PATH_PROTOCOL   *BlockIoDevicePath,\r
-  IN  HARDDRIVE_DEVICE_PATH      *HardDriveDevicePath\r
+  IN  EFI_DEVICE_PATH_PROTOCOL  *BlockIoDevicePath,\r
+  IN  HARDDRIVE_DEVICE_PATH     *HardDriveDevicePath\r
   );\r
 \r
 /**\r
@@ -237,7 +237,7 @@ BmMatchPartitionDevicePathNode (
 **/\r
 EFI_STATUS\r
 BmConnectUsbShortFormDevicePath (\r
-  IN EFI_DEVICE_PATH_PROTOCOL   *DevicePath\r
+  IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath\r
   );\r
 \r
 /**\r
@@ -249,8 +249,8 @@ BmConnectUsbShortFormDevicePath (
 VOID\r
 EFIAPI\r
 BmStopHotkeyService (\r
-  IN EFI_EVENT    Event,\r
-  IN VOID         *Context\r
+  IN EFI_EVENT  Event,\r
+  IN VOID       *Context\r
   );\r
 \r
 /**\r
@@ -288,11 +288,11 @@ BmStopHotkeyService (
 **/\r
 EFI_STATUS\r
 BmSetVariableAndReportStatusCodeOnError (\r
-  IN CHAR16     *VariableName,\r
-  IN EFI_GUID   *VendorGuid,\r
-  IN UINT32     Attributes,\r
-  IN UINTN      DataSize,\r
-  IN VOID       *Data\r
+  IN CHAR16    *VariableName,\r
+  IN EFI_GUID  *VendorGuid,\r
+  IN UINT32    Attributes,\r
+  IN UINTN     DataSize,\r
+  IN VOID      *Data\r
   );\r
 \r
 /**\r
@@ -340,7 +340,7 @@ BmDelPartMatchInstance (
 **/\r
 VOID\r
 BmPrintDp (\r
-  EFI_DEVICE_PATH_PROTOCOL            *DevicePath\r
+  EFI_DEVICE_PATH_PROTOCOL  *DevicePath\r
   );\r
 \r
 /**\r
@@ -353,7 +353,7 @@ BmPrintDp (
 **/\r
 UINTN\r
 BmCharToUint (\r
-  IN CHAR16                           Char\r
+  IN CHAR16  Char\r
   );\r
 \r
 /**\r
@@ -365,7 +365,7 @@ BmCharToUint (
 **/\r
 CHAR16 *\r
 BmGetBootDescription (\r
-  IN EFI_HANDLE                  Handle\r
+  IN EFI_HANDLE  Handle\r
   );\r
 \r
 /**\r
@@ -377,8 +377,8 @@ BmGetBootDescription (
 **/\r
 VOID\r
 BmMakeBootOptionDescriptionUnique (\r
-  EFI_BOOT_MANAGER_LOAD_OPTION         *BootOptions,\r
-  UINTN                                BootOptionCount\r
+  EFI_BOOT_MANAGER_LOAD_OPTION  *BootOptions,\r
+  UINTN                         BootOptionCount\r
   );\r
 \r
 /**\r
@@ -391,8 +391,8 @@ BmMakeBootOptionDescriptionUnique (
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 BmExpandLoadFile (\r
-  IN  EFI_HANDLE                      LoadFileHandle,\r
-  IN  EFI_DEVICE_PATH_PROTOCOL        *FilePath\r
+  IN  EFI_HANDLE                LoadFileHandle,\r
+  IN  EFI_DEVICE_PATH_PROTOCOL  *FilePath\r
   );\r
 \r
 /**\r
@@ -404,7 +404,7 @@ BmExpandLoadFile (
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 BmGetRamDiskDevicePath (\r
-  IN EFI_DEVICE_PATH_PROTOCOL *FilePath\r
+  IN EFI_DEVICE_PATH_PROTOCOL  *FilePath\r
   );\r
 \r
 /**\r
@@ -418,7 +418,7 @@ BmGetRamDiskDevicePath (
 **/\r
 VOID\r
 BmDestroyRamDisk (\r
-  IN EFI_DEVICE_PATH_PROTOCOL *RamDiskDevicePath\r
+  IN EFI_DEVICE_PATH_PROTOCOL  *RamDiskDevicePath\r
   );\r
 \r
 /**\r
@@ -434,8 +434,8 @@ BmDestroyRamDisk (
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 BmGetNextLoadOptionDevicePath (\r
-  IN  EFI_DEVICE_PATH_PROTOCOL          *FilePath,\r
-  IN  EFI_DEVICE_PATH_PROTOCOL          *FullPath\r
+  IN  EFI_DEVICE_PATH_PROTOCOL  *FilePath,\r
+  IN  EFI_DEVICE_PATH_PROTOCOL  *FullPath\r
   );\r
 \r
 /**\r
@@ -460,9 +460,10 @@ BmGetNextLoadOptionDevicePath (
 **/\r
 VOID *\r
 BmGetNextLoadOptionBuffer (\r
-  IN  EFI_BOOT_MANAGER_LOAD_OPTION_TYPE Type,\r
-  IN  EFI_DEVICE_PATH_PROTOCOL          *FilePath,\r
-  OUT EFI_DEVICE_PATH_PROTOCOL          **FullPath,\r
-  OUT UINTN                             *FileSize\r
+  IN  EFI_BOOT_MANAGER_LOAD_OPTION_TYPE  Type,\r
+  IN  EFI_DEVICE_PATH_PROTOCOL           *FilePath,\r
+  OUT EFI_DEVICE_PATH_PROTOCOL           **FullPath,\r
+  OUT UINTN                              *FileSize\r
   );\r
+\r
 #endif // _INTERNAL_BM_H_\r