diff options
author | pkandel <pkandel@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-11 14:17:23 +0000 |
---|---|---|
committer | pkandel <pkandel@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-11 14:17:23 +0000 |
commit | e9b67286ad4428d63e2495f38b71273b81e0846f (patch) | |
tree | f1e2ae7fdb1a10f6138332ac9780ea980588d092 | |
parent | 9277fdf8e7e6e5192f723f31fd205a9297c6a0aa (diff) | |
download | edk2-platforms-e9b67286ad4428d63e2495f38b71273b81e0846f.tar.xz |
Committing changes to the comments, to improve code documentation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8533 6f19259b-4bc3-4df7-8a09-765794883524
26 files changed, 306 insertions, 329 deletions
diff --git a/MdeModulePkg/Include/Guid/CapsuleVendor.h b/MdeModulePkg/Include/Guid/CapsuleVendor.h index dc6cb2fefa..ae77f1f6e5 100644 --- a/MdeModulePkg/Include/Guid/CapsuleVendor.h +++ b/MdeModulePkg/Include/Guid/CapsuleVendor.h @@ -1,7 +1,9 @@ /** @file
- This file defines capsule vendor guid for capsule variable and hob.
- It also defines capsule variable name and capsule guid hob data structure,
- which can be used to store the capsule image start address and length.
+ This file defines:
+ * the capsule vendor GUID for capsule variables and the HOB
+ * the capsule variable name
+ * the capsule GUID HOB data structure.
+ The capsule HOB and variable can be used to store the capsule image start address and length.
They are used by EDKII implementation of capsule update across a system reset.
Copyright (c) 2006 - 2008, Intel Corporation
diff --git a/MdeModulePkg/Include/Guid/ConsoleInDevice.h b/MdeModulePkg/Include/Guid/ConsoleInDevice.h index e40029a2a3..81c2d93505 100644 --- a/MdeModulePkg/Include/Guid/ConsoleInDevice.h +++ b/MdeModulePkg/Include/Guid/ConsoleInDevice.h @@ -1,9 +1,8 @@ /** @file
- This guid is used to specify the device is the console in device.
- If the device is the console in device, this guid as the protocol guid
- will be installed into this device handle.
+ This GUID can be installed to the device handle to specify that the device is the console-in device.
+
-Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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
diff --git a/MdeModulePkg/Include/Guid/ConsoleOutDevice.h b/MdeModulePkg/Include/Guid/ConsoleOutDevice.h index aabbd5edcd..f09f427e44 100644 --- a/MdeModulePkg/Include/Guid/ConsoleOutDevice.h +++ b/MdeModulePkg/Include/Guid/ConsoleOutDevice.h @@ -1,9 +1,7 @@ /** @file
- This guid is used to specify the device is the console out device.
- If the device is the console out device, this guid as the protocol guid
- will be installed into this device handle.
+ This GUID can be installed to the device handle to specify that the device is the console-out device.
-Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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
diff --git a/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h b/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h index d117235308..aab340b55d 100644 --- a/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h +++ b/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h @@ -1,9 +1,9 @@ /** @file
This file defines a group of guids to specify the different
- encapsulation scheme for the guided section.
+ encapsulation scheme for the GUIDed section.
- Now, only one guid is defined for CRC32 encapsulation scheme.
+ Only one GUID is defined for the CRC32 encapsulation scheme.
Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -20,9 +20,8 @@ #define __CRC32_GUIDED_SECTION_EXTRACTION_H__
//
-// GUID definition. Each GUIDed section extraction protocol has the
-// same interface but with different GUID. All the GUIDs is defined here.
-// May add more GUIDs here in future.
+// GUID definition. All GUIDed section extraction protocols share the
+// same interface, but each has a different GUID. All the GUIDs are defined here.
//
#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_GUID \
{ 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }
diff --git a/MdeModulePkg/Include/Guid/MdeModuleHii.h b/MdeModulePkg/Include/Guid/MdeModuleHii.h index f5795ef31f..5cfc45cec3 100644 --- a/MdeModulePkg/Include/Guid/MdeModuleHii.h +++ b/MdeModulePkg/Include/Guid/MdeModuleHii.h @@ -151,7 +151,7 @@ typedef struct _EFI_IFR_GUID_SUBCLASS { { 0x31ca5d1a, 0xd511, 0x4931, { 0xb7, 0x82, 0xae, 0x6b, 0x2b, 0x17, 0x8c, 0xd7 } }
///
-/// Two extended opcode are added, new extension can be added here later.
+/// Two extended opcodes are added, and new extensions can be added here later.
/// One is for framework OneOf question Option Key value,
/// Another is for framework vareqval.
///
diff --git a/MdeModulePkg/Include/Guid/MemoryTypeInformation.h b/MdeModulePkg/Include/Guid/MemoryTypeInformation.h index 12fa8274fa..f2c0ae3fcd 100644 --- a/MdeModulePkg/Include/Guid/MemoryTypeInformation.h +++ b/MdeModulePkg/Include/Guid/MemoryTypeInformation.h @@ -1,6 +1,6 @@ /** @file
- This file defines the memory type information guid for its variable and guid.
- It also defines memory type info variable name and data structure for variable and hob both,
+ This file defines the memory type information GUID for its variable and guid.
+ It also defines memory type info variable name and data structure for both variable and hob,
which can be used to store the information for each memory type in EFI variable or HOB.
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
diff --git a/MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h b/MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h index 94a2a5b5bf..5e27477d42 100644 --- a/MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h +++ b/MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h @@ -38,12 +38,10 @@ typedef enum { //
// The following structures are used by drivers/applications other
-// than EFI_IP4_PROTOCOL, such as ifconfig shell application, to
-// communicate the IP configuration information to EFI_IP4_CONFIG_PROTOCOL.
-// EFI_IP4_CONFIG_PROTOCOL in turn is used by EFI_IP4_PROTOCOL to get
-// the default IP4 configuration. ifconfig can't use the EFI_IP4_PROTOCOL
-// because it don't know how to configure the default IP address even
-// it has got the address.
+// than EFI_IP4_PROTOCOL, such as the ifconfig shell application, to
+// communicate the IP configuration information to the EFI_IP4_CONFIG_PROTOCOL.
+// The EFI_IP4_PROTOCOL uses the EFI_IP4_CONFIG_PROTOCOL to get
+// the default IP4 configuration.
//
///
diff --git a/MdeModulePkg/Include/Guid/Performance.h b/MdeModulePkg/Include/Guid/Performance.h index 14c7c83d51..b59fe81040 100644 --- a/MdeModulePkg/Include/Guid/Performance.h +++ b/MdeModulePkg/Include/Guid/Performance.h @@ -1,6 +1,8 @@ /** @file
- This file defines performance related definitions: the format of performance
- GUID HOB, performance protocol interfaces and performance variable format.
+ This file defines performance-related definitions, including the format of:
+ * performance GUID HOB
+ * performance protocol interfaces
+ * performance variables.
Copyright (c) 2009, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
@@ -94,7 +96,7 @@ typedef struct { // The header must be aligned at 8 bytes
//
typedef struct {
- UINT32 NumberOfEntries; ///> The number of all performance guage entries
+ UINT32 NumberOfEntries; ///> The number of all performance gauge entries
UINT32 Reserved;
} GAUGE_DATA_HEADER;
@@ -102,9 +104,8 @@ typedef struct { Adds a record at the end of the performance measurement log
that records the start time of a performance measurement.
- Adds a record to the end of the performance measurement log
- that contains the Handle, Token, and Module.
- The end time of the new record must be set to zero.
+ The added record contains the Handle, Token, and Module.
+ The end time of the new record is not recorded, so it is set to zero.
If TimeStamp is not zero, then TimeStamp is used to fill in the start time in the record.
If TimeStamp is zero, the start time in the record is filled in with the value
read from the current time stamp.
@@ -172,13 +173,11 @@ EFI_STATUS @param LogEntryKey The key for the previous performance measurement log entry.
If 0, then the first performance measurement log entry is retrieved.
- @param GaugeDataEntry The indirect pointer to the gauge data entry specified by LogEntryKey
- if the retrieval is successful.
-
+ @param GaugeDataEntry Out parameter for the indirect pointer to the gauge data entry specified by LogEntryKey.
+
@retval EFI_SUCCESS The GuageDataEntry is successfully found based on LogEntryKey.
- @retval EFI_NOT_FOUND The LogEntryKey is the last entry (equals to the total entry number).
- @retval EFI_INVALIDE_PARAMETER The LogEntryKey is not a valid entry (greater than the total entry number).
- @retval EFI_INVALIDE_PARAMETER GaugeDataEntry is NULL.
+ @retval EFI_NOT_FOUND There is no entry after the measurement referred to by LogEntryKey.
+ @retval EFI_INVALID_PARAMETER The LogEntryKey is not a valid entry, or GaugeDataEntry is NULL.
**/
typedef
diff --git a/MdeModulePkg/Include/Guid/StandardErrorDevice.h b/MdeModulePkg/Include/Guid/StandardErrorDevice.h index 95d6f269dd..f464fb7040 100644 --- a/MdeModulePkg/Include/Guid/StandardErrorDevice.h +++ b/MdeModulePkg/Include/Guid/StandardErrorDevice.h @@ -1,9 +1,8 @@ /** @file
- This guid is used to specify the device is the StdErr device.
- If the device is the StdErr device, this guid as the protocol guid
- will be installed into this device handle.
+ This GUID is installed to the device handler to specify that the device is StdErr device.
+
-Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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
diff --git a/MdeModulePkg/Include/Guid/VariableFormat.h b/MdeModulePkg/Include/Guid/VariableFormat.h index bf1c6b3687..8ff64cb2c8 100644 --- a/MdeModulePkg/Include/Guid/VariableFormat.h +++ b/MdeModulePkg/Include/Guid/VariableFormat.h @@ -1,6 +1,6 @@ /** @file
- The variable data structures are related to EDK II specific UEFI variable implementation.
- Variable data header and Variable storage region header are defined here.
+ The variable data structures are related to EDK II-specific implementation of UEFI variables.
+ VariableFormat.h defines variable data headers and variable storage region headers.
Copyright (c) 2006 - 2008 Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
@@ -22,8 +22,9 @@ extern EFI_GUID gEfiVariableGuid;
///
-/// Alignment of variable name and data.
-/// For IA32/X64 architecture, the alignment is set to 1, and 8 is for IPF archtecture.
+/// Alignment of variable name and data, according to the architecture:
+/// * For IA-32 and Intel(R) 64 architectures: 1
+/// * For IA-64 architecture: 8
///
#if defined (MDE_CPU_IPF)
#define ALIGNMENT 8
@@ -32,7 +33,7 @@ extern EFI_GUID gEfiVariableGuid; #endif
//
-// GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement
+// GET_PAD_SIZE calculates the miminal pad bytes needed to make the current pad size satisfy the alignment requirement.
//
#if (ALIGNMENT == 1)
#define GET_PAD_SIZE(a) (0)
@@ -99,7 +100,7 @@ typedef struct { ///
/// Variable State flags
///
-#define VAR_IN_DELETED_TRANSITION 0xfe ///< Variable is in obsolete transistion
+#define VAR_IN_DELETED_TRANSITION 0xfe ///< Variable is in obsolete transition
#define VAR_DELETED 0xfd ///< Variable is obsolete
#define VAR_HEADER_VALID_ONLY 0x7f ///< Variable header has been valid
#define VAR_ADDED 0x3f ///< Variable has been completely added
@@ -122,7 +123,7 @@ typedef struct { ///
UINT32 Attributes;
///
- /// Size of variable Null-terminated Unicode string name
+ /// Size of variable null-terminated Unicode string name
///
UINT32 NameSize;
///
@@ -130,7 +131,7 @@ typedef struct { ///
UINT32 DataSize;
///
- /// A unique identifier for the vendor that produce and consume this varaible.
+ /// A unique identifier for the vendor that produces and consumes this varaible.
///
EFI_GUID VendorGuid;
} VARIABLE_HEADER;
@@ -141,7 +142,7 @@ typedef struct _VARIABLE_INFO_ENTRY VARIABLE_INFO_ENTRY; ///
/// This structure contains the variable list that is put in EFI system table.
-/// The variable driver collects all used variables at boot service time and produce this list.
+/// The variable driver collects all variables that were used at boot service time and produces this list.
/// This is an optional feature to dump all used variables in shell environment.
///
struct _VARIABLE_INFO_ENTRY {
@@ -149,11 +150,11 @@ struct _VARIABLE_INFO_ENTRY { EFI_GUID VendorGuid; ///> Guid of Variable
CHAR16 *Name; ///> Name of Variable
UINT32 Attributes; ///> Attributes of variable defined in UEFI spec
- UINT32 ReadCount; ///> Times to read this variable
- UINT32 WriteCount; ///> Times to write this variable
- UINT32 DeleteCount; ///> Times to delete this variable
- UINT32 CacheCount; ///> Times that cache hits this variable
- BOOLEAN Volatile; ///> TRUE if volatile FALSE if non-volatile
+ UINT32 ReadCount; ///> Number of times to read this variable
+ UINT32 WriteCount; ///> Number of times to write this variable
+ UINT32 DeleteCount; ///> Number of times to delete this variable
+ UINT32 CacheCount; ///> Number of times that cache hits this variable
+ BOOLEAN Volatile; ///> TRUE if volatile, FALSE if non-volatile
};
#endif // _EFI_VARIABLE_H_
diff --git a/MdeModulePkg/Include/Library/CapsuleLib.h b/MdeModulePkg/Include/Library/CapsuleLib.h index 662e4def95..34e71313d3 100644 --- a/MdeModulePkg/Include/Library/CapsuleLib.h +++ b/MdeModulePkg/Include/Library/CapsuleLib.h @@ -1,6 +1,6 @@ /** @file
- This library class defines a set of interfaces on how to process capusle image update.
+ This library class defines a set of interfaces for how to process capsule image updates.
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -32,12 +32,12 @@ SupportCapsuleImage ( );
/**
- The firmware specific implementation processes the capsule image
+ The firmware-specific implementation processes the capsule image
if it recognized the format of this capsule image.
@param CapsuleHeader Point to the UEFI capsule image to be processed.
- @retval EFI_SUCESS Process Capsule Image successfully.
+ @retval EFI_SUCESS Capsule Image was processed successfully.
@retval EFI_UNSUPPORTED Capsule image is not supported by the firmware.
**/
EFI_STATUS
diff --git a/MdeModulePkg/Include/Library/DpcLib.h b/MdeModulePkg/Include/Library/DpcLib.h index 68e8530d0d..09c22e4b25 100644 --- a/MdeModulePkg/Include/Library/DpcLib.h +++ b/MdeModulePkg/Include/Library/DpcLib.h @@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /**
Add a Deferred Procedure Call to the end of the DPC queue.
- @param[in] DpcTpl The EFI_TPL that the DPC should be invoked.
+ @param[in] DpcTpl The EFI_TPL that the DPC should invoke.
@param[in] DpcProcedure Pointer to the DPC's function.
@param[in] DpcContext Pointer to the DPC's context. Passed to DpcProcedure
when DpcProcedure is invoked.
@@ -41,7 +41,7 @@ QueueDpc ( );
/**
- Dispatch the queue of DPCs. ALL DPCs that have been queued with a DpcTpl
+ Dispatch the queue of DPCs. All DPCs that have been queued with a DpcTpl
value greater than or equal to the current TPL are invoked in the order that
they were queued. DPCs with higher DpcTpl values are invoked before DPCs with
lower DpcTpl values.
diff --git a/MdeModulePkg/Include/Library/HiiLib.h b/MdeModulePkg/Include/Library/HiiLib.h index 1f68261522..af3ed0eb2b 100644 --- a/MdeModulePkg/Include/Library/HiiLib.h +++ b/MdeModulePkg/Include/Library/HiiLib.h @@ -29,7 +29,7 @@ of packages is passed in, then NULL is returned. If the size of the list of
package is 0, then NULL is returned.
- The variable arguments are pointers which point to package header that defined
+ The variable arguments are pointers that point to package headers defined
by UEFI VFR compiler and StringGather tool.
#pragma pack (push, 1)
@@ -67,8 +67,8 @@ HiiAddPackages ( /**
Removes a package list from the HII database.
- If HiiHandle is NULL, then ASSERT.
- If HiiHandle is not a valid EFI_HII_HANDLE in the HII database, then ASSERT.
+ If HiiHandle is NULL, then ASSERT().
+ If HiiHandle is not a valid EFI_HII_HANDLE in the HII database, then ASSERT().
@param[in] HiiHandle The handle that was previously registered in the HII database
@@ -81,7 +81,7 @@ HiiRemovePackages ( ;
/**
- This function create a new string in String Package or updates an existing
+ This function creates a new string in String Package or updates an existing
string in a String Package. If StringId is 0, then a new string is added to
a String Package. If StringId is not zero, then a string in String Package is
updated. If SupportedLanguages is NULL, then the string is added or updated
@@ -97,7 +97,7 @@ HiiRemovePackages ( @param[in] StringId If zero, then a new string is created in the
String Package associated with HiiHandle. If
non-zero, then the string specified by StringId
- is updated in the String Package associated
+ is updated in the String Package associated
with HiiHandle.
@param[in] String A pointer to the Null-terminated Unicode string
to add or update in the String Package associated
@@ -107,12 +107,12 @@ HiiRemovePackages ( String is added or updated in the String Package
associated with HiiHandle for all the languages
that the String Package supports. If this
- parameter is not NULL, then then String is added
+ parameter is not NULL, then String is added
or updated in the String Package associated with
- HiiHandle for the set oflanguages specified by
+ HiiHandle for the set of languages specified by
SupportedLanguages. The format of
SupportedLanguages must follow the language
- format assumed the HII Database.
+ format assumed in the HII Database.
@retval 0 The string could not be added or updated in the String Package.
@retval Other The EFI_STRING_ID of the newly added or updated string.
@@ -138,14 +138,14 @@ HiiSetString ( for freeing the allocated buffer using FreePool().
If HiiHandle is NULL, then ASSERT().
- If StringId is 0, then ASSET.
+ If StringId is 0, then ASSERT().
@param[in] HiiHandle A handle that was previously registered in the HII Database.
@param[in] StringId The identifier of the string to retrieved from the string
package associated with HiiHandle.
@param[in] Language The language of the string to retrieve. If this parameter
is NULL, then the current platform language is used. The
- format of Language must follow the language format assumed
+ format of Language must follow the language format assumed in
the HII Database.
@retval NULL The string specified by StringId is not present in the string package.
@@ -162,7 +162,7 @@ HiiGetString ( ;
/**
- Retrieves a string from a string package names by GUID in a specific language.
+ Retrieves a string from a string package named by GUID, in the specified language.
If the language is not specified, then a string from a string package in the
current platform language is retrieved. If the string can not be retrieved
using the specified language or the current platform language, then the string
@@ -171,7 +171,7 @@ HiiGetString ( is responsible for freeing the allocated buffer using FreePool().
If PackageListGuid is NULL, then ASSERT().
- If StringId is 0, then ASSERT.
+ If StringId is 0, then ASSERT().
@param[in] PackageListGuid The GUID of a package list that was previously
registered in the HII Database.
@@ -180,7 +180,7 @@ HiiGetString ( @param[in] Language The language of the string to retrieve. If this
parameter is NULL, then the current platform
language is used. The format of Language must
- follow the language format assumed the HII Database.
+ follow the language format assumed in the HII Database.
@retval NULL The package list specified by PackageListGuid is not present in the
HII Database.
@@ -205,10 +205,10 @@ HiiGetPackageString ( The caller is responsible for freeing the array with FreePool().
@param[in] PackageListGuid An optional parameter that is used to request
- an HII Handle that is associatd with a specific
- Package List GUID. If this parameter is NULL
+ an HII Handle associated with a specific
+ Package List GUID. If this parameter is NULL,
then all the HII Handles in the HII Database
- are returned. If this parameter is not NULL
+ are returned. If this parameter is not NULL,
then at most 1 HII Handle is returned.
@retval NULL No HII handles were found in the HII database
@@ -224,11 +224,11 @@ HiiGetHiiHandles ( ;
/**
- Retrieves a pointer to the a Null-terminated ASCII string containing the list
+ Retrieves a pointer to a Null-terminated ASCII string containing the list
of languages that an HII handle in the HII Database supports. The returned
string is allocated using AllocatePool(). The caller is responsible for freeing
the returned string using FreePool(). The format of the returned string follows
- the language format assumed the HII Database.
+ the language format assumed in the HII Database.
If HiiHandle is NULL, then ASSERT().
@@ -251,7 +251,7 @@ HiiGetSupportedLanguages ( /**
Allocates and returns a Null-terminated Unicode <ConfigHdr> string using routing
information that includes a GUID, an optional Unicode string name, and a device
- path. The string returned is allocated with AllocatePool(). The caller is
+ path. The string returned is allocated with AllocatePool(). The caller is
responsible for freeing the allocated string with FreePool().
The format of a <ConfigHdr> is as follows:
@@ -287,7 +287,7 @@ HiiConstructConfigHdr ( /**
Reset the default value specified by DefaultId to the driver
- configuration got by Request string.
+ configuration specified by the Request string.
NULL request string support depends on the ExportConfig interface of
HiiConfigRouting protocol in UEFI specification.
@@ -298,8 +298,8 @@ HiiConstructConfigHdr ( entirety of the current HII database will be reset.
@param DefaultId Specifies the type of defaults to retrieve.
- @retval TURE The default value is set successfully.
- @retval FALSE The default value can't be found and set.
+ @retval TURE The default value was set successfully.
+ @retval FALSE The default value was not found.
**/
BOOLEAN
EFIAPI
@@ -309,14 +309,14 @@ HiiSetToDefaults ( );
/**
- Validate the current configuration by parsing HII form IFR opcode.
+ Validate the current configuration by parsing the IFR opcode in HII form.
NULL request string support depends on the ExtractConfig interface of
- HiiConfigRouting protocol in UEFI specification.
+ HiiConfigRouting protocol in the UEFI specification.
@param Request A null-terminated Unicode string in
<MultiConfigRequest> format. It can be NULL.
- If it is NULL, all current configuration for the
+ If it is NULL, all current configurations for the
entirety of the current HII database will be validated.
@retval TURE Current configuration is valid.
@@ -350,7 +350,7 @@ HiiIsConfigHdrMatch ( );
/**
- Retrieves uncommited data from the Form Browser and converts it to a binary
+ Retrieves uncommitted data from the Form Browser and converts it to a binary
buffer.
@param[in] VariableName Pointer to a Null-terminated Unicode string. This
@@ -418,7 +418,7 @@ HiiSetBrowserData ( an EFI_HII_TIME structure in an EFI_IFR_TYPE_VALUE union.
@param Hour The hour value to be encoded.
- @param Minute The miniute value to be encoded.
+ @param Minute The minute value to be encoded.
@param Second The second value to be encoded.
@return A 64-bit containing Hour, Minute, and Second.
@@ -882,14 +882,14 @@ HiiCreateOrderedListOpCode ( comparisons of IFR opcodes are performed from the beginning of the form being
updated until an IFR opcode is found that exactly matches the first IFR opcode
specifed by StartOpCodeHandle. The following rules are used to determine if
- an insert, replace, or delete operation is performed.
+ an insert, replace, or delete operation is performed:
1) If no matches are found, then NULL is returned.
2) If a match is found, and EndOpCodeHandle is NULL, then all of the IFR opcodes
from StartOpcodeHandle except the first opcode are inserted immediately after
the matching IFR opcode in the form beng updated.
3) If a match is found, and EndOpCodeHandle is not NULL, then a search is made
- from the matching IFR opcode until an IFR opcode exatly matches the first
+ from the matching IFR opcode until an IFR opcode exactly matches the first
IFR opcode specified by EndOpCodeHandle. If no match is found for the first
IFR opcode specified by EndOpCodeHandle, then NULL is returned. If a match
is found, then all of the IFR opcodes between the start match and the end
@@ -915,12 +915,12 @@ HiiCreateOrderedListOpCode ( @param[in] EndOpCodeHandle An OpCcode Handle that contains the IFR opcode
that marks the end of a replace operation in
the form. This is an optional parameter that
- may be NULL. If it is NULL, then an the IFR
+ may be NULL. If it is NULL, then the IFR
opcodes specified by StartOpCodeHandle are
inserted into the form.
- @retval EFI_OUT_OF_RESOURCES No enough memory resource is allocated.
- @retval EFI_NOT_FOUND The following cases will return EFI_NOT_FOUND.
+ @retval EFI_OUT_OF_RESOURCES Not enough memory resources are allocated.
+ @retval EFI_NOT_FOUND The following cases will return EFI_NOT_FOUND:
1) The form specified by HiiHandle, FormSetGuid,
and FormId could not be found in the HII Database.
2) No IFR opcodes in the target form match the first
diff --git a/MdeModulePkg/Include/Library/IpIoLib.h b/MdeModulePkg/Include/Library/IpIoLib.h index a4fbcfd1a3..daf8c308a1 100644 --- a/MdeModulePkg/Include/Library/IpIoLib.h +++ b/MdeModulePkg/Include/Library/IpIoLib.h @@ -1,6 +1,6 @@ /** @file
Ihis library is only intended to be used by UEFI network stack modules.
- It provides IpIo layer upon EFI IP4 Protocol.
+ It provides the IpIo layer on the EFI IP4 Protocol.
Copyright (c) 2005 - 2008, Intel Corporation.<BR>
All rights reserved. This program and the accompanying materials
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Library/NetLib.h>
//
-// type and code define for ICMP protocol error got
+// type and code define for ICMP protocol error
// from IP
//
#define ICMP_TYPE_UNREACH 3
@@ -44,7 +44,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define ICMP_CODE_UNREACH_TOSHOST 12
/**
- Get the IP header length from EFI_IP4_HEADER struct. HeaderLength is
+ Get the IP header length from the struct EFI_IP4_HEADER. HeaderLength is
Internet header length in 32-bit words, so HeaderLength<<2 is the real
length of IP header.
@@ -98,7 +98,7 @@ typedef enum { } ICMP_ERROR;
///
-/// The helper struct for IpIoGetIcmpErrStatus(). It is internal-use only.
+/// The helper struct for IpIoGetIcmpErrStatus(). It is for internal use only.
///
typedef struct {
BOOLEAN IsHard;
@@ -121,7 +121,7 @@ typedef struct _EFI_NET_SESSION_DATA { @param[in] IcmpErr Valid when Status is EFI_ICMP_ERROR
@param[in] NetSession The IP session for the received packet
@param[in] Pkt Packet received
- @param[in] Context The data provided by user for the received packet when
+ @param[in] Context The data provided by the user for the received packet when
the callback is registered in IP_IO_OPEN_DATA::RcvdContext.
**/
@@ -155,7 +155,7 @@ VOID );
///
-/// The data structure wraps Ip4 instance. It is used by IpIo Library to do all
+/// This data structure wraps Ip4 instances. The IpIo Library uses it for all
/// Ip4 operations.
///
typedef struct _IP_IO {
@@ -203,7 +203,7 @@ typedef struct _IP_IO { } IP_IO;
///
-/// The struct is used for user to pass IP configuration and callbacks to IP_IO.
+/// The struct is for the user to pass IP configuration and callbacks to IP_IO.
/// It is used by IpIoOpen().
///
typedef struct _IP_IO_OPEN_DATA {
@@ -289,8 +289,8 @@ IpIoDestroy ( /**
Stop an IP_IO instance.
- This function is paired with IpIoOpen(). The IP_IO will be unconfigured and all
- the pending send/receive tokens will be canceled.
+ This function is paired with IpIoOpen(). The IP_IO will be unconfigured, and all
+ pending send/receive tokens will be canceled.
@param[in, out] IpIo Pointer to the IP_IO instance that needs to stop.
@@ -334,14 +334,14 @@ IpIoOpen ( Send out an IP packet.
This function is called after IpIoOpen(). The data to be sent are wrapped in
- Pkt. The IP instance wrapped in IpIo is used for sending by default but can be
- overriden by Sender. Other sending configs, like source address and gateway
- address etc., are specified in OverrideData.
+ Pkt. The IP instance wrapped in IpIo is used for sending by default, but can be
+ overriden by Sender. Other sending configurations, such as source address and gateway
+ address, are specified in OverrideData.
@param[in, out] IpIo Pointer to an IP_IO instance used for sending IP
packet.
@param[in, out] Pkt Pointer to the IP packet to be sent.
- @param[in] Sender The IP protocol instance used for sending.
+ @param[in] Sender Optional. The IP protocol instance used for sending.
@param[in] Context Optional context data.
@param[in] NotifyData Optional notify data.
@param[in] Dest The destination IP address to send this packet to.
@@ -386,8 +386,8 @@ IpIoCancelTxToken ( can later use IpIoFindSender() to get the IP_IO and call IpIoSend() to send
data.
- @param[in, out] IpIo Pointer to a IP_IO instance to add a new IP
- instance for sending purpose.
+ @param[in, out] IpIo Pointer to an IP_IO instance to add a new IP
+ instance for sending purposes.
@return Pointer to the created IP_IO_IP_INFO structure, NULL if failed.
@@ -404,14 +404,14 @@ IpIoAddIp ( @param[in, out] IpInfo Pointer to the IP_IO_IP_INFO instance.
@param[in, out] Ip4ConfigData The IP4 configure data used to configure the IP
- instance, if NULL the IP instance is reset. If
+ instance. If NULL, the IP instance is reset. If
UseDefaultAddress is set to TRUE, and the configure
operation succeeds, the default address information
is written back in this Ip4ConfigData.
- @retval EFI_SUCCESS The IP instance of this IpInfo is configured successfully
- or no need to reconfigure it.
- @retval Others Configuration fails.
+ @retval EFI_SUCCESS The IP instance of this IpInfo is configured successfully,
+ or there is no need to reconfigure it.
+ @retval Others Configuration failed.
**/
EFI_STATUS
@@ -442,7 +442,7 @@ IpIoRemoveIp ( /**
Find the first IP protocol maintained in IpIo whose local
- address is the same with Src.
+ address is the same as Src.
This function is called when the caller needs the IpIo to send data to the
specified Src. The IpIo was added previously by IpIoAddIp().
diff --git a/MdeModulePkg/Include/Library/MemoryTestLib.h b/MdeModulePkg/Include/Library/MemoryTestLib.h index 12c043c193..39d96d7682 100644 --- a/MdeModulePkg/Include/Library/MemoryTestLib.h +++ b/MdeModulePkg/Include/Library/MemoryTestLib.h @@ -26,8 +26,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @param Length Length of the memory range to test.
@param ErrorAddress Address of the memory where error is encountered.
- @retval RETURN_SUCCESS The memory range passes test.
- @retval RETURN_DEVICE_ERROR The memory range does not pass test.
+ @retval RETURN_SUCCESS The memory range passed the test.
+ @retval RETURN_DEVICE_ERROR The memory range failed the test.
**/
RETURN_STATUS
@@ -39,7 +39,7 @@ QuickMemoryTest ( );
/**
- Test a system memory range with sparsely sampled memory units.
+ Tests a system memory range with sparsely sampled memory units.
This function tests a system memory range, whose memory units
are sampled sparsely. It leads to relatively good performance
@@ -49,8 +49,8 @@ QuickMemoryTest ( @param Length Length of the memory range to test.
@param ErrorAddress Address of the memory where error is encountered.
- @retval RETURN_SUCCESS The memory range passes test.
- @retval RETURN_DEVICE_ERROR The memory range does not pass test.
+ @retval RETURN_SUCCESS The memory range passed the test.
+ @retval RETURN_DEVICE_ERROR The memory range failed the test.
**/
RETURN_STATUS
@@ -64,7 +64,7 @@ SparseMemoryTest ( /**
Test a system memory range with extensively sampled memory units.
- This function tests a system memory range, whose memory units
+ This function tests a system memory range whose memory units
are sampled extensively. Compared with SparseMemoryTest, it achieves
more reliability and less performance.
@@ -72,8 +72,8 @@ SparseMemoryTest ( @param Length Length of the memory range to test.
@param ErrorAddress Address of the memory where error is encountered.
- @retval RETURN_SUCCESS The memory range passes test.
- @retval RETURN_DEVICE_ERROR The memory range does not pass test.
+ @retval RETURN_SUCCESS The memory range passed the test.
+ @retval RETURN_DEVICE_ERROR The memory range failed the test.
**/
RETURN_STATUS
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h index b057cbd2ce..c1519fea23 100644 --- a/MdeModulePkg/Include/Library/NetLib.h +++ b/MdeModulePkg/Include/Library/NetLib.h @@ -1,6 +1,6 @@ /** @file
Ihis library is only intended to be used by UEFI network stack modules.
- It provides basic function for UEFI network stack.
+ It provides basic functions for the UEFI network stack.
Copyright (c) 2005 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -76,7 +76,7 @@ typedef struct { //
-// ICMP head definition. ICMP message is categoried as either an error
+// ICMP head definition. Each ICMP message is categorized as either an error
// message or query message. Two message types have their own head format.
//
typedef struct {
@@ -163,13 +163,13 @@ typedef struct { /**
Return the length of the mask.
- Return the length of the mask, the correct value is from 0 to 32.
+ Return the length of the mask. Valid values are 0 to 32.
If the mask is invalid, return the invalid length 33, which is IP4_MASK_NUM.
NetMask is in the host byte order.
@param[in] NetMask The netmask to get the length from.
- @return The length of the netmask, IP4_MASK_NUM if the mask is invalid.
+ @return The length of the netmask, or IP4_MASK_NUM (33) if the mask is invalid.
**/
INTN
@@ -211,13 +211,13 @@ NetGetIpClass ( If Ip is 0, IP is not a valid unicast address.
Class D address is used for multicasting and class E address is reserved for future. If Ip
- belongs to class D or class E, IP is not a valid unicast address.
- If all bits of the host address of IP are 0 or 1, IP is also not a valid unicast address.
+ belongs to class D or class E, Ip is not a valid unicast address.
+ If all bits of the host address of Ip are 0 or 1, Ip is not a valid unicast address.
@param[in] Ip The IP to check against.
@param[in] NetMask The mask of the IP.
- @return TRUE if IP is a valid unicast address on the network, otherwise FALSE.
+ @return TRUE if Ip is a valid unicast address on the network, otherwise FALSE.
**/
BOOLEAN
@@ -245,7 +245,7 @@ extern EFI_IPv4_ADDRESS mZeroIp4Addr; /**
Extract a UINT32 from a byte stream.
- Copy a UINT32 from a byte stream, then converts it from Network
+ This function copies a UINT32 from a byte stream, and then converts it from Network
byte order to host byte order. Use this function to avoid alignment error.
@param[in] Buf The buffer to extract the UINT32.
@@ -260,9 +260,9 @@ NetGetUint32 ( );
/**
- Put a UINT32 to the byte stream in network byte order.
+ Puts a UINT32 into the byte stream in network byte order.
- Converts a UINT32 from host byte order to network byte order. Then copy it to the
+ Converts a UINT32 from host byte order to network byte order, and then copies it to the
byte stream.
@param[in, out] Buf The buffer to put the UINT32.
@@ -280,10 +280,10 @@ NetPutUint32 ( Initialize a random seed using current time.
Get current time first. Then initialize a random seed based on some basic
- mathematics operation on the hour, day, minute, second, nanosecond and year
+ mathematical operations on the hour, day, minute, second, nanosecond and year
of the current time.
- @return The random seed initialized with current time.
+ @return The random seed, initialized with current time.
**/
UINT32
@@ -300,13 +300,13 @@ NetRandomInitSeed ( CR(Entry, Type, Field, Sig)
//
-// Iterate through the doule linked list. It is NOT delete safe
+// Iterate through the double linked list. It is NOT delete safe
//
#define NET_LIST_FOR_EACH(Entry, ListHead) \
for(Entry = (ListHead)->ForwardLink; Entry != (ListHead); Entry = Entry->ForwardLink)
//
-// Iterate through the doule linked list. This is delete-safe.
+// Iterate through the double linked list. This is delete-safe.
// Don't touch NextEntry. Also, don't use this macro if list
// entries other than the Entry may be deleted when processing
// the current Entry.
@@ -318,7 +318,7 @@ NetRandomInitSeed ( )
//
-// Make sure the list isn't empty before get the frist/last record.
+// Make sure the list isn't empty before getting the first/last record.
//
#define NET_LIST_HEAD(ListHead, Type, Field) \
NET_LIST_USER_STRUCT((ListHead)->ForwardLink, Type, Field)
@@ -330,8 +330,8 @@ NetRandomInitSeed ( /**
Remove the first node entry on the list, and return the removed node entry.
- Removes the first node Entry from a doubly linked list. It is up to the caller of
- this function to release the memory used by the first node if that is required. On
+ Removes the first node entry from a doubly linked list. It is up to the caller of
+ this function to release the memory used by the first node, if that is required. On
exit, the removed node is returned.
If Head is NULL, then ASSERT().
@@ -352,10 +352,10 @@ NetListRemoveHead ( );
/**
- Remove the last node entry on the list and and return the removed node entry.
+ Remove the last node entry on the list and return the removed node entry.
Removes the last node entry from a doubly linked list. It is up to the caller of
- this function to release the memory used by the first node if that is required. On
+ this function to release the memory used by the first node, if that is required. On
exit, the removed node is returned.
If Head is NULL, then ASSERT().
@@ -378,10 +378,10 @@ NetListRemoveTail ( /**
Insert a new node entry after a designated node entry of a doubly linked list.
- Inserts a new node entry donated by NewEntry after the node entry donated by PrevEntry
+ Inserts a new node entry designated by NewEntry after the node entry designated by PrevEntry
of the doubly linked list.
- @param[in, out] PrevEntry The previous entry to insert after.
+ @param[in, out] PrevEntry The entry after which to insert.
@param[in, out] NewEntry The new entry to insert.
**/
@@ -395,7 +395,7 @@ NetListInsertAfter ( /**
Insert a new node entry before a designated node entry of a doubly linked list.
- Inserts a new node entry donated by NewEntry after the node entry donated by PostEntry
+ Inserts a new node entry designated by NewEntry before the node entry designated by PostEntry
of the doubly linked list.
@param[in, out] PostEntry The entry to insert before.
@@ -451,9 +451,9 @@ NetMapInit ( /**
To clean up the netmap, that is, release allocated memories.
- Removes all nodes of the Used doubly linked list and free memory of all related netmap items.
+ Removes all nodes of the Used doubly linked list and frees memory of all related netmap items.
Removes all nodes of the Recycled doubly linked list and free memory of all related netmap items.
- The number of the <Key, Value> pairs in the netmap is set to be zero.
+ The number of the <Key, Value> pairs in the netmap is set to zero.
If Map is NULL, then ASSERT().
@@ -550,7 +550,7 @@ NetMapInsertTail ( );
/**
- Find the key in the netmap and returns the point to the item contains the Key.
+ Finds the key in the netmap and returns the point to the item containing the Key.
Iterate the Used doubly linked list of the netmap to get every item. Compare the key of every
item with the key to search. It returns the point to the item contains the Key if found.
@@ -695,9 +695,9 @@ NetMapIterate ( @param[in] Controller The controller which has the service installed.
@param[in] Image The image handle used to open service.
@param[in] ServiceBindingGuid The service's Guid.
- @param[in, out] ChildHandle The handle to receive the create child.
+ @param[in, out] ChildHandle The handle to receive the created child.
- @retval EFI_SUCCESS The child is successfully created.
+ @retval EFI_SUCCESS The child was successfully created.
@retval Others Failed to create the child.
**/
@@ -711,7 +711,7 @@ NetLibCreateServiceChild ( );
/**
- Destory a child of the service that is identified by ServiceBindingGuid.
+ Destroy a child of the service that is identified by ServiceBindingGuid.
Get the ServiceBinding Protocol first, then use it to destroy a child.
@@ -720,10 +720,10 @@ NetLibCreateServiceChild ( @param[in] Controller The controller which has the service installed.
@param[in] Image The image handle used to open service.
@param[in] ServiceBindingGuid The service's Guid.
- @param[in] ChildHandle The child to destory.
+ @param[in] ChildHandle The child to destroy.
- @retval EFI_SUCCESS The child is successfully destoried.
- @retval Others Failed to destory the child.
+ @retval EFI_SUCCESS The child is successfully destroyed.
+ @retval Others Failed to destroy the child.
**/
EFI_STATUS
@@ -742,18 +742,18 @@ NetLibDestroyServiceChild ( Get the mac address of the Simple Network protocol from the SnpHandle. Then convert
the mac address into a unicode string. It takes 2 unicode characters to represent
- a 1 byte binary buffer. Plus one unicode character for the null-terminator.
+ a 1 byte binary buffer, plus one unicode character for the null terminator.
- @param[in] SnpHandle The handle where the simple network protocol is
- installed on.
- @param[in] ImageHandle The image handle used to act as the agent handle to
+ @param[in] SnpHandle The handle on which the simple network protocol is
+ installed.
+ @param[in] ImageHandle The image handle to act as the agent handle to
get the simple network protocol.
@param[out] MacString The pointer to store the address of the string
representation of the mac address.
- @retval EFI_SUCCESS Convert the mac address a unicode string successfully.
- @retval EFI_OUT_OF_RESOURCES There are not enough memory resource.
+ @retval EFI_SUCCESS Converted the mac address a unicode string successfully.
+ @retval EFI_OUT_OF_RESOURCES There are not enough memory resources.
@retval Others Failed to open the simple network protocol.
**/
@@ -799,8 +799,8 @@ NetLibCreateIPv4DPathNode ( /**
Find the UNDI/SNP handle from controller and protocol GUID.
- For example, IP will open a MNP child to transmit/receive
- packets, when MNP is stopped, IP should also be stopped. IP
+ For example, IP will open an MNP child to transmit/receive
+ packets. When MNP is stopped, IP should also be stopped. IP
needs to find its own private data which is related the IP's
service binding instance that is install on UNDI/SNP handle.
Now, the controller is either a MNP or ARP child handle. But
@@ -926,8 +926,8 @@ typedef struct { } NET_VECTOR;
//
-//NET_BLOCK_OP operate on the NET_BLOCK, It specifies
-//where the actual fragment begins and where it ends
+//NET_BLOCK_OP operates on the NET_BLOCK. It specifies
+//where the actual fragment begins and ends
//
typedef struct {
UINT8 *BlockHead; // Block's head, or the smallest valid Head
@@ -940,13 +940,12 @@ typedef struct { //
//NET_BUF is the buffer manage structure used by the
-//network stack. Every network packet may be fragmented,
-//and contains multiple fragments. The Vector points to
-//memory blocks used by the each fragment, and BlockOp
+//network stack. Every network packet may be fragmented. The Vector points to
+//memory blocks used by each fragment, and BlockOp
//specifies where each fragment begins and ends.
//
-//It also contains a opaque area for protocol to store
-//per-packet informations. Protocol must be caution not
+//It also contains an opaque area for the protocol to store
+//per-packet information. Protocol must be careful not
//to overwrite the members after that.
//
typedef struct {
@@ -967,7 +966,7 @@ typedef struct { //
-//A queue of NET_BUFs, It is just a thin extension of
+//A queue of NET_BUFs. It is a thin extension of
//NET_BUF functions.
//
typedef struct {
@@ -1043,8 +1042,8 @@ NetbufAlloc ( Decrease the reference count of the net buffer by one. Free the associated net
vector and itself if the reference count of the net buffer is decreased to 0.
- The net vector free operation just decrease the reference count of the net
- vector by one and do the real resource free operation when the reference count
+ The net vector free operation decreases the reference count of the net
+ vector by one, and performs the resource free operation when the reference count
of the net vector is 0.
@param[in] Nbuf Pointer to the NET_BUF to be freed.
@@ -1060,8 +1059,8 @@ NetbufFree ( Get the index of NET_BLOCK_OP that contains the byte at Offset in the net
buffer.
- This can be used to, for example, retrieve the IP header in the packet. It
- also can be used to get the fragment that contains the byte which is used
+ For example, this function can be used to retrieve the IP header in the packet. It
+ also can be used to get the fragment that contains the byte used
mainly by the library implementation itself.
@param[in] Nbuf Pointer to the net buffer.
@@ -1152,7 +1151,7 @@ NetbufGetFragment ( /**
Reserve some space in the header room of the net buffer.
- Upon allocation, all the space are in the tail room of the buffer. Call this
+ Upon allocation, all the space is in the tail room of the buffer. Call this
function to move some space to the header room. This function is quite limited
in that it can only reserve space from the first block of an empty NET_BUF not
built from the external. But it should be enough for the network stack.
@@ -1196,8 +1195,8 @@ NetbufAllocSpace ( @param[in] FromHead The flag to indicate whether trim data from head
(TRUE) or tail (FALSE).
- @return Length of the actually trimmed data, which is possible to be less
- than Len because the TotalSize of Nbuf is less than Len.
+ @return Length of the actually trimmed data, which may be less
+ than Len if the TotalSize of Nbuf is less than Len.
**/
UINT32
@@ -1212,7 +1211,7 @@ NetbufTrim ( Copy Len bytes of data from the specific offset of the net buffer to the
destination memory.
- The Len bytes of data may cross the several fragments of the net buffer.
+ The Len bytes of data may cross several fragments of the net buffer.
@param[in] Nbuf Pointer to the net buffer.
@param[in] Offset The sequence number of the first byte to copy.
@@ -1235,17 +1234,17 @@ NetbufCopy ( /**
Build a NET_BUF from external blocks.
- A new NET_BUF structure will be created from external blocks. Additional block
+ A new NET_BUF structure will be created from external blocks. An additional block
of memory will be allocated to hold reserved HeadSpace bytes of header room
- and existing HeadLen bytes of header but the external blocks are shared by the
+ and existing HeadLen bytes of header, but the external blocks are shared by the
net buffer to avoid data copying.
@param[in] ExtFragment Pointer to the data block.
@param[in] ExtNum The number of the data blocks.
@param[in] HeadSpace The head space to be reserved.
- @param[in] HeadLen The length of the protocol header, This function
- will pull that number of data into a linear block.
- @param[in] ExtFree Pointer to the caller provided free function.
+ @param[in] HeadLen The length of the protocol header. The function
+ pulls this amount of data into a linear block.
+ @param[in] ExtFree Pointer to the caller-provided free function.
@param[in] Arg The argument passed to ExtFree when ExtFree is
called.
@@ -1273,7 +1272,7 @@ NetbufFromExt ( @param[in, out] ExtFragment Pointer to the data block.
@param[in, out] ExtNum The number of the data blocks.
- @retval EFI_BUFFER_TOO_SMALL The number of non-empty block is bigger than
+ @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than
ExtNum.
@retval EFI_SUCCESS Fragment table is built successfully.
@@ -1294,8 +1293,8 @@ NetbufBuildExt ( @param[in] BufList A List of the net buffer.
@param[in] HeadSpace The head space to be reserved.
- @param[in] HeaderLen The length of the protocol header, This function
- will pull that number of data into a linear block.
+ @param[in] HeaderLen The length of the protocol header. The function
+ pulls this amount of data into a linear block.
@param[in] ExtFree Pointer to the caller provided free function.
@param[in] Arg The argument passed to ExtFree when ExtFree is called.
@@ -1421,8 +1420,8 @@ NetbufQueCopy ( );
/**
- Trim Len bytes of data from the queue header, release any of the net buffer
- whom is trimmed wholely.
+ Trim Len bytes of data from the queue header and release any net buffer
+ that is trimmed wholely.
The trimming operation is the same as NetbufTrim but applies to the net buffer
queue instead of the net buffer.
diff --git a/MdeModulePkg/Include/Library/RecoveryLib.h b/MdeModulePkg/Include/Library/RecoveryLib.h index a724c9ed28..484ff76c3a 100644 --- a/MdeModulePkg/Include/Library/RecoveryLib.h +++ b/MdeModulePkg/Include/Library/RecoveryLib.h @@ -16,10 +16,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define __RECOVERY_LIB_H__
/**
- Calling this function causes the system do recovery boot path.
+ Calling this function causes the system to carry out a recovery boot path.
- @retval EFI_SUCESS Sucess to do recovery.
- @retval Others Fail to do recovery.
+ @retval EFI_SUCESS Sucess.
+ @retval Others Failure.
**/
EFI_STATUS
diff --git a/MdeModulePkg/Include/Library/ResetSystemLib.h b/MdeModulePkg/Include/Library/ResetSystemLib.h index fd92135d7a..f77c441ad5 100644 --- a/MdeModulePkg/Include/Library/ResetSystemLib.h +++ b/MdeModulePkg/Include/Library/ResetSystemLib.h @@ -1,6 +1,6 @@ /** @file
System reset Library Services. This library class defines a set of
- methods to reset whole system.
+ methods that reset the whole system.
Copyright (c) 2005 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -17,13 +17,12 @@ #define __RESET_SYSTEM_LIB_H__
/**
- Calling this function causes a system-wide reset. This sets
- all circuitry within the system to its initial state. This type of reset
+ This function causes a system-wide reset (cold reset), in which
+ all circuitry within the system returns to its initial state. This type of reset
is asynchronous to system operation and operates without regard to
cycle boundaries.
- System reset should not return, if it returns, it means the system does
- not support cold reset.
+ If this function returns, it means that the system does not support cold reset.
**/
VOID
EFIAPI
@@ -32,11 +31,10 @@ ResetCold ( );
/**
- Calling this function causes a system-wide initialization. The processors
- are set to their initial state, and pending cycles are not corrupted.
+ This function causes a system-wide initialization (warm reset), in which all processors
+ are set to their initial state. Pending cycles are not corrupted.
- System reset should not return, if it returns, it means the system does
- not support warm reset.
+ If this function returns, it means that the system does not support warm reset.
**/
VOID
EFIAPI
@@ -45,10 +43,10 @@ ResetWarm ( );
/**
- Calling this function causes the system to enter a power state equivalent
+ This function causes the system to enter a power state equivalent
to the ACPI G2/S5 or G3 states.
- System shutdown should not return, if it returns, it means the system does
+ If this function returns, it means the system does
not support shut down reset.
**/
VOID
@@ -58,11 +56,11 @@ ResetShutdown ( );
/**
- Calling this function causes the system to enter S3 and then
+ This function causes the system to enter S3 and then
wake up immediately.
- Reset update should not return, if it returns, it means the
- library does not the feature.
+ If this function returns, it means the
+ system does not support the feature.
**/
VOID
EFIAPI
diff --git a/MdeModulePkg/Include/Library/S3Lib.h b/MdeModulePkg/Include/Library/S3Lib.h index c8fa22aaba..f97b6b5460 100644 --- a/MdeModulePkg/Include/Library/S3Lib.h +++ b/MdeModulePkg/Include/Library/S3Lib.h @@ -1,5 +1,5 @@ /** @file
- S3 library class defines a set of methods related do S3 boot mode.
+ S3 library class defines a set of methods related to S3 boot mode.
Copyright (c) 2005 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
@@ -18,8 +18,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /**
This function is responsible for calling the S3 resume vector in the ACPI Tables.
- @retval EFI_SUCESS Sucess to restore config from S3.
- @retval Others Fail to restore config from S3.
+ @retval EFI_SUCESS Successfully restored config from S3.
+ @retval Others Failed to restore config from S3.
**/
EFI_STATUS
diff --git a/MdeModulePkg/Include/Library/UdpIoLib.h b/MdeModulePkg/Include/Library/UdpIoLib.h index 8d6b11940c..30a46fab04 100644 --- a/MdeModulePkg/Include/Library/UdpIoLib.h +++ b/MdeModulePkg/Include/Library/UdpIoLib.h @@ -1,5 +1,5 @@ /** @file
- Ihis library is only intended to be used by UEFI network stack modules.
+ This library is used to share code between UEFI network stack modules.
It provides the helper routines to access UDP service. It is used by both DHCP and MTFTP.
Copyright (c) 2006 - 2008, Intel Corporation.<BR>
@@ -42,12 +42,12 @@ typedef struct { } UDP_POINTS;
/**
- Prototype called when receiving or sending packets from/to a UDP point.
+ Prototype called when receiving or sending packets to or from a UDP point.
This prototype is used by both receive and sending when calling
- UdpIoRecvDatagram() or UdpIoSendDatagram(). When receiving, Netbuf is allocated by
- UDP access point, and released by user. When sending, the NetBuf is from user,
- and provided to the callback as a reference.
+ UdpIoRecvDatagram() or UdpIoSendDatagram(). When receiving, Netbuf is allocated by the
+ UDP access point and released by the user. When sending, the user allocates the the NetBuf, which is then
+ provided to the callback as a reference.
@param[in] Packet Packet received or sent
@param[in] Points The Udp4 address pair corresponds to the Udp4 IO
@@ -65,7 +65,7 @@ VOID );
///
-/// This structure is used internally by UdpIo Library.
+/// This structure is used internally by the UdpIo Library.
///
/// Each receive request is wrapped in an UDP_RX_TOKEN. Upon completion,
/// the CallBack will be called. Only one receive request is sent to UDP at a
@@ -87,7 +87,7 @@ typedef struct { /// This structure is used internally by UdpIo Library.
///
/// Each transmit request is wrapped in an UDP_TX_TOKEN. Upon completion,
-/// the CallBack will be called. There can be several transmit requests and they
+/// the CallBack will be called. There can be several transmit requests. All transmit requests
/// are linked in a list.
///
typedef struct {
@@ -109,8 +109,8 @@ typedef struct { ///
/// Type defined as UDP_IO_PORT.
///
-/// The data structure wraps Udp4 instance and its configuration. It is used by
-/// UdpIo Library to do all Udp4 operations.
+/// This data structure wraps the Udp4 instance and configuration.
+/// UdpIo Library uses this structure for all Udp4 operations.
///
struct _UDP_IO_PORT {
UINT32 Signature;
@@ -140,7 +140,7 @@ struct _UDP_IO_PORT { @param[in] UdpIo The UDP_IO_PORT to configure
@param[in] Context User-defined data when calling UdpIoCreatePort()
- @retval EFI_SUCCESS The configure process succeeds
+ @retval EFI_SUCCESS The configuration succeeded
@retval Others The UDP_IO_PORT fails to configure indicating
UdpIoCreatePort() should fail
**/
@@ -157,7 +157,7 @@ EFI_STATUS @param[in] Token The UDP_TX_TOKEN to decide whether to cancel
@param[in] Context User-defined data in UdpIoCancelDgrams()
- @retval TRUE To cancel the UDP_TX_TOKEN
+ @retval TRUE Cancel the UDP_TX_TOKEN
@retval FALSE Do not cancel this UDP_TX_TOKEN
**/
@@ -169,13 +169,12 @@ BOOLEAN );
/**
- Cancel all the sent datagram that pass the selection criteria of ToCancel.
+ Cancel all sent datagrams selected by the parameter ToCancel.
If ToCancel is NULL, all the datagrams are cancelled.
@param[in] UdpIo The UDP_IO_PORT to cancel packet.
@param[in] IoStatus The IoStatus to return to the packet owners.
- @param[in] ToCancel The select funtion to test whether to cancel this
- packet or not.
+ @param[in] ToCancel Sets the criteria for canceling a packet.
@param[in] Context The opaque parameter to the ToCancel.
**/
@@ -189,14 +188,14 @@ UdpIoCancelDgrams ( );
/**
- Create a UDP_IO_PORT to access the UDP service. It will create and configure
+ Creates a UDP_IO_PORT to access the UDP service. It creates and configures
a UDP child.
- The function will locate the UDP service binding prototype on the Controller
- parameter and use it to create a UDP child (aka Udp instance). Then the UDP
- child will be configured by calling Configure function prototype. Any failures
- in creating or configure the UDP child will lead to the failure of UDP_IO_PORT
- creation.
+ This function:
+ # locates the UDP service binding prototype on the Controller parameter
+ # uses the UDP service binding prototype to create a UDP child (also known as a UDP instance)
+ # configures the UDP child by calling Configure function prototype.
+ Any failures in creating or configuring the UDP child return NULL for failure.
@param[in] Controller The controller that has the UDP service binding.
protocol installed.
@@ -219,7 +218,7 @@ UdpIoCreatePort ( /**
Free the UDP_IO_PORT and all its related resources.
- The function will cancel all sent datagram and receive request.
+ The function cancels all sent datagrams and receive requests.
@param[in] UdpIo The UDP_IO_PORT to free.
@@ -233,11 +232,10 @@ UdpIoFreePort ( );
/**
- Clean up the UDP_IO_PORT without freeing it. The function is called when
- user wants to re-use the UDP_IO_PORT later.
+ Cleans up the UDP_IO_PORT without freeing it. Call this function
+ if you intend to later re-use the UDP_IO_PORT.
- It will release all the transmitted datagrams and receive request. It will
- also configure NULL for the UDP instance.
+ This function releases all transmitted datagrams and receive requests and configures NULL for the UDP instance.
@param[in] UdpIo The UDP_IO_PORT to clean up.
@@ -249,15 +247,15 @@ UdpIoCleanPort ( );
/**
- Send a packet through the UDP_IO_PORT.
+ Sends a packet through the UDP_IO_PORT.
- The packet will be wrapped in UDP_TX_TOKEN. Function Callback will be called
- when the packet is sent. The optional parameter EndPoint overrides the default
- address pair if specified.
+ The packet will be wrapped in UDP_TX_TOKEN. The function specific in the CallBack parameter will be called
+ when the packet is sent. If specified, the optional parameter EndPoint overrides the default
+ address pair.
@param[in] UdpIo The UDP_IO_PORT to send the packet through.
@param[in] Packet The packet to send.
- @param[in] EndPoint The local and remote access point. Override the
+ @param[in] EndPoint The local and remote access point. Overrides the
default address pair set during configuration.
@param[in] Gateway The gateway to use.
@param[in] CallBack The function being called when packet is
@@ -283,7 +281,7 @@ UdpIoSendDatagram ( /**
Cancel a single sent datagram.
- @param[in] UdpIo The UDP_IO_PORT to cancel the packet from
+ @param[in] UdpIo The UDP_IO_PORT from which to cancel the packet
@param[in] Packet The packet to cancel
**/
@@ -298,7 +296,7 @@ UdpIoCancelSentDatagram ( Issue a receive request to the UDP_IO_PORT.
This function is called when upper-layer needs packet from UDP for processing.
- Only one receive request is acceptable at a time so a common usage model is
+ Only one receive request is acceptable at a time. Therefore, one common usage model is
to invoke this function inside its Callback function when the former packet
is processed.
diff --git a/MdeModulePkg/Include/Protocol/Dpc.h b/MdeModulePkg/Include/Protocol/Dpc.h index 4b667d10ec..55b7a0b9a8 100644 --- a/MdeModulePkg/Include/Protocol/Dpc.h +++ b/MdeModulePkg/Include/Protocol/Dpc.h @@ -48,7 +48,7 @@ VOID Add a Deferred Procedure Call to the end of the DPC queue.
@param This Protocol instance pointer.
- @param DpcTpl The EFI_TPL that the DPC should be invoked.
+ @param DpcTpl The EFI_TPL that the DPC should invoke.
@param DpcProcedure Pointer to the DPC's function.
@param DpcContext Pointer to the DPC's context. Passed to DpcProcedure
when DpcProcedure is invoked.
@@ -70,10 +70,11 @@ EFI_STATUS );
/**
- Dispatch the queue of DPCs. ALL DPCs that have been queued with a DpcTpl
- value greater than or equal to the current TPL are invoked in the order that
- they were queued. DPCs with higher DpcTpl values are invoked before DPCs with
- lower DpcTpl values.
+ 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).
@param This Protocol instance pointer.
diff --git a/MdeModulePkg/Include/Protocol/FaultTolerantWrite.h b/MdeModulePkg/Include/Protocol/FaultTolerantWrite.h index d673627249..67a45c1535 100644 --- a/MdeModulePkg/Include/Protocol/FaultTolerantWrite.h +++ b/MdeModulePkg/Include/Protocol/FaultTolerantWrite.h @@ -1,8 +1,8 @@ /** @file
-Fault Tolerant Write protocol provides boot-time service to do fault tolerant
+Fault Tolerant Write protocol provides boot-time service for fault tolerant
write capability for block devices. The protocol provides for non-volatile
-intermediate storage of the data and private information a caller would need to
-recover from a critical fault, such as power failure.
+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, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -29,11 +29,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. typedef struct _EFI_FAULT_TOLERANT_WRITE_PROTOCOL EFI_FAULT_TOLERANT_WRITE_PROTOCOL;
/**
- Query the largest block that may be updated in a fault tolerant manner.
+ Get the size of the largest block that can be updated in a fault-tolerant manner.
@param This Indicates a pointer to the calling context.
- @param BlockSize A pointer to a caller allocated UINTN that is
- updated to indicate the size of the largest block
+ @param BlockSize A pointer to a caller-allocated UINTN that is
+ updated to indicate the size of the largest block
that can be updated.
@retval EFI_SUCCESS The function completed successfully
@@ -49,22 +49,22 @@ EFI_STATUS /**
Allocates space for the protocol to maintain information about writes.
- Since writes must be completed in a fault tolerant manner and multiple
- updates will require more resources to be successful, this function
+ Since writes must be completed in a fault-tolerant manner and multiple
+ writes require more resources to be successful, this function
enables the protocol to ensure that enough space exists to track
- information about the upcoming writes.
+ information about upcoming writes.
- @param This Indicates a pointer to the calling context.
+ @param This A pointer to the calling context.
@param CallerId The GUID identifying the write.
@param PrivateDataSize The size of the caller's private data that must be
recorded for each write.
- @param NumberOfWrites The number of fault tolerant block writes that will
+ @param NumberOfWrites The number of fault tolerant block writes that will
need to occur.
@retval EFI_SUCCESS The function completed successfully
@retval EFI_ABORTED The function could not complete successfully.
- @retval EFI_ACCESS_DENIED All allocated writes have not been completed. All
- writes must be completed or aborted before another
+ @retval EFI_ACCESS_DENIED Not all allocated writes have been completed. All
+ writes must be completed or aborted before another
fault tolerant write can occur.
**/
@@ -79,7 +79,7 @@ EFI_STATUS /**
Starts a target block update. This records information about the write
- in fault tolerant storage and will complete the write in a recoverable
+ in fault tolerant storage, and will complete the write in a recoverable
manner, ensuring at all times that either the original contents or
the modified contents are available.
@@ -89,18 +89,18 @@ EFI_STATUS data.
@param Length The number of bytes to write to the target block.
@param PrivateData A pointer to private data that the caller requires
- to complete any pending writes in the event of a
+ to complete any pending writes in the event of a
fault.
@param FvBlockHandle The handle of FVB protocol that provides services
- for reading, writing, and erasing the target block.
+ for reading, writing, and erasing the target block.
@param Buffer The data to write.
@retval EFI_SUCCESS The function completed successfully
@retval EFI_ABORTED The function could not complete successfully.
- @retval EFI_BAD_BUFFER_SIZE The write would span a block boundary, which is not
+ @retval EFI_BAD_BUFFER_SIZE The write would span a block boundary, which is not
a valid action.
@retval EFI_ACCESS_DENIED No writes have been allocated.
- @retval EFI_NOT_READY The last write has not been completed. Restart ()
+ @retval EFI_NOT_READY The last write has not been completed. Restart()
must be called to complete it.
**/
@@ -122,7 +122,7 @@ EFI_STATUS @param This Calling context.
@param FvBlockProtocol The handle of FVB protocol that provides services
- for reading, writing, and erasing the target block.
+ for reading, writing, and erasing the target block.
@retval EFI_SUCCESS The function completed successfully
@retval EFI_ABORTED The function could not complete successfully.
@@ -137,7 +137,7 @@ EFI_STATUS );
/**
- Aborts all previous allocated writes.
+ Aborts all previously allocated writes.
@param This Calling context
@@ -153,8 +153,8 @@ EFI_STATUS );
/**
- Starts a target block update. This records information about the write
- in fault tolerant storage and will complete the write in a recoverable
+ Starts a target block update. This function records information about the write
+ in fault tolerant storage and completes the write in a recoverable
manner, ensuring at all times that either the original contents or
the modified contents are available.
@@ -163,13 +163,13 @@ EFI_STATUS @param Lba The logical block address of the last write.
@param Offset The offset within the block of the last write.
@param Length The length of the last write.
- @param PrivateDataSize On input, the size of the PrivateData buffer. On
- output, the size of the private data stored for
+ @param PrivateDataSize On input, the size of the PrivateData buffer. On
+ output, the size of the private data stored for
this write.
@param PrivateData A pointer to a buffer. The function will copy
- PrivateDataSize bytes from the private data stored
+ PrivateDataSize bytes from the private data stored
for this write.
- @param Complete A Boolean value with TRUE indicating that the write
+ @param Complete A Boolean value with TRUE indicating that the write
was completed.
@retval EFI_SUCCESS The function completed successfully
diff --git a/MdeModulePkg/Include/Protocol/GenericMemoryTest.h b/MdeModulePkg/Include/Protocol/GenericMemoryTest.h index 68905159d6..1abaf88fda 100644 --- a/MdeModulePkg/Include/Protocol/GenericMemoryTest.h +++ b/MdeModulePkg/Include/Protocol/GenericMemoryTest.h @@ -22,7 +22,7 @@ typedef struct _EFI_GENERIC_MEMORY_TEST_PROTOCOL EFI_GENERIC_MEMORY_TEST_PROTOC ///
/// Memory test coverage level
-/// Ignore op not test memory, Quick and Sparse op test memory quickly, Extensive op test memory detailedly.
+/// Ignore chooses not to test memory, Quick and Sparse test some memory, and Extensive performs a detailed memory test.
///
typedef enum {
IGNORE,
@@ -41,9 +41,7 @@ typedef enum { @param RequireSoftECCInit Indicate if the memory need software ECC init.
@retval EFI_SUCCESS The generic memory test is initialized correctly.
- @retval EFI_NO_MEDIA There is not any non-tested memory found, which means
- that the memory test driver have not detect any
- non-tested extended memory in current system.
+ @retval EFI_NO_MEDIA The system had no memory to be tested.
**/
typedef
@@ -60,15 +58,14 @@ EFI_STATUS @param This Protocol instance pointer.
@param TestedMemorySize Return the tested extended memory size.
- @param TotalMemorySize Return the whole system physical memory size, this
- value may be changed if some error DIMMs is disabled in some case.
- @param ErrorOut TRUE if the memory error occurs.
- @param IfTestAbort Indicate if the user press "ESC" to skip the memory test.
+ @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.
- @retval EFI_SUCCESS One block of memory pass test.
- @retval EFI_NOT_FOUND Indicate all the non-tested memory blocks have been
- already gone through.
- @retval EFI_DEVICE_ERROR Memory device error occurs and no agent can handle it.
+ @retval EFI_SUCCESS One block of memory passed the test.
+ @retval EFI_NOT_FOUND All memory blocks have already been tested.
+ @retval EFI_DEVICE_ERROR Memory device error occured, and no agent can handle it.
**/
typedef
@@ -87,9 +84,7 @@ EFI_STATUS @param This Protocol instance pointer.
- @retval EFI_SUCCESS Success. Then free all the generic memory test driver
- allocated resource and notify to platform memory
- test driver that memory test finished.
+ @retval EFI_SUCCESS Success. All resources used in the memory test are freed.
**/
typedef
@@ -99,8 +94,8 @@ EFI_STATUS );
/**
- Provide capability to test compatible range used by some sepcial
- driver before BDS perform memory test.
+ Provides the capability to test the compatible range used by a special
+ driver.
@param This Protocol instance pointer.
@param StartAddress The start address of the compatible memory range that
diff --git a/MdeModulePkg/Include/Protocol/LoadPe32Image.h b/MdeModulePkg/Include/Protocol/LoadPe32Image.h index b290e14775..42876ad938 100644 --- a/MdeModulePkg/Include/Protocol/LoadPe32Image.h +++ b/MdeModulePkg/Include/Protocol/LoadPe32Image.h @@ -1,7 +1,7 @@ /** @file
- Load Pe32 Image protocol provides capability to load and unload EFI image into memory and execute it.
- This protocol bases on File Device Path to get EFI image.
+ Load Pe32 Image protocol enables loading and unloading EFI images into memory and executing those images.
+ This protocol uses File Device Path to get EFI image.
Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
diff --git a/MdeModulePkg/Include/Protocol/Print2.h b/MdeModulePkg/Include/Protocol/Print2.h index ac544f1c76..de590e89aa 100644 --- a/MdeModulePkg/Include/Protocol/Print2.h +++ b/MdeModulePkg/Include/Protocol/Print2.h @@ -26,15 +26,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. typedef struct _EFI_PRINT2_PROTOCOL EFI_PRINT2_PROTOCOL;
/**
- Produces a Null-terminated Unicode string in an output buffer based on
+ Produces a Null-terminated Unicode string in an output buffer, based on
a Null-terminated Unicode format string and a BASE_LIST argument list
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
and BufferSize.
The Unicode string is produced by parsing the format string specified by FormatString.
- Arguments are pulled from the variable argument list specified by Marker based on the
+ Arguments are pulled from the variable argument list specified by Marker. Marker is constructed based on the
contents of the format string.
- The number of Unicode characters in the produced output buffer is returned not including
+ This function returns the number of Unicode characters in the produced output buffer, not including
the Null-terminator.
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
@@ -55,7 +55,7 @@ typedef struct _EFI_PRINT2_PROTOCOL EFI_PRINT2_PROTOCOL; @param FormatString Null-terminated Unicode format string.
@param Marker BASE_LIST marker for the variable argument list.
- @return The number of Unicode characters in the produced output buffer not including the
+ @return The number of Unicode characters in the produced output buffer, not including the
Null-terminator.
**/
@@ -76,7 +76,7 @@ UINTN and BufferSize.
The Unicode string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list based on the contents of the format string.
- The number of Unicode characters in the produced output buffer is returned not including
+ This function returns the number of Unicode characters in the produced output buffer, not including
the Null-terminator.
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
@@ -112,7 +112,7 @@ UINTN );
/**
- Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
+ Produces a Null-terminated Unicode string in an output buffer, based on a Null-terminated
ASCII format string and a BASE_LIST argument list
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
@@ -120,7 +120,7 @@ UINTN The Unicode string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list specified by Marker based on the
contents of the format string.
- The number of Unicode characters in the produced output buffer is returned not including
+ This function returns the number of Unicode characters in the produced output buffer, not including
the Null-terminator.
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
@@ -155,14 +155,14 @@ UINTN /**
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
- ASCII format string and variable argument list.
+ ASCII format string and a variable argument list.
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
and BufferSize.
The Unicode string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list based on the contents of the
format string.
- The number of Unicode characters in the produced output buffer is returned not including
+ This function returns the number of Unicode characters in the produced output buffer, not including
the Null-terminator.
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
@@ -201,11 +201,11 @@ UINTN 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.
- The number of Unicode 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.
+ 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
+ the first Width characters in the conversion, along with the total number of characters in the conversion.
Additional conversion parameters are specified in Flags.
The Flags bit LEFT_JUSTIFY is always ignored.
@@ -255,7 +255,7 @@ UINTN The ASCII string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list specified by Marker based on
the contents of the format string.
- The number of ASCII characters in the produced output buffer is returned not including
+ This function returns the number of ASCII characters in the output buffer, not including
the Null-terminator.
If BufferSize is 0, then no output buffer is produced and 0 is returned.
@@ -289,14 +289,14 @@ UINTN /**
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
- ASCII format string and variable argument list.
+ ASCII format string and variable argument list.
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
and BufferSize.
The ASCII string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list based on the contents of the
format string.
- The number of ASCII characters in the produced output buffer is returned not including
+ This function returns the number of ASCII characters in the output buffer, not including
the Null-terminator.
If BufferSize is 0, then no output buffer is produced and 0 is returned.
@@ -338,7 +338,7 @@ UINTN The ASCII string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list specified by Marker based on
the contents of the format string.
- The number of ASCII characters in the produced output buffer is returned not including
+ This function returns the number of ASCII characters in the output buffer, not including
the Null-terminator.
If BufferSize is 0, then no output buffer is produced and 0 is returned.
@@ -380,7 +380,7 @@ UINTN The ASCII string is produced by parsing the format string specified by FormatString.
Arguments are pulled from the variable argument list based on the contents of the
format string.
- The number of ASCII characters in the produced output buffer is returned not including
+ This function returns the number of ASCII characters in the output buffer, not including
the Null-terminator.
If BufferSize is 0, then no output buffer is produced and 0 is returned.
@@ -420,7 +420,7 @@ UINTN 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.
+ 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
diff --git a/MdeModulePkg/Include/Protocol/SwapAddressRange.h b/MdeModulePkg/Include/Protocol/SwapAddressRange.h index 046b9a5872..b6898be8d0 100644 --- a/MdeModulePkg/Include/Protocol/SwapAddressRange.h +++ b/MdeModulePkg/Include/Protocol/SwapAddressRange.h @@ -1,9 +1,9 @@ /** @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 any
-power failure happens during updating boot block, the swapped backup block (now is the boot block)
-can boot the machine with old boot block backuped in it. The swap operation is platform dependent, so
-other protocols such as FTW (Fault Tolerant Write) should use this protocol instead of handling hardward directly.
+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, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -36,12 +36,11 @@ typedef struct _EFI_SWAP_ADDRESS_RANGE_PROTOCOL EFI_SWAP_ADDRESS_RANGE_PROTOCOL typedef UINT8 EFI_SWAP_LOCK_CAPABILITY;
//
-// Protocl APIs
+// Protocol APIs
//
/**
- This service gets the address range location of boot block and backup block.
- The EFI_GET_RANGE_LOCATION service allows caller to get the range location of
+ This function gets the address range location of
boot block and backup block.
@param This Indicates the calling context.
@@ -66,8 +65,6 @@ EFI_STATUS /**
This service checks if the boot block and backup block has been swapped.
- The EFI_GET_SWAP_STATE service allows caller to get current swap state of boot block and backup block.
-
@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.
@@ -85,12 +82,11 @@ EFI_STATUS /**
This service swaps the boot block and backup block, or swaps them back.
- The EFI_SET_SWAP_STATE service allows caller to set the swap state of boot block and backup block.
- It also acquires and releases software swap lock during operation. Note the setting of 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 NewSwapState True to swap real boot block and backup block , False to swap them back..
+ @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
@@ -106,15 +102,13 @@ EFI_STATUS /**
- This service checks if a RTC (Real Time Clock) power failure happened.
+ This service checks if a Real Time Clock (RTC) power failure happened.
- The EFI_GET_RTC_POWER_STATUS service allows caller to get Real Time Clock power failure status.
- If parameter RtcPowerFailed is true after function returns, the trickle current (from the main battery or trickle supply)
- has been removed or failed, this means the swap status was lost in some platform (such as IA32).
- So it is recommended to check RTC power status before calling GetSwapState().
+ 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 a RTC (Real Time Clock) power failure has happened.
+ @param RtcPowerFailed True if the RTC (Real Time Clock) power failed or was removed.
@retval EFI_SUCCESS The call was successful.
@@ -127,10 +121,8 @@ EFI_STATUS );
/**
- This service returns supported lock methods for swap operation in current platform. Could be software lock, hardware lock, or unsupport lock.
-
- The EFI_GET_SWAP_LOCK_CAPABILITY service allows caller to get supported lock method for swap operation in current platform.
- Note that software and hardware lock mothod can be used simultaneously.
+ 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 Current lock method for swap operation.
@@ -150,7 +142,6 @@ EFI_STATUS /**
This service is used to acquire or release appointed kind of lock for Swap Address Range operation.
- The EFI_GET_SWAP_LOCK_CAPABILITY service allows caller to get supported lock method for swap operation in current platform.
Note that software and hardware lock mothod can be used simultaneously.
@param This Indicates the calling context.
|