mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
ECC Cleanup: Update Doxygen comment
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6633 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a3a70b6ac1
commit
7064c0a5aa
@ -29,6 +29,13 @@ EFI_GUID mInventoryGuid = INVENTORY_GUID;
|
|||||||
|
|
||||||
CHAR16 VariableName[] = L"MyIfrNVData";
|
CHAR16 VariableName[] = L"MyIfrNVData";
|
||||||
|
|
||||||
|
/**
|
||||||
|
Encode the password using a simple algorithm.
|
||||||
|
|
||||||
|
@param Password The string to be encoded.
|
||||||
|
@param MaxSize The size of the string.
|
||||||
|
|
||||||
|
**/
|
||||||
VOID
|
VOID
|
||||||
EncodePassword (
|
EncodePassword (
|
||||||
IN CHAR16 *Password,
|
IN CHAR16 *Password,
|
||||||
@ -56,10 +63,19 @@ EncodePassword (
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Validate the user's password.
|
||||||
|
|
||||||
|
@param PrivateData This driver's private context data.
|
||||||
|
@param StringId The user's input.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS The user's input matches the password.
|
||||||
|
@retval EFI_NOT_READY The user's input does not match the password.
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ValidatePassword (
|
ValidatePassword (
|
||||||
DRIVER_SAMPLE_PRIVATE_DATA *PrivateData,
|
IN DRIVER_SAMPLE_PRIVATE_DATA *PrivateData,
|
||||||
EFI_STRING_ID StringId
|
IN EFI_STRING_ID StringId
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
@ -138,10 +154,20 @@ ValidatePassword (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Encode the password using a simple algorithm.
|
||||||
|
|
||||||
|
@param PrivateData This driver's private context data.
|
||||||
|
@param StringId The password from User.
|
||||||
|
|
||||||
|
@retval EFI_SUCESS The operation is successful.
|
||||||
|
@return Other value if gRT->SetVariable () fails.
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
SetPassword (
|
SetPassword (
|
||||||
DRIVER_SAMPLE_PRIVATE_DATA *PrivateData,
|
IN DRIVER_SAMPLE_PRIVATE_DATA *PrivateData,
|
||||||
EFI_STRING_ID StringId
|
IN EFI_STRING_ID StringId
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
@ -646,6 +672,15 @@ DriverCallback (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Main entry for this driver.
|
||||||
|
|
||||||
|
@param ImageHandle Image handle this driver.
|
||||||
|
@param SystemTable Pointer to SystemTable.
|
||||||
|
|
||||||
|
@retval EFI_SUCESS This function always complete successfully.
|
||||||
|
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
DriverSampleInit (
|
DriverSampleInit (
|
||||||
|
@ -21,8 +21,8 @@ Revision History
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _DRIVER_SAMPLE_H
|
#ifndef _DRIVER_SAMPLE_H_
|
||||||
#define _DRIVER_SAMPLE_H
|
#define _DRIVER_SAMPLE_H_
|
||||||
|
|
||||||
#include <Uefi.h>
|
#include <Uefi.h>
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ Revision History:
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _NVDATASTRUC_H
|
#ifndef _NVDATASTRUC_H_
|
||||||
#define _NVDATASTRUC_H
|
#define _NVDATASTRUC_H_
|
||||||
|
|
||||||
#define FORMSET_GUID \
|
#define FORMSET_GUID \
|
||||||
{ \
|
{ \
|
||||||
|
@ -89,6 +89,21 @@ CreateStatement (
|
|||||||
return Statement;
|
return Statement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Convert a numeric value to a Unicode String and insert it to String Package.
|
||||||
|
This string is used as the Unicode Name for the EFI Variable. This is to support
|
||||||
|
the deprecated vareqval opcode.
|
||||||
|
|
||||||
|
@param FormSet The FormSet.
|
||||||
|
@param Statement The numeric question whose VarStoreInfo.VarName is the
|
||||||
|
numeric value which is used to produce the Unicode Name
|
||||||
|
for the EFI Variable.
|
||||||
|
|
||||||
|
If the Statement is NULL, the ASSERT.
|
||||||
|
If the opcode is not Numeric, then ASSERT.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS The funtion always succeeds.
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UpdateCheckBoxStringToken (
|
UpdateCheckBoxStringToken (
|
||||||
IN CONST FORM_BROWSER_FORMSET *FormSet,
|
IN CONST FORM_BROWSER_FORMSET *FormSet,
|
||||||
@ -115,6 +130,14 @@ UpdateCheckBoxStringToken (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check if the next opcode is the EFI_IFR_EXTEND_OP_VAREQNAME.
|
||||||
|
|
||||||
|
@param OpCodeData The current opcode.
|
||||||
|
|
||||||
|
@retval TRUE Yes.
|
||||||
|
@retval FALSE No.
|
||||||
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsNextOpCodeGuidedVarEqName (
|
IsNextOpCodeGuidedVarEqName (
|
||||||
UINT8 *OpCodeData
|
UINT8 *OpCodeData
|
||||||
|
@ -165,7 +165,7 @@ PrintInternal (
|
|||||||
UINTN
|
UINTN
|
||||||
ConsolePrint (
|
ConsolePrint (
|
||||||
IN CHAR16 *Fmt,
|
IN CHAR16 *Fmt,
|
||||||
IN ...
|
...
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
VA_LIST Args;
|
VA_LIST Args;
|
||||||
@ -253,7 +253,7 @@ UINTN
|
|||||||
PrintStringAt (
|
PrintStringAt (
|
||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row,
|
IN UINTN Row,
|
||||||
CHAR16 *String
|
IN CHAR16 *String
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return PrintAt (Column, Row, L"%s", String);
|
return PrintAt (Column, Row, L"%s", String);
|
||||||
|
@ -712,7 +712,6 @@ CreateSharedPopUp (
|
|||||||
@param StringBuffer The passed in pointer to the buffer which will
|
@param StringBuffer The passed in pointer to the buffer which will
|
||||||
hold the typed in string if HotKey is FALSE
|
hold the typed in string if HotKey is FALSE
|
||||||
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
|
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
|
||||||
@param String Pointer to the first string in the list
|
|
||||||
@param ... A series of (quantity == NumberOfLines) text
|
@param ... A series of (quantity == NumberOfLines) text
|
||||||
strings which will be used to construct the dialog
|
strings which will be used to construct the dialog
|
||||||
box
|
box
|
||||||
|
@ -348,7 +348,7 @@ RefreshForm (
|
|||||||
// Question value may be changed, need invoke its Callback()
|
// Question value may be changed, need invoke its Callback()
|
||||||
//
|
//
|
||||||
ConfigAccess = Selection->FormSet->ConfigAccess;
|
ConfigAccess = Selection->FormSet->ConfigAccess;
|
||||||
if ((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) && (ConfigAccess != NULL)) {
|
if (((Question->QuestionFlags & EFI_IFR_FLAG_CALLBACK) != 0) && (ConfigAccess != NULL)) {
|
||||||
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
|
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
|
||||||
|
|
||||||
HiiValue = &Question->HiiValue;
|
HiiValue = &Question->HiiValue;
|
||||||
|
@ -350,7 +350,7 @@ UiWaitForSingleEvent (
|
|||||||
Draw a pop up windows based on the dimension, number of lines and
|
Draw a pop up windows based on the dimension, number of lines and
|
||||||
strings specified.
|
strings specified.
|
||||||
|
|
||||||
@param RequestedWidth The width of the pop-up.
|
@param ScreenWidth The width of the pop-up.
|
||||||
@param NumberOfLines The number of lines.
|
@param NumberOfLines The number of lines.
|
||||||
@param ... A series of text strings that displayed in the pop-up.
|
@param ... A series of text strings that displayed in the pop-up.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user