MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/** @file
|
||||
FormDiplay protocol to show Form
|
||||
|
||||
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define EDKII_FORM_DISPLAY_ENGINE_PROTOCOL_GUID \
|
||||
{ 0x9bbe29e9, 0xfda1, 0x41ec, { 0xad, 0x52, 0x45, 0x22, 0x13, 0x74, 0x2d, 0x2e } }
|
||||
|
||||
//
|
||||
//
|
||||
// Do nothing.
|
||||
//
|
||||
#define BROWSER_ACTION_NONE BIT16
|
||||
@@ -101,11 +101,11 @@ typedef struct {
|
||||
|
||||
/**
|
||||
Perform value check for a question.
|
||||
|
||||
|
||||
@param Form Form where Statement is in.
|
||||
@param Statement Value will check for it.
|
||||
@param Value New value will be checked.
|
||||
|
||||
|
||||
@retval Status Value Status
|
||||
|
||||
**/
|
||||
@@ -114,20 +114,20 @@ UINT32
|
||||
(EFIAPI *VALIDATE_QUESTION) (
|
||||
IN FORM_DISPLAY_ENGINE_FORM *Form,
|
||||
IN FORM_DISPLAY_ENGINE_STATEMENT *Statement,
|
||||
IN EFI_HII_VALUE *Value,
|
||||
IN EFI_HII_VALUE *Value,
|
||||
OUT STATEMENT_ERROR_INFO *ErrorInfo
|
||||
);
|
||||
|
||||
/**
|
||||
Perform Password check.
|
||||
Perform Password check.
|
||||
Passwork may be encrypted by driver that requires the specific check.
|
||||
|
||||
|
||||
@param Form Form where Password Statement is in.
|
||||
@param Statement Password statement
|
||||
@param PasswordString Password string to be checked. It may be NULL.
|
||||
NULL means to restore password.
|
||||
"" string can be used to checked whether old password does exist.
|
||||
|
||||
|
||||
@return Status Status of Password check.
|
||||
**/
|
||||
typedef
|
||||
@@ -171,7 +171,7 @@ struct _FORM_DISPLAY_ENGINE_STATEMENT{
|
||||
EFI_HII_VALUE CurrentValue;
|
||||
//
|
||||
// Flag to describe whether setting is changed or not.
|
||||
// Displayer may depend on it to show it with the different color.
|
||||
// Displayer may depend on it to show it with the different color.
|
||||
//
|
||||
BOOLEAN SettingChangedFlag;
|
||||
//
|
||||
@@ -192,7 +192,7 @@ struct _FORM_DISPLAY_ENGINE_STATEMENT{
|
||||
// It may be NULL if any value is valid.
|
||||
//
|
||||
VALIDATE_QUESTION ValidateQuestion;
|
||||
|
||||
|
||||
//
|
||||
// Password additional check. It may be NULL when the additional check is not required.
|
||||
//
|
||||
@@ -212,7 +212,7 @@ struct _FORM_DISPLAY_ENGINE_STATEMENT{
|
||||
typedef struct {
|
||||
UINTN Signature;
|
||||
LIST_ENTRY Link;
|
||||
|
||||
|
||||
EFI_INPUT_KEY *KeyData;
|
||||
//
|
||||
// Action is Discard, Default, Submit, Reset and Exit.
|
||||
@@ -240,7 +240,7 @@ struct _FORM_DISPLAY_ENGINE_FORM {
|
||||
//
|
||||
LIST_ENTRY StatementListHead;
|
||||
//
|
||||
// Statement List outside of Form
|
||||
// Statement List outside of Form
|
||||
//
|
||||
LIST_ENTRY StatementListOSF;
|
||||
//
|
||||
@@ -255,7 +255,7 @@ struct _FORM_DISPLAY_ENGINE_FORM {
|
||||
// HiiHandle can be used to get String, Image or Animation
|
||||
//
|
||||
EFI_HII_HANDLE HiiHandle;
|
||||
|
||||
|
||||
//
|
||||
// Form ID and Title.
|
||||
//
|
||||
@@ -289,13 +289,13 @@ struct _FORM_DISPLAY_ENGINE_FORM {
|
||||
//
|
||||
EFI_IMAGE_ID ImageId;
|
||||
EFI_ANIMATION_ID AnimationId;
|
||||
|
||||
|
||||
//
|
||||
// If Status is error, display needs to handle it.
|
||||
// If Status is error, display needs to handle it.
|
||||
//
|
||||
UINT32 BrowserStatus;
|
||||
//
|
||||
// String for error status. It may be NULL.
|
||||
// String for error status. It may be NULL.
|
||||
//
|
||||
EFI_STRING ErrorString;
|
||||
};
|
||||
@@ -304,9 +304,9 @@ struct _FORM_DISPLAY_ENGINE_FORM {
|
||||
|
||||
typedef struct {
|
||||
FORM_DISPLAY_ENGINE_STATEMENT *SelectedStatement; // Selected Statement and InputValue
|
||||
|
||||
|
||||
EFI_HII_VALUE InputValue;
|
||||
|
||||
|
||||
UINT32 Action; // If SelectedStatement is NULL, Action will be used.
|
||||
// Trig Action (Discard, Default, Submit, Reset and Exit)
|
||||
UINT16 DefaultId;
|
||||
@@ -314,10 +314,10 @@ typedef struct {
|
||||
|
||||
/**
|
||||
Display one form, and return user input.
|
||||
|
||||
|
||||
@param FormData Form Data to be shown.
|
||||
@param UserInputData User input data.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Form Data is shown, and user input is got.
|
||||
**/
|
||||
typedef
|
||||
@@ -338,8 +338,8 @@ VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Confirm how to handle the changed data.
|
||||
|
||||
Confirm how to handle the changed data.
|
||||
|
||||
@return Action of Submit, Discard and None
|
||||
**/
|
||||
typedef
|
||||
|
@@ -2,13 +2,13 @@
|
||||
|
||||
EFI Deferred Procedure Call Protocol.
|
||||
|
||||
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -70,11 +70,11 @@ EFI_STATUS
|
||||
);
|
||||
|
||||
/**
|
||||
Dispatch the queue of DPCs.
|
||||
|
||||
Dispatch the queue of DPCs.
|
||||
|
||||
DPCs with DpcTpl value greater than the current TPL value are queued, and then DPCs
|
||||
with DpcTpl value lower than the current TPL value are queued. All DPCs in the first
|
||||
group (higher DpcTpl values) are invoked before DPCs in the second group (lower DpcTpl values).
|
||||
with DpcTpl value lower than the current TPL value are queued. All DPCs in the first
|
||||
group (higher DpcTpl values) are invoked before DPCs in the second group (lower DpcTpl values).
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
EBC Simple Debugger protocol for debug EBC code.
|
||||
|
||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -71,7 +71,7 @@ VOID
|
||||
|
||||
@param[in] This A pointer to the EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL structure.
|
||||
@param[in] VmPtr A pointer to a VM context.
|
||||
@param[in] DasmString Dump string buffer.
|
||||
@param[in] DasmString Dump string buffer.
|
||||
@param[in] DasmStringSize Dump string size.
|
||||
|
||||
@retval EFI_UNSUPPORTED No support for it.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
EBC VM Test protocol for test purposes.
|
||||
|
||||
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -144,7 +144,7 @@ EFI_STATUS
|
||||
@param[out] BufferLen Size of buffer that is required to store data.
|
||||
|
||||
@retval EFI_UNSUPPORTED This functionality is unsupported.
|
||||
@retval EFI_SUCCESS Successfully convert AsmText to the instruction.
|
||||
@retval EFI_SUCCESS Successfully convert AsmText to the instruction.
|
||||
|
||||
**/
|
||||
typedef
|
||||
|
@@ -1,13 +1,13 @@
|
||||
/** @file
|
||||
The Esrt Management Protocol used to register/set/update an updatable firmware resource .
|
||||
|
||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -31,11 +31,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
typedef struct _ESRT_MANAGEMENT_PROTOCOL ESRT_MANAGEMENT_PROTOCOL;
|
||||
|
||||
/**
|
||||
Get Variable name and data by Esrt Entry FwClass
|
||||
Get Variable name and data by Esrt Entry FwClass
|
||||
|
||||
@param[in] FwClass FwClass of Esrt entry to get
|
||||
@param[in out] Entry Esrt entry returned
|
||||
|
||||
@param[in] FwClass FwClass of Esrt entry to get
|
||||
@param[in out] Entry Esrt entry returned
|
||||
|
||||
@retval EFI_SUCCESS The variable saving this Esrt Entry exists.
|
||||
@retval EF_NOT_FOUND No correct variable found.
|
||||
|
||||
@@ -46,13 +46,13 @@ EFI_STATUS
|
||||
IN EFI_GUID *FwClass,
|
||||
IN OUT EFI_SYSTEM_RESOURCE_ENTRY *Entry
|
||||
);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Update one ESRT entry in ESRT Cache.
|
||||
|
||||
@param[in] Entry Esrt entry to be updated
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Successfully update an ESRT entry in cache.
|
||||
@retval EFI_INVALID_PARAMETER Entry does't exist in ESRT Cache
|
||||
@retval EFI_WRITE_PROTECTED ESRT Cache repositoy is locked
|
||||
@@ -66,11 +66,11 @@ EFI_STATUS
|
||||
|
||||
|
||||
/**
|
||||
Non-FMP instance to unregister Esrt Entry from ESRT Cache.
|
||||
Non-FMP instance to unregister Esrt Entry from ESRT Cache.
|
||||
|
||||
@param[in] FwClass FwClass of Esrt entry to Unregister
|
||||
|
||||
@retval EFI_SUCCESS Insert all entries Successfully
|
||||
@param[in] FwClass FwClass of Esrt entry to Unregister
|
||||
|
||||
@retval EFI_SUCCESS Insert all entries Successfully
|
||||
@retval EFI_NOT_FOUND FwClass does not exsit
|
||||
|
||||
**/
|
||||
@@ -116,10 +116,10 @@ EFI_STATUS
|
||||
|
||||
|
||||
/**
|
||||
This function locks up Esrt repository to be readonly. It should be called
|
||||
This function locks up Esrt repository to be readonly. It should be called
|
||||
before gEfiEndOfDxeEventGroupGuid event signaled
|
||||
|
||||
@retval EFI_SUCCESS Locks up FMP Non-FMP repository successfully
|
||||
@retval EFI_SUCCESS Locks up FMP Non-FMP repository successfully
|
||||
|
||||
**/
|
||||
typedef
|
||||
|
@@ -1,17 +1,17 @@
|
||||
/** @file
|
||||
Fault Tolerant Write protocol provides boot-time service for fault tolerant
|
||||
write capability for block devices. The protocol provides for non-volatile
|
||||
storage of the intermediate data and private information a caller would need to
|
||||
recover from a critical fault, such as a power failure.
|
||||
Fault Tolerant Write protocol provides boot-time service for fault tolerant
|
||||
write capability for block devices. The protocol provides for non-volatile
|
||||
storage of the intermediate data and private information a caller would need to
|
||||
recover from a critical fault, such as a power failure.
|
||||
|
||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
|
@@ -1,15 +1,15 @@
|
||||
/** @file
|
||||
|
||||
This file explorer protocol defines defines a set of interfaces for
|
||||
This file explorer protocol defines defines a set of interfaces for
|
||||
how to do file explorer.
|
||||
|
||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -41,7 +41,7 @@ BOOLEAN
|
||||
);
|
||||
|
||||
/**
|
||||
Choose a file in the specified directory.
|
||||
Choose a file in the specified directory.
|
||||
|
||||
If user input NULL for the RootDirectory, will choose file in the system.
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Extension Form Browser Protocol provides the services that can be used to
|
||||
Extension Form Browser Protocol provides the services that can be used to
|
||||
register the different hot keys for the standard Browser actions described in UEFI specification.
|
||||
|
||||
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -35,8 +35,8 @@ typedef EDKII_FORM_BROWSER_EXTENSION_PROTOCOL EFI_FORM_BROWSER_EXTENSION_PROTO
|
||||
#define BROWSER_KEEP_CURRENT 3
|
||||
|
||||
//
|
||||
// Browser actions. They can be cominbed together.
|
||||
// If more than one actions are specified, the action with low bit will be executed first.
|
||||
// Browser actions. They can be cominbed together.
|
||||
// If more than one actions are specified, the action with low bit will be executed first.
|
||||
//
|
||||
#define BROWSER_ACTION_UNREGISTER 0
|
||||
#define BROWSER_ACTION_DISCARD BIT0
|
||||
@@ -61,11 +61,11 @@ typedef enum {
|
||||
All hot keys have the same scope. The mixed hot keys with the different level are not supported.
|
||||
If no scope is set, the default scope will be FormSet level.
|
||||
After all registered hot keys are removed, previous Scope can reset to another level.
|
||||
|
||||
@param[in] Scope Scope level to be set.
|
||||
|
||||
|
||||
@param[in] Scope Scope level to be set.
|
||||
|
||||
@retval EFI_SUCCESS Scope is set correctly.
|
||||
@retval EFI_INVALID_PARAMETER Scope is not the valid value specified in BROWSER_SETTING_SCOPE.
|
||||
@retval EFI_INVALID_PARAMETER Scope is not the valid value specified in BROWSER_SETTING_SCOPE.
|
||||
@retval EFI_UNSPPORTED Scope level is different from current one that the registered hot keys have.
|
||||
|
||||
**/
|
||||
@@ -79,15 +79,15 @@ EFI_STATUS
|
||||
Register the hot key with its browser action, or unregistered the hot key.
|
||||
If the action value is zero, the hot key will be unregistered if it has been registered.
|
||||
If the same hot key has been registered, the new action and help string will override the previous ones.
|
||||
|
||||
|
||||
@param[in] KeyData A pointer to a buffer that describes the keystroke
|
||||
information for the hot key. Its type is EFI_INPUT_KEY to
|
||||
information for the hot key. Its type is EFI_INPUT_KEY to
|
||||
be supported by all ConsoleIn devices.
|
||||
@param[in] Action Action value that describes what action will be trigged when the hot key is pressed.
|
||||
@param[in] Action Action value that describes what action will be trigged when the hot key is pressed.
|
||||
@param[in] DefaultId Specifies the type of defaults to retrieve, which is only for DEFAULT action.
|
||||
@param[in] HelpString Help string that describes the hot key information.
|
||||
Its value may be NULL for the unregistered hot key.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Hot key is registered or unregistered.
|
||||
@retval EFI_INVALID_PARAMETER KeyData is NULL.
|
||||
**/
|
||||
@@ -102,7 +102,7 @@ EFI_STATUS
|
||||
|
||||
/**
|
||||
This handler is responsbile for the left things on normal boot after all UI forms are closed.
|
||||
For example, it can continue to boot the first boot option.
|
||||
For example, it can continue to boot the first boot option.
|
||||
|
||||
It will be used only when EXIT action is trigged as system level.
|
||||
**/
|
||||
@@ -113,11 +113,11 @@ VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Register Exit handler function.
|
||||
When more than one handler function is registered, the latter one will override the previous one.
|
||||
When NULL handler is specified, the previous Exit handler will be unregistered.
|
||||
|
||||
@param[in] Handler Pointer to handler function.
|
||||
Register Exit handler function.
|
||||
When more than one handler function is registered, the latter one will override the previous one.
|
||||
When NULL handler is specified, the previous Exit handler will be unregistered.
|
||||
|
||||
@param[in] Handler Pointer to handler function.
|
||||
|
||||
**/
|
||||
typedef
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Extension Form Browser Protocol provides the services that can be used to
|
||||
Extension Form Browser Protocol provides the services that can be used to
|
||||
register the different hot keys for the standard Browser actions described in UEFI specification.
|
||||
|
||||
Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -48,8 +48,8 @@ BOOLEAN
|
||||
@retval EFI_SUCCESS Execute the request action succss.
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EXECUTE_ACTION) (
|
||||
IN UINT32 Action,
|
||||
IN UINT16 DefaultId
|
||||
@@ -92,7 +92,7 @@ typedef struct {
|
||||
EFI_FORM_ID FormId; // Find the form
|
||||
EFI_GUID FormSetGuid; // Find the formset.
|
||||
EFI_HII_HANDLE HiiHandle; // Find the HII handle
|
||||
UINT32 Attribute; // Hide or grayout ...
|
||||
UINT32 Attribute; // Hide or grayout ...
|
||||
} QUESTION_ATTRIBUTE_OVERRIDE;
|
||||
|
||||
#define FORM_QUESTION_ATTRIBUTE_OVERRIDE_FROM_LINK(a) CR (a, QUESTION_ATTRIBUTE_OVERRIDE, Link, FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE)
|
||||
|
@@ -1,13 +1,13 @@
|
||||
/** @file
|
||||
This protocol defines the generic memory test interfaces in Dxe phase.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -36,12 +36,12 @@ typedef enum {
|
||||
/**
|
||||
Initialize the generic memory test.
|
||||
|
||||
@param This The protocol instance pointer.
|
||||
@param Level The coverage level of the memory test.
|
||||
@param RequireSoftECCInit Indicate if the memory need software ECC init.
|
||||
@param This The protocol instance pointer.
|
||||
@param Level The coverage level of the memory test.
|
||||
@param RequireSoftECCInit Indicate if the memory need software ECC init.
|
||||
|
||||
@retval EFI_SUCCESS The generic memory test is initialized correctly.
|
||||
@retval EFI_NO_MEDIA The system had no memory to be tested.
|
||||
@retval EFI_SUCCESS The generic memory test is initialized correctly.
|
||||
@retval EFI_NO_MEDIA The system had no memory to be tested.
|
||||
|
||||
**/
|
||||
typedef
|
||||
@@ -56,12 +56,12 @@ EFI_STATUS
|
||||
/**
|
||||
Perform the memory test.
|
||||
|
||||
@param This The protocol instance pointer.
|
||||
@param TestedMemorySize Return the tested extended memory size.
|
||||
@param TotalMemorySize Return the whole system physical memory size.
|
||||
The total memory size does not include memory in a slot with a disabled DIMM.
|
||||
@param This The protocol instance pointer.
|
||||
@param TestedMemorySize Return the tested extended memory size.
|
||||
@param TotalMemorySize Return the whole system physical memory size.
|
||||
The total memory size does not include memory in a slot with a disabled DIMM.
|
||||
@param ErrorOut TRUE if the memory error occured.
|
||||
@param IfTestAbort Indicates that the user pressed "ESC" to skip the memory test.
|
||||
@param IfTestAbort Indicates that the user pressed "ESC" to skip the memory test.
|
||||
|
||||
@retval EFI_SUCCESS One block of memory passed the test.
|
||||
@retval EFI_NOT_FOUND All memory blocks have already been tested.
|
||||
@@ -82,7 +82,7 @@ EFI_STATUS
|
||||
/**
|
||||
Finish the memory test.
|
||||
|
||||
@param This The protocol instance pointer.
|
||||
@param This The protocol instance pointer.
|
||||
|
||||
@retval EFI_SUCCESS Success. All resources used in the memory test are freed.
|
||||
|
||||
@@ -96,12 +96,12 @@ EFI_STATUS
|
||||
/**
|
||||
Provides the capability to test the compatible range used by some special drivers.
|
||||
|
||||
@param This The protocol instance pointer.
|
||||
@param This The protocol instance pointer.
|
||||
@param StartAddress The start address of the compatible memory range that
|
||||
must be below 16M.
|
||||
@param Length The compatible memory range's length.
|
||||
|
||||
@retval EFI_SUCCESS The compatible memory range pass the memory test.
|
||||
@param Length The compatible memory range's length.
|
||||
|
||||
@retval EFI_SUCCESS The compatible memory range pass the memory test.
|
||||
@retval EFI_INVALID_PARAMETER The compatible memory range are not below Low 16M.
|
||||
|
||||
**/
|
||||
|
@@ -3,13 +3,13 @@
|
||||
Load Pe32 Image protocol enables loading and unloading EFI images into memory and executing those images.
|
||||
This protocol uses File Device Path to get an EFI image.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -52,10 +52,10 @@ typedef struct _EFI_PE32_IMAGE_PROTOCOL EFI_PE32_IMAGE_PROTOCOL;
|
||||
@retval EFI_LOAD_ERROR Image was not loaded because the image format was corrupt or not
|
||||
understood.
|
||||
@retval EFI_DEVICE_ERROR Image was not loaded because the device returned a read error.
|
||||
@retval EFI_ACCESS_DENIED Image was not loaded because the platform policy prohibits the
|
||||
@retval EFI_ACCESS_DENIED Image was not loaded because the platform policy prohibits the
|
||||
image from being loaded. NULL is returned in *ImageHandle.
|
||||
@retval EFI_SECURITY_VIOLATION Image was loaded and an ImageHandle was created with a
|
||||
valid EFI_LOADED_IMAGE_PROTOCOL. However, the current
|
||||
@retval EFI_SECURITY_VIOLATION Image was loaded and an ImageHandle was created with a
|
||||
valid EFI_LOADED_IMAGE_PROTOCOL. However, the current
|
||||
platform policy specifies that the image should not be started.
|
||||
**/
|
||||
typedef
|
||||
|
@@ -3,12 +3,12 @@
|
||||
image with the display attribute.
|
||||
|
||||
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
@@ -4,13 +4,13 @@
|
||||
These protocols define basic print functions to print the format unicode and
|
||||
ascii string.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -219,26 +219,26 @@ UINTN
|
||||
|
||||
/**
|
||||
Converts a decimal value to a Null-terminated Unicode string.
|
||||
|
||||
Converts the decimal number specified by Value to a Null-terminated Unicode
|
||||
string specified by Buffer containing at most Width characters. No padding of spaces
|
||||
|
||||
Converts the decimal number specified by Value to a Null-terminated Unicode
|
||||
string specified by Buffer containing at most Width characters. No padding of spaces
|
||||
is ever performed. If Width is 0, then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
||||
This function returns the number of Unicode characters in Buffer, not including
|
||||
the Null-terminator.
|
||||
If the conversion contains more than Width characters, this function returns
|
||||
If the conversion contains more than Width characters, this function returns
|
||||
the first Width characters in the conversion, along with the total number of characters in the conversion.
|
||||
Additional conversion parameters are specified in Flags.
|
||||
|
||||
Additional conversion parameters are specified in Flags.
|
||||
|
||||
The Flags bit LEFT_JUSTIFY is always ignored.
|
||||
All conversions are left justified in Buffer.
|
||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||
are inserted every 3rd digit starting from the right.
|
||||
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||
formatted in hexadecimal format.
|
||||
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||
add up to Width characters.
|
||||
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||
@@ -254,7 +254,7 @@ UINTN
|
||||
@param Value The 64-bit signed value to convert to a string.
|
||||
@param Width The maximum number of Unicode characters to place in Buffer, not including
|
||||
the Null-terminator.
|
||||
|
||||
|
||||
@return The number of Unicode characters in Buffer not including the Null-terminator.
|
||||
|
||||
**/
|
||||
@@ -455,28 +455,28 @@ UINTN
|
||||
|
||||
/**
|
||||
Converts a decimal value to a Null-terminated ASCII string.
|
||||
|
||||
Converts the decimal number specified by Value to a Null-terminated ASCII string
|
||||
|
||||
Converts the decimal number specified by Value to a Null-terminated ASCII string
|
||||
specified by Buffer containing at most Width characters. No padding of spaces is ever performed.
|
||||
If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
||||
The number of ASCII characters in Buffer is returned not including the Null-terminator.
|
||||
If the conversion contains more than Width characters, then only the first Width
|
||||
characters are returned, and the total number of characters required to perform
|
||||
the conversion is returned.
|
||||
Additional conversion parameters are specified in Flags.
|
||||
Additional conversion parameters are specified in Flags.
|
||||
The Flags bit LEFT_JUSTIFY is always ignored.
|
||||
All conversions are left justified in Buffer.
|
||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||
are inserted every 3rd digit starting from the right.
|
||||
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||
formatted in hexadecimal format.
|
||||
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||
add up to Width characters.
|
||||
|
||||
|
||||
If Buffer is NULL, then ASSERT().
|
||||
If unsupported bits are set in Flags, then ASSERT().
|
||||
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||
@@ -488,7 +488,7 @@ UINTN
|
||||
@param Value The 64-bit signed value to convert to a string.
|
||||
@param Width The maximum number of ASCII characters to place in Buffer, not including
|
||||
the Null-terminator.
|
||||
|
||||
|
||||
@return The number of ASCII characters in Buffer not including the Null-terminator.
|
||||
|
||||
**/
|
||||
|
@@ -1,18 +1,18 @@
|
||||
/** @file
|
||||
SMM Fault Tolerant Write protocol is related to EDK II-specific implementation of FTW,
|
||||
provides boot-time service for fault tolerant write capability for block devices in
|
||||
EFI SMM environment. The protocol provides for non-volatile storage of the intermediate
|
||||
data and private information a caller would need to recover from a critical fault,
|
||||
such as a power failure.
|
||||
provides boot-time service for fault tolerant write capability for block devices in
|
||||
EFI SMM environment. The protocol provides for non-volatile storage of the intermediate
|
||||
data and private information a caller would need to recover from a critical fault,
|
||||
such as a power failure.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -27,10 +27,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
}
|
||||
|
||||
//
|
||||
// SMM Fault Tolerant Write protocol structure is the same as Fault Tolerant Write protocol.
|
||||
// The SMM one is intend to run in SMM environment, which means it can be used by
|
||||
// SMM drivers after ExitPmAuth.
|
||||
//
|
||||
// SMM Fault Tolerant Write protocol structure is the same as Fault Tolerant Write protocol.
|
||||
// The SMM one is intend to run in SMM environment, which means it can be used by
|
||||
// SMM drivers after ExitPmAuth.
|
||||
//
|
||||
typedef EFI_FAULT_TOLERANT_WRITE_PROTOCOL EFI_SMM_FAULT_TOLERANT_WRITE_PROTOCOL;
|
||||
|
||||
extern EFI_GUID gEfiSmmFaultTolerantWriteProtocolGuid;
|
||||
|
@@ -1,16 +1,16 @@
|
||||
/** @file
|
||||
SMM Firmware Volume Block protocol is related to EDK II-specific implementation of
|
||||
FVB driver, provides control over block-oriented firmware devices and is intended
|
||||
FVB driver, provides control over block-oriented firmware devices and is intended
|
||||
to use in the EFI SMM environment.
|
||||
|
||||
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -25,10 +25,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
}
|
||||
|
||||
//
|
||||
// SMM Firmware Volume Block protocol structure is the same as Firmware Volume Block
|
||||
// protocol. The SMM one is intend to run in SMM environment, which means it can be
|
||||
// used by SMM drivers after ExitPmAuth.
|
||||
//
|
||||
// SMM Firmware Volume Block protocol structure is the same as Firmware Volume Block
|
||||
// protocol. The SMM one is intend to run in SMM environment, which means it can be
|
||||
// used by SMM drivers after ExitPmAuth.
|
||||
//
|
||||
typedef EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL EFI_SMM_FIRMWARE_VOLUME_BLOCK_PROTOCOL;
|
||||
|
||||
extern EFI_GUID gEfiSmmFirmwareVolumeBlockProtocolGuid;
|
||||
|
@@ -1,20 +1,20 @@
|
||||
/** @file
|
||||
The EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL is related to EDK II-specific implementation
|
||||
and used to abstract the swap operation of boot block and backup block of FV in EFI
|
||||
SMM environment. This swap is especially needed when updating the boot block of FV.
|
||||
If a power failure happens during the boot block update, the swapped backup block
|
||||
(now the boot block) can boot the machine with the old boot block backed up in it.
|
||||
The swap operation is platform dependent, so other protocols such as SMM FTW (Fault
|
||||
The EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL is related to EDK II-specific implementation
|
||||
and used to abstract the swap operation of boot block and backup block of FV in EFI
|
||||
SMM environment. This swap is especially needed when updating the boot block of FV.
|
||||
If a power failure happens during the boot block update, the swapped backup block
|
||||
(now the boot block) can boot the machine with the old boot block backed up in it.
|
||||
The swap operation is platform dependent, so other protocols such as SMM FTW (Fault
|
||||
Tolerant Write) should use this protocol instead of handling hardware directly.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -29,10 +29,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
}
|
||||
|
||||
//
|
||||
// SMM Swap Address Range protocol structure is the same as Swap Address Range protocol.
|
||||
// The SMM one is intend to run in SMM environment, which means it can be used by
|
||||
// SMM drivers after ExitPmAuth.
|
||||
//
|
||||
// SMM Swap Address Range protocol structure is the same as Swap Address Range protocol.
|
||||
// The SMM one is intend to run in SMM environment, which means it can be used by
|
||||
// SMM drivers after ExitPmAuth.
|
||||
//
|
||||
typedef EFI_SWAP_ADDRESS_RANGE_PROTOCOL EFI_SMM_SWAP_ADDRESS_RANGE_PROTOCOL;
|
||||
|
||||
extern EFI_GUID gEfiSmmSwapAddressRangeProtocolGuid;
|
||||
|
@@ -2,14 +2,14 @@
|
||||
EFI SMM Variable Protocol is related to EDK II-specific implementation of variables
|
||||
and intended for use as a means to store data in the EFI SMM environment.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
typedef struct _EFI_SMM_VARIABLE_PROTOCOL EFI_SMM_VARIABLE_PROTOCOL;
|
||||
|
||||
///
|
||||
/// EFI SMM Variable Protocol is intended for use as a means
|
||||
/// EFI SMM Variable Protocol is intended for use as a means
|
||||
/// to store data in the EFI SMM environment.
|
||||
///
|
||||
struct _EFI_SMM_VARIABLE_PROTOCOL {
|
||||
@@ -36,4 +36,4 @@ struct _EFI_SMM_VARIABLE_PROTOCOL {
|
||||
|
||||
extern EFI_GUID gEfiSmmVariableProtocolGuid;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -1,18 +1,18 @@
|
||||
/** @file
|
||||
The EFI_SWAP_ADDRESS_RANGE_PROTOCOL is used to abstract the swap operation of boot block
|
||||
and backup block of FV. This swap is especially needed when updating the boot block of FV. If a
|
||||
power failure happens during the boot block update, the swapped backup block (now the boot block)
|
||||
can boot the machine with the old boot block backed up in it. The swap operation is platform dependent, so
|
||||
The EFI_SWAP_ADDRESS_RANGE_PROTOCOL is used to abstract the swap operation of boot block
|
||||
and backup block of FV. This swap is especially needed when updating the boot block of FV. If a
|
||||
power failure happens during the boot block update, the swapped backup block (now the boot block)
|
||||
can boot the machine with the old boot block backed up in it. The swap operation is platform dependent, so
|
||||
other protocols such as FTW (Fault Tolerant Write) should use this protocol instead of handling hardware directly.
|
||||
|
||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -40,17 +40,17 @@ typedef UINT8 EFI_SWAP_LOCK_CAPABILITY;
|
||||
//
|
||||
|
||||
/**
|
||||
This function gets the address range location of
|
||||
boot block and backup block.
|
||||
This function gets the address range location of
|
||||
boot block and backup block.
|
||||
|
||||
@param This Indicates the calling context.
|
||||
@param This Indicates the calling context.
|
||||
@param BootBlockBase The base address of current boot block.
|
||||
@param BootBlockSize The size (in bytes) of current boot block.
|
||||
@param BackupBlockBase The base address of current backup block.
|
||||
@param BackupBlockSize The size (in bytes) of current backup block.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -65,12 +65,12 @@ EFI_STATUS
|
||||
/**
|
||||
This service checks if the boot block and backup block has been swapped.
|
||||
|
||||
@param This Indicates the calling context.
|
||||
@param SwapState True if the boot block and backup block has been swapped.
|
||||
@param This Indicates the calling context.
|
||||
@param SwapState True if the boot block and backup block has been swapped.
|
||||
False if the boot block and backup block has not been swapped.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -82,15 +82,15 @@ EFI_STATUS
|
||||
/**
|
||||
This service swaps the boot block and backup block, or swaps them back.
|
||||
|
||||
It also acquires and releases software swap lock during operation. The setting of the new swap state
|
||||
It also acquires and releases software swap lock during operation. The setting of the new swap state
|
||||
is not affected by the old swap state.
|
||||
|
||||
@param This Indicates the calling context.
|
||||
@param This Indicates the calling context.
|
||||
@param NewSwapState True to swap real boot block and backup block, False to swap them back.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
@retval EFI_ABORTED Set swap state error.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -104,14 +104,14 @@ EFI_STATUS
|
||||
/**
|
||||
This service checks if a Real Time Clock (RTC) power failure happened.
|
||||
|
||||
If parameter RtcPowerFailed is true after the function returns, RTC power supply failed or was removed.
|
||||
If parameter RtcPowerFailed is true after the function returns, RTC power supply failed or was removed.
|
||||
It is recommended to check RTC power status before calling GetSwapState().
|
||||
|
||||
@param This Indicates the calling context.
|
||||
@param RtcPowerFailed True if the RTC (Real Time Clock) power failed or was removed.
|
||||
@param This Indicates the calling context.
|
||||
@param RtcPowerFailed True if the RTC (Real Time Clock) power failed or was removed.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -121,15 +121,15 @@ EFI_STATUS
|
||||
);
|
||||
|
||||
/**
|
||||
This service returns all lock methods for swap operations that the current platform
|
||||
This service returns all lock methods for swap operations that the current platform
|
||||
supports. Could be software lock, hardware lock, or unsupport lock.
|
||||
Note that software and hardware lock methods can be used simultaneously.
|
||||
|
||||
@param This Indicates the calling context.
|
||||
@param LockCapability The current lock method for swap operations.
|
||||
@param LockCapability The current lock method for swap operations.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -150,7 +150,7 @@ EFI_STATUS
|
||||
@param NewLockState True to acquire lock; False to release lock.
|
||||
|
||||
@retval EFI_SUCCESS The call was successful.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
|
@@ -2,13 +2,13 @@
|
||||
|
||||
EDKII Universal Flash Storage Host Controller Protocol.
|
||||
|
||||
Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
@@ -70,24 +70,24 @@ typedef enum {
|
||||
EdkiiUfsHcOperationMaximum
|
||||
} EDKII_UFS_HOST_CONTROLLER_OPERATION;
|
||||
|
||||
/**
|
||||
/**
|
||||
Provides the UFS controller-specific addresses needed to access system memory.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
@param Operation Indicates if the bus master is going to read or write to system memory.
|
||||
@param HostAddress The system memory address to map to the UFS controller.
|
||||
@param NumberOfBytes On input the number of bytes to map. On output the number of bytes
|
||||
that were mapped.
|
||||
that were mapped.
|
||||
@param DeviceAddress The resulting map address for the bus master UFS controller to use to
|
||||
access the hosts HostAddress.
|
||||
access the hosts HostAddress.
|
||||
@param Mapping A resulting value to pass to Unmap().
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The range was mapped for the returned NumberOfBytes.
|
||||
@retval EFI_UNSUPPORTED The HostAddress cannot be mapped as a common buffer.
|
||||
@retval EFI_UNSUPPORTED The HostAddress cannot be mapped as a common buffer.
|
||||
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
|
||||
@retval EFI_DEVICE_ERROR The system hardware could not map the requested address.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -100,15 +100,15 @@ EFI_STATUS
|
||||
OUT VOID **Mapping
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
Completes the Map() operation and releases any corresponding resources.
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
@param Mapping The mapping value returned from Map().
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The range was unmapped.
|
||||
@retval EFI_DEVICE_ERROR The data was not committed to the target system memory.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -117,25 +117,25 @@ EFI_STATUS
|
||||
IN VOID *Mapping
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
Allocates pages that are suitable for an EfiUfsHcOperationBusMasterCommonBuffer
|
||||
mapping.
|
||||
|
||||
mapping.
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
@param Type This parameter is not used and must be ignored.
|
||||
@param MemoryType The type of memory to allocate, EfiBootServicesData or
|
||||
EfiRuntimeServicesData.
|
||||
@param Pages The number of pages to allocate.
|
||||
EfiRuntimeServicesData.
|
||||
@param Pages The number of pages to allocate.
|
||||
@param HostAddress A pointer to store the base system memory address of the
|
||||
allocated range.
|
||||
allocated range.
|
||||
@param Attributes The requested bit mask of attributes for the allocated range.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The requested memory pages were allocated.
|
||||
@retval EFI_UNSUPPORTED Attributes is unsupported. The only legal attribute bits are
|
||||
MEMORY_WRITE_COMBINE and MEMORY_CACHED.
|
||||
MEMORY_WRITE_COMBINE and MEMORY_CACHED.
|
||||
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
||||
@retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
|
||||
|
||||
@retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -148,17 +148,17 @@ EFI_STATUS
|
||||
IN UINT64 Attributes
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
Frees memory that was allocated with AllocateBuffer().
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
@param Pages The number of pages to free.
|
||||
@param HostAddress The base system memory address of the allocated range.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
@param Pages The number of pages to free.
|
||||
@param HostAddress The base system memory address of the allocated range.
|
||||
|
||||
@retval EFI_SUCCESS The requested memory pages were freed.
|
||||
@retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages
|
||||
was not allocated with AllocateBuffer().
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -168,16 +168,16 @@ EFI_STATUS
|
||||
IN VOID *HostAddress
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
Flushes all posted write transactions from the UFS bus to attached UFS device.
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.
|
||||
|
||||
@retval EFI_SUCCESS The posted write transactions were flushed from the UFS bus
|
||||
to attached UFS device.
|
||||
to attached UFS device.
|
||||
@retval EFI_DEVICE_ERROR The posted write transactions were not flushed from the UFS
|
||||
bus to attached UFS device due to a hardware error.
|
||||
|
||||
bus to attached UFS device due to a hardware error.
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
|
@@ -3,14 +3,14 @@
|
||||
and intended for use as a means to mark a variable read-only after the event
|
||||
EFI_END_OF_DXE_EVENT_GUID is signaled.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -59,5 +59,5 @@ struct _EDKII_VARIABLE_LOCK_PROTOCOL {
|
||||
|
||||
extern EFI_GUID gEdkiiVariableLockProtocolGuid;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user