MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -5,6 +5,7 @@ Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _FORM_GUID_H_
|
||||
#define _FORM_GUID_H_
|
||||
|
||||
@@ -41,50 +42,48 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define FORM_CON_MODE_ID 0x1021
|
||||
#define FORM_BOOT_FROM_FILE_ID 0x1024
|
||||
|
||||
#define MAXIMUM_FORM_ID 0x10FF
|
||||
|
||||
#define MAXIMUM_FORM_ID 0x10FF
|
||||
#define KEY_VALUE_COM_SET_BAUD_RATE 0x1101
|
||||
#define KEY_VALUE_COM_SET_DATA_BITS 0x1102
|
||||
#define KEY_VALUE_COM_SET_STOP_BITS 0x1103
|
||||
#define KEY_VALUE_COM_SET_PARITY 0x1104
|
||||
#define KEY_VALUE_COM_SET_TERMI_TYPE 0x1105
|
||||
#define KEY_VALUE_MAIN_BOOT_NEXT 0x1106
|
||||
#define KEY_VALUE_BOOT_ADD_DESC_DATA 0x1107
|
||||
#define KEY_VALUE_BOOT_ADD_OPT_DATA 0x1108
|
||||
#define KEY_VALUE_DRIVER_ADD_DESC_DATA 0x1109
|
||||
#define KEY_VALUE_DRIVER_ADD_OPT_DATA 0x110A
|
||||
#define KEY_VALUE_SAVE_AND_EXIT 0x110B
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C
|
||||
#define KEY_VALUE_BOOT_FROM_FILE 0x110D
|
||||
#define FORM_RESET 0x110E
|
||||
#define KEY_VALUE_BOOT_DESCRIPTION 0x110F
|
||||
#define KEY_VALUE_BOOT_OPTION 0x1110
|
||||
#define KEY_VALUE_DRIVER_DESCRIPTION 0x1111
|
||||
#define KEY_VALUE_DRIVER_OPTION 0x1112
|
||||
#define KEY_VALUE_SAVE_AND_EXIT_BOOT 0x1113
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT_BOOT 0x1114
|
||||
#define KEY_VALUE_SAVE_AND_EXIT_DRIVER 0x1115
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER 0x1116
|
||||
#define KEY_VALUE_TRIGGER_FORM_OPEN_ACTION 0x1117
|
||||
|
||||
#define KEY_VALUE_COM_SET_BAUD_RATE 0x1101
|
||||
#define KEY_VALUE_COM_SET_DATA_BITS 0x1102
|
||||
#define KEY_VALUE_COM_SET_STOP_BITS 0x1103
|
||||
#define KEY_VALUE_COM_SET_PARITY 0x1104
|
||||
#define KEY_VALUE_COM_SET_TERMI_TYPE 0x1105
|
||||
#define KEY_VALUE_MAIN_BOOT_NEXT 0x1106
|
||||
#define KEY_VALUE_BOOT_ADD_DESC_DATA 0x1107
|
||||
#define KEY_VALUE_BOOT_ADD_OPT_DATA 0x1108
|
||||
#define KEY_VALUE_DRIVER_ADD_DESC_DATA 0x1109
|
||||
#define KEY_VALUE_DRIVER_ADD_OPT_DATA 0x110A
|
||||
#define KEY_VALUE_SAVE_AND_EXIT 0x110B
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C
|
||||
#define KEY_VALUE_BOOT_FROM_FILE 0x110D
|
||||
#define FORM_RESET 0x110E
|
||||
#define KEY_VALUE_BOOT_DESCRIPTION 0x110F
|
||||
#define KEY_VALUE_BOOT_OPTION 0x1110
|
||||
#define KEY_VALUE_DRIVER_DESCRIPTION 0x1111
|
||||
#define KEY_VALUE_DRIVER_OPTION 0x1112
|
||||
#define KEY_VALUE_SAVE_AND_EXIT_BOOT 0x1113
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT_BOOT 0x1114
|
||||
#define KEY_VALUE_SAVE_AND_EXIT_DRIVER 0x1115
|
||||
#define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER 0x1116
|
||||
#define KEY_VALUE_TRIGGER_FORM_OPEN_ACTION 0x1117
|
||||
|
||||
#define MAXIMUM_NORMAL_KEY_VALUE 0x11FF
|
||||
#define MAXIMUM_NORMAL_KEY_VALUE 0x11FF
|
||||
|
||||
//
|
||||
// Varstore ID defined for Buffer Storage
|
||||
//
|
||||
#define VARSTORE_ID_BOOT_MAINT 0x1000
|
||||
#define VARSTORE_ID_BOOT_MAINT 0x1000
|
||||
|
||||
//
|
||||
// End Label
|
||||
//
|
||||
#define LABEL_FORM_MAIN_START 0xfffc
|
||||
#define LABEL_FORM_MAIN_END 0xfffd
|
||||
|
||||
#define LABEL_BMM_PLATFORM_INFORMATION 0xfffe
|
||||
#define LABEL_END 0xffff
|
||||
#define MAX_MENU_NUMBER 100
|
||||
#define LABEL_FORM_MAIN_START 0xfffc
|
||||
#define LABEL_FORM_MAIN_END 0xfffd
|
||||
|
||||
#define LABEL_BMM_PLATFORM_INFORMATION 0xfffe
|
||||
#define LABEL_END 0xffff
|
||||
#define MAX_MENU_NUMBER 100
|
||||
|
||||
///
|
||||
/// This is the structure that will be used to store the
|
||||
@@ -99,81 +98,81 @@ typedef struct {
|
||||
// Three questions displayed at the main page
|
||||
// for Timeout, BootNext, Variables respectively
|
||||
//
|
||||
UINT16 BootTimeOut;
|
||||
UINT32 BootNext;
|
||||
UINT16 BootTimeOut;
|
||||
UINT32 BootNext;
|
||||
|
||||
//
|
||||
// This is the COM1 Attributes value storage
|
||||
//
|
||||
UINT8 COM1BaudRate;
|
||||
UINT8 COM1DataRate;
|
||||
UINT8 COM1StopBits;
|
||||
UINT8 COM1Parity;
|
||||
UINT8 COM1TerminalType;
|
||||
UINT8 COM1BaudRate;
|
||||
UINT8 COM1DataRate;
|
||||
UINT8 COM1StopBits;
|
||||
UINT8 COM1Parity;
|
||||
UINT8 COM1TerminalType;
|
||||
|
||||
//
|
||||
// This is the COM2 Attributes value storage
|
||||
//
|
||||
UINT8 COM2BaudRate;
|
||||
UINT8 COM2DataRate;
|
||||
UINT8 COM2StopBits;
|
||||
UINT8 COM2Parity;
|
||||
UINT8 COM2TerminalType;
|
||||
UINT8 COM2BaudRate;
|
||||
UINT8 COM2DataRate;
|
||||
UINT8 COM2StopBits;
|
||||
UINT8 COM2Parity;
|
||||
UINT8 COM2TerminalType;
|
||||
|
||||
//
|
||||
// Driver Option Add Handle page storage
|
||||
//
|
||||
UINT16 DriverAddHandleDesc[MAX_MENU_NUMBER];
|
||||
UINT16 DriverAddHandleOptionalData[MAX_MENU_NUMBER];
|
||||
UINT8 DriverAddActive;
|
||||
UINT8 DriverAddForceReconnect;
|
||||
UINT16 DriverAddHandleDesc[MAX_MENU_NUMBER];
|
||||
UINT16 DriverAddHandleOptionalData[MAX_MENU_NUMBER];
|
||||
UINT8 DriverAddActive;
|
||||
UINT8 DriverAddForceReconnect;
|
||||
|
||||
//
|
||||
// Console Input/Output/Errorout using COM port check storage
|
||||
//
|
||||
UINT8 ConsoleInputCOM1;
|
||||
UINT8 ConsoleInputCOM2;
|
||||
UINT8 ConsoleOutputCOM1;
|
||||
UINT8 ConsoleOutputCOM2;
|
||||
UINT8 ConsoleErrorCOM1;
|
||||
UINT8 ConsoleErrorCOM2;
|
||||
UINT8 ConsoleInputCOM1;
|
||||
UINT8 ConsoleInputCOM2;
|
||||
UINT8 ConsoleOutputCOM1;
|
||||
UINT8 ConsoleOutputCOM2;
|
||||
UINT8 ConsoleErrorCOM1;
|
||||
UINT8 ConsoleErrorCOM2;
|
||||
|
||||
//
|
||||
// At most 100 input/output/errorout device for console storage
|
||||
//
|
||||
UINT8 ConsoleCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleCheck[MAX_MENU_NUMBER];
|
||||
|
||||
//
|
||||
// At most 100 input/output/errorout device for console storage
|
||||
//
|
||||
UINT8 ConsoleInCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleOutCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleErrCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleInCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleOutCheck[MAX_MENU_NUMBER];
|
||||
UINT8 ConsoleErrCheck[MAX_MENU_NUMBER];
|
||||
|
||||
//
|
||||
// Boot or Driver Option Order storage
|
||||
// The value is the OptionNumber+1 because the order list value cannot be 0
|
||||
// Use UINT32 to hold the potential value 0xFFFF+1=0x10000
|
||||
//
|
||||
UINT32 BootOptionOrder[MAX_MENU_NUMBER];
|
||||
UINT32 DriverOptionOrder[MAX_MENU_NUMBER];
|
||||
UINT32 BootOptionOrder[MAX_MENU_NUMBER];
|
||||
UINT32 DriverOptionOrder[MAX_MENU_NUMBER];
|
||||
//
|
||||
// Boot or Driver Option Delete storage
|
||||
//
|
||||
BOOLEAN BootOptionDel[MAX_MENU_NUMBER];
|
||||
BOOLEAN DriverOptionDel[MAX_MENU_NUMBER];
|
||||
BOOLEAN BootOptionDelMark[MAX_MENU_NUMBER];
|
||||
BOOLEAN DriverOptionDelMark[MAX_MENU_NUMBER];
|
||||
BOOLEAN BootOptionDel[MAX_MENU_NUMBER];
|
||||
BOOLEAN DriverOptionDel[MAX_MENU_NUMBER];
|
||||
BOOLEAN BootOptionDelMark[MAX_MENU_NUMBER];
|
||||
BOOLEAN DriverOptionDelMark[MAX_MENU_NUMBER];
|
||||
|
||||
//
|
||||
// This is the Terminal Attributes value storage
|
||||
//
|
||||
UINT8 COMBaudRate[MAX_MENU_NUMBER];
|
||||
UINT8 COMDataRate[MAX_MENU_NUMBER];
|
||||
UINT8 COMStopBits[MAX_MENU_NUMBER];
|
||||
UINT8 COMParity[MAX_MENU_NUMBER];
|
||||
UINT8 COMTerminalType[MAX_MENU_NUMBER];
|
||||
UINT8 COMFlowControl[MAX_MENU_NUMBER];
|
||||
UINT8 COMBaudRate[MAX_MENU_NUMBER];
|
||||
UINT8 COMDataRate[MAX_MENU_NUMBER];
|
||||
UINT8 COMStopBits[MAX_MENU_NUMBER];
|
||||
UINT8 COMParity[MAX_MENU_NUMBER];
|
||||
UINT8 COMTerminalType[MAX_MENU_NUMBER];
|
||||
UINT8 COMFlowControl[MAX_MENU_NUMBER];
|
||||
|
||||
//
|
||||
// We use DisableMap array to record the enable/disable state of each boot device
|
||||
@@ -181,26 +180,25 @@ typedef struct {
|
||||
// the most left one stands for BBS table item 0, and the most right one stands for item 256
|
||||
// If the bit is 1, it means the boot device has been disabled.
|
||||
//
|
||||
UINT8 DisableMap[32];
|
||||
UINT8 DisableMap[32];
|
||||
|
||||
//
|
||||
// Console Output Text Mode
|
||||
//
|
||||
UINT16 ConsoleOutMode;
|
||||
UINT16 ConsoleOutMode;
|
||||
|
||||
//
|
||||
// UINT16 PadArea[10];
|
||||
//
|
||||
|
||||
UINT16 BootDescriptionData[MAX_MENU_NUMBER];
|
||||
UINT16 BootOptionalData[127];
|
||||
UINT16 DriverDescriptionData[MAX_MENU_NUMBER];
|
||||
UINT16 DriverOptionalData[127];
|
||||
BOOLEAN BootOptionChanged;
|
||||
BOOLEAN DriverOptionChanged;
|
||||
UINT8 Active;
|
||||
UINT8 ForceReconnect;
|
||||
UINT16 BootDescriptionData[MAX_MENU_NUMBER];
|
||||
UINT16 BootOptionalData[127];
|
||||
UINT16 DriverDescriptionData[MAX_MENU_NUMBER];
|
||||
UINT16 DriverOptionalData[127];
|
||||
BOOLEAN BootOptionChanged;
|
||||
BOOLEAN DriverOptionChanged;
|
||||
UINT8 Active;
|
||||
UINT8 ForceReconnect;
|
||||
} BMM_FAKE_NV_DATA;
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user