mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg: Fix mispellings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12101 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
573d7e468e
commit
7ca9e5a401
|
@ -26,7 +26,7 @@
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -53,7 +53,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mCmd%CommandName%Template[
|
|||
|
||||
|
||||
/**
|
||||
Initialize the commands in this in this file
|
||||
Initialize the commands in this file
|
||||
**/
|
||||
VOID
|
||||
EblInitialize%CommandName%Cmd (
|
||||
|
|
|
@ -46,7 +46,7 @@ AsciiToUpper (
|
|||
|
||||
|
||||
/**
|
||||
Case insensitve comparison of two Null-terminated Unicode strings with maximum
|
||||
Case insensitive comparison of two Null-terminated Unicode strings with maximum
|
||||
lengths, and returns the difference between the first mismatched Unicode
|
||||
characters.
|
||||
This function compares the Null-terminated Unicode string FirstString to the
|
||||
|
@ -94,9 +94,9 @@ AsciiStrniCmp (
|
|||
/**
|
||||
Add a command to the mCmdTable. If there is no free space in the command
|
||||
table ASSERT. The mCmdTable is maintained in alphabetical order and the
|
||||
new entry is inserted into its sorted possition.
|
||||
new entry is inserted into its sorted position.
|
||||
|
||||
@param Entry Commnad Entry to add to the CmdTable
|
||||
@param Entry Command Entry to add to the CmdTable
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
@ -139,7 +139,7 @@ EblAddCommand (
|
|||
array of commands.
|
||||
|
||||
@param EntryArray Pointer to array of command entries
|
||||
@param ArrayCount Number of commnad entries to add
|
||||
@param ArrayCount Number of command entries to add
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
@ -168,8 +168,8 @@ EBL_ADD_COMMAND_PROTOCOL gEblAddCommand = {
|
|||
|
||||
/**
|
||||
Return the best matching command for the passed in command name. The match
|
||||
does not have to be exact, it just needs to be unqiue. This enables commands
|
||||
to be shortend to the smallest set of starting characters that is unique.
|
||||
does not have to be exact, it just needs to be unique. This enables commands
|
||||
to be shortened to the smallest set of starting characters that is unique.
|
||||
|
||||
@param CommandName Name of command to search for
|
||||
|
||||
|
@ -250,7 +250,7 @@ CountNewLines (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -300,14 +300,14 @@ EblHelpCmd (
|
|||
|
||||
|
||||
/**
|
||||
Exit the EBL. If the commnad processor sees EFI_ABORTED return status it will
|
||||
Exit the EBL. If the command processor sees EFI_ABORTED return status it will
|
||||
exit the EBL.
|
||||
|
||||
Argv[0] - "exit"
|
||||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_ABORTED
|
||||
|
||||
|
@ -388,7 +388,7 @@ EblExitCmd (
|
|||
This AsciiPrint has to match the AsciiPrint in
|
||||
EblPauseCmd.
|
||||
|
||||
@param ElaspedTime Current timout value remaining
|
||||
@param ElaspedTime Current timeout value remaining
|
||||
|
||||
**/
|
||||
VOID
|
||||
|
@ -411,10 +411,10 @@ EblPauseCallback (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS Timeout expired with no input
|
||||
@return EFI_TIMEOUT Stop procesing other commands on the same command line
|
||||
@return EFI_TIMEOUT Stop processing other commands on the same command line
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@ -433,8 +433,8 @@ EblPauseCmd (
|
|||
Status = EblGetCharKey (&Key, Delay, EblPauseCallback);
|
||||
AsciiPrint ("\n");
|
||||
|
||||
// If we timeout then the pause succeded thus return success
|
||||
// If we get a key return timout to stop other commnad on this cmd line
|
||||
// If we timeout then the pause succeeded thus return success
|
||||
// If we get a key return timeout to stop other command on this cmd line
|
||||
return (Status == EFI_SUCCESS) ? EFI_TIMEOUT : EFI_SUCCESS;;
|
||||
}
|
||||
|
||||
|
@ -446,7 +446,7 @@ EblPauseCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -472,7 +472,7 @@ EblBreakPointCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -512,7 +512,7 @@ EblResetCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -693,7 +693,7 @@ OutputData (
|
|||
|
||||
Example hexdump.4 returns a width of 4.
|
||||
|
||||
@param Argv Argv[0] is the comamnd name
|
||||
@param Argv Argv[0] is the command name
|
||||
|
||||
@return Width of command
|
||||
|
||||
|
@ -735,7 +735,7 @@ WidthFromCommandName (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -51,12 +51,12 @@ GLOBAL_REMOVE_IF_UNREFERENCED CHAR8 *gFvFileType[] = {
|
|||
dir fs1:\efi *.efi; perform a dir on fs1: device in the efi directory but
|
||||
only print out files that contain the string *.efi
|
||||
dir fv1:\ ; perform a dir on fv1: device in the efi directory
|
||||
NOTE: fv devices do not contian subdirs
|
||||
NOTE: fv devices do not contain subdirs
|
||||
dir fv1:\ * PEIM ; will match all files of type PEIM
|
||||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -301,7 +301,7 @@ Done:
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Include flie for basic command line parser for EBL (Embedded Boot Loader)
|
||||
Include file for basic command line parser for EBL (Embedded Boot Loader)
|
||||
|
||||
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
@ -58,14 +58,14 @@
|
|||
//
|
||||
// Prompt for the command line
|
||||
//
|
||||
#define CMD_SEPERATOR ';'
|
||||
#define EBL_MAX_COMMAND_COUNT 0x100
|
||||
#define MAX_CMD_HISTORY 16
|
||||
#define MAX_CMD_LINE 256
|
||||
#define MAX_ARGS 32
|
||||
#define CMD_SEPARATOR ';'
|
||||
#define EBL_MAX_COMMAND_COUNT 0x100
|
||||
#define MAX_CMD_HISTORY 16
|
||||
#define MAX_CMD_LINE 256
|
||||
#define MAX_ARGS 32
|
||||
|
||||
#define EBL_CR 0x0a
|
||||
#define EBL_LF 0x0d
|
||||
#define EBL_CR 0x0a
|
||||
#define EBL_LF 0x0d
|
||||
|
||||
#define EFI_SET_TIMER_TO_SECOND 10000000
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
|||
|
||||
EBL_COMMAND_TABLE *
|
||||
EblGetCommand (
|
||||
IN CHAR8 *CommandName
|
||||
IN CHAR8 *CommandName
|
||||
);
|
||||
|
||||
|
||||
|
@ -88,8 +88,8 @@ EblPathToDevice (
|
|||
|
||||
BOOLEAN
|
||||
EblAnyKeyToContinueQtoQuit (
|
||||
IN UINTN *CurrentRow,
|
||||
IN BOOLEAN PrefixNewline
|
||||
IN UINTN *CurrentRow,
|
||||
IN BOOLEAN PrefixNewline
|
||||
);
|
||||
|
||||
VOID
|
||||
|
@ -109,7 +109,7 @@ EblShutdownExternalCmdTable (
|
|||
|
||||
VOID
|
||||
EblSetTextColor (
|
||||
UINTN Attribute
|
||||
UINTN Attribute
|
||||
);
|
||||
|
||||
|
||||
|
@ -124,9 +124,9 @@ EblGetCharKey (
|
|||
INTN
|
||||
EFIAPI
|
||||
AsciiStrniCmp (
|
||||
IN CONST CHAR8 *FirstString,
|
||||
IN CONST CHAR8 *SecondString,
|
||||
IN UINTN Length
|
||||
IN CONST CHAR8 *FirstString,
|
||||
IN CONST CHAR8 *SecondString,
|
||||
IN UINTN Length
|
||||
);
|
||||
|
||||
|
||||
|
@ -172,36 +172,36 @@ EblInitializeVariableCmds (
|
|||
|
||||
CHAR8 *
|
||||
ParseArguments (
|
||||
IN CHAR8 *CmdLine,
|
||||
OUT UINTN *Argc,
|
||||
OUT CHAR8 **Argv
|
||||
IN CHAR8 *CmdLine,
|
||||
OUT UINTN *Argc,
|
||||
OUT CHAR8 **Argv
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
ProcessCmdLine (
|
||||
IN CHAR8 *CmdLine,
|
||||
IN UINTN MaxCmdLineSize
|
||||
IN CHAR8 *CmdLine,
|
||||
IN UINTN MaxCmdLineSize
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
OutputData (
|
||||
IN UINT8 *Address,
|
||||
IN UINTN Length,
|
||||
IN UINTN Width,
|
||||
IN UINTN Offset
|
||||
IN UINT8 *Address,
|
||||
IN UINTN Length,
|
||||
IN UINTN Width,
|
||||
IN UINTN Offset
|
||||
);
|
||||
|
||||
UINTN
|
||||
WidthFromCommandName (
|
||||
IN CHAR8 *Argv,
|
||||
IN UINTN Default
|
||||
IN CHAR8 *Argv,
|
||||
IN UINTN Default
|
||||
);
|
||||
|
||||
|
||||
extern UINTN gScreenColumns;
|
||||
extern UINTN gScreenRows;
|
||||
extern BOOLEAN gPageBreak;
|
||||
extern CHAR8 *gMemMapType[];
|
||||
extern UINTN gScreenColumns;
|
||||
extern UINTN gScreenRows;
|
||||
extern BOOLEAN gPageBreak;
|
||||
extern CHAR8 *gMemMapType[];
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ EblPrintLoadFileInfo (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -279,7 +279,7 @@ EblDeviceCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -353,7 +353,7 @@ EblStartCmd (
|
|||
|
||||
/**
|
||||
Load a Firmware Volume (FV) into memory from a device. This causes drivers in
|
||||
the FV to be dispatched if the dependancies of the drivers are met.
|
||||
the FV to be dispatched if the dependencies of the drivers are met.
|
||||
|
||||
Argv[0] - "loadfv"
|
||||
Argv[1] - device name and path
|
||||
|
@ -364,7 +364,7 @@ EblStartCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -414,13 +414,13 @@ EblLoadFvCmd (
|
|||
/**
|
||||
Perform an EFI connect to connect devices that follow the EFI driver model.
|
||||
If it is a PI system also call the dispatcher in case a new FV was made
|
||||
availible by one of the connect EFI drivers (this is not a common case).
|
||||
available by one of the connect EFI drivers (this is not a common case).
|
||||
|
||||
Argv[0] - "connect"
|
||||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -542,7 +542,7 @@ CHAR8 *gMemMapType[] = {
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -628,7 +628,7 @@ EblMemMapCmd (
|
|||
|
||||
|
||||
/**
|
||||
Load a file into memory and optionally jump to it. A load addres can be
|
||||
Load a file into memory and optionally jump to it. A load address can be
|
||||
specified or automatically allocated. A quoted command line can optionally
|
||||
be passed into the image.
|
||||
|
||||
|
@ -644,14 +644,14 @@ EblMemMapCmd (
|
|||
in "EblCmdX Arg2 Arg3 Arg4" as the arguments.
|
||||
|
||||
go fv0:\EblCmdX * 0x10 "EblCmdX Arg2 Arg3 Arg4"; - load EblCmdX from FS0
|
||||
to location allocated by this comamnd and call the entry point at offset 0x10
|
||||
to location allocated by this command and call the entry point at offset 0x10
|
||||
passing in "EblCmdX Arg2 Arg3 Arg4" as the arguments.
|
||||
|
||||
go fv1:\EblCmdX 0x10000; Load EblCmdX to address 0x10000 and return
|
||||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -687,7 +687,7 @@ EblGoCmd (
|
|||
// * Means allocate the buffer
|
||||
Status = EfiReadAllocatePool (File, &Address, &Size);
|
||||
|
||||
// EntryPoint is relatvie to the start of the image
|
||||
// EntryPoint is relative to the start of the image
|
||||
EntryPoint = (EBL_COMMMAND)((UINTN)EntryPoint + (UINTN)Address);
|
||||
|
||||
} else {
|
||||
|
|
|
@ -103,14 +103,14 @@ GLOBAL_REMOVE_IF_UNREFERENCED char *mHobResourceType[] = {
|
|||
|
||||
|
||||
/**
|
||||
Dump out the HOBs in the system. HOBs are defined in the PI specificaiton
|
||||
Dump out the HOBs in the system. HOBs are defined in the PI specification
|
||||
and they are used to hand off information from PEI to DXE.
|
||||
|
||||
Argv[0] - "hob"
|
||||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ EblMdCmd (
|
|||
/**
|
||||
Fill Memory with data
|
||||
|
||||
Argv[0] - "mfill"[.#] # is optiona width 1, 2, 4, or 8. Default 4
|
||||
Argv[0] - "mfill"[.#] # is optional width 1, 2, 4, or 8. Default 4
|
||||
Argv[1] - Hex Address to fill
|
||||
Argv[2] - Data to write (0x00 is default)
|
||||
Argv[3] - Number of units to dump.
|
||||
|
@ -83,7 +83,7 @@ EblMdCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -163,7 +163,7 @@ CHAR8 *gPciSerialClassCodes[] = {
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -255,7 +255,7 @@ EblPciCmd (
|
|||
Pci->GetLocation (Pci, &Seg, &Bus, &Dev, &Func);
|
||||
if ((Bus == BusArg) && (Dev == DevArg) && (Func == FuncArg)) {
|
||||
// Only print Segment if it is non zero. If you only have one PCI segment it is
|
||||
// redundent to print it out
|
||||
// redundant to print it out
|
||||
if (Seg != 0) {
|
||||
AsciiPrint ("Seg:%d ", Seg);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Commands useful for debugging hardware. IO commands seperated out as not all
|
||||
Commands useful for debugging hardware. IO commands separated out as not all
|
||||
processor architectures support the IO command.
|
||||
|
||||
**/
|
||||
|
@ -24,7 +24,7 @@
|
|||
/**
|
||||
Read from IO space
|
||||
|
||||
Argv[0] - "ioread"[.#] # is optiona width 1, 2, or 4. Default 1
|
||||
Argv[0] - "ioread"[.#] # is optional width 1, 2, or 4. Default 1
|
||||
Argv[1] - Hex IO address
|
||||
|
||||
ior.4 0x3f8 ;Do a 32-bit IO Read from 0x3f8
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
@ -73,7 +73,7 @@ EblIoReadCmd (
|
|||
/**
|
||||
Write to IO space
|
||||
|
||||
Argv[0] - "iowrite"[.#] # is optiona width 1, 2, or 4. Default 1
|
||||
Argv[0] - "iowrite"[.#] # is optional width 1, 2, or 4. Default 1
|
||||
Argv[1] - Hex IO address
|
||||
Argv[2] - Hex data to write
|
||||
|
||||
|
@ -82,7 +82,7 @@ EblIoReadCmd (
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ Exit:
|
|||
|
||||
/**
|
||||
Parse the CmdLine and break it up into Argc (arg count) and Argv (array of
|
||||
pointers to each argument). The Cmd buffer is altered and seperators are
|
||||
pointers to each argument). The Cmd buffer is altered and separators are
|
||||
converted to string terminators. This allows Argv to point into CmdLine.
|
||||
A CmdLine can support multiple commands. The next command in the command line
|
||||
is returned if it exists.
|
||||
|
@ -179,11 +179,11 @@ ParseArguments (
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// Walk a single command line. A CMD_SEPERATOR allows mult commands on a single line
|
||||
// Walk a single command line. A CMD_SEPARATOR allows multiple commands on a single line
|
||||
InQuote = FALSE;
|
||||
LookingForArg = TRUE;
|
||||
for (Char = CmdLine, Arg = 0; *Char != '\0'; Char++) {
|
||||
if (!InQuote && *Char == CMD_SEPERATOR) {
|
||||
if (!InQuote && *Char == CMD_SEPARATOR) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ ParseArguments (
|
|||
}
|
||||
|
||||
if (LookingForArg) {
|
||||
// Look for the beging of an Argv[] entry
|
||||
// Look for the beginning of an Argv[] entry
|
||||
if (*Char == '"') {
|
||||
Argv[Arg++] = ++Char;
|
||||
LookingForArg = FALSE;
|
||||
|
@ -219,8 +219,8 @@ ParseArguments (
|
|||
|
||||
*Argc = Arg;
|
||||
|
||||
if (*Char == CMD_SEPERATOR) {
|
||||
// Replace the command delimeter with null and return pointer to next command line
|
||||
if (*Char == CMD_SEPARATOR) {
|
||||
// Replace the command delimiter with null and return pointer to next command line
|
||||
*Char = '\0';
|
||||
return ++Char;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ ParseArguments (
|
|||
|
||||
/**
|
||||
Return a keypress or optionally timeout if a timeout value was passed in.
|
||||
An optional callback funciton is called evey second when waiting for a
|
||||
An optional callback function is called every second when waiting for a
|
||||
timeout.
|
||||
|
||||
@param Key EFI Key information returned
|
||||
|
@ -370,10 +370,10 @@ EblSetTextColor (
|
|||
|
||||
|
||||
/**
|
||||
Collect the keyboard input for a cmd line. Carage Return, New Line, or ESC
|
||||
Collect the keyboard input for a cmd line. Carriage Return, New Line, or ESC
|
||||
terminates the command line. You can edit the command line via left arrow,
|
||||
delete and backspace and they all back up and erase the command line.
|
||||
No edit of commnad line is possible without deletion at this time!
|
||||
No edit of command line is possible without deletion at this time!
|
||||
The up arrow and down arrow fill Cmd with information from the history
|
||||
buffer.
|
||||
|
||||
|
@ -516,7 +516,7 @@ EblPrompt (
|
|||
|
||||
|
||||
/**
|
||||
Parse a command line and execute the commands. The ; seperator allows
|
||||
Parse a command line and execute the commands. The ; separator allows
|
||||
multiple commands for each command line. Stop processing if one of the
|
||||
commands returns an error.
|
||||
|
||||
|
@ -538,7 +538,7 @@ ProcessCmdLine (
|
|||
UINTN Argc;
|
||||
CHAR8 *Argv[MAX_ARGS];
|
||||
|
||||
// Parse the command line. The loop processes commands seperated by ;
|
||||
// Parse the command line. The loop processes commands separated by ;
|
||||
for (Ptr = CmdLine, Status = EFI_SUCCESS; Ptr != NULL;) {
|
||||
Ptr = ParseArguments (Ptr, &Argc, Argv);
|
||||
if (Argc != 0) {
|
||||
|
@ -550,7 +550,7 @@ ProcessCmdLine (
|
|||
// exit command so lets exit
|
||||
break;
|
||||
} else if (Status == EFI_TIMEOUT) {
|
||||
// pause command got imput so don't process any more cmd on this cmd line
|
||||
// pause command got input so don't process any more cmd on this cmd line
|
||||
break;
|
||||
} else if (EFI_ERROR (Status)) {
|
||||
AsciiPrint ("%a returned %r error\n", Cmd->Name, Status);
|
||||
|
@ -568,14 +568,14 @@ ProcessCmdLine (
|
|||
|
||||
/**
|
||||
Embedded Boot Loader (EBL) - A simple EFI command line application for embedded
|
||||
devices. PcdEmbeddedAutomaticBootCommand is a complied in commnad line that
|
||||
gets executed automatically. The ; seperator allows multiple commands
|
||||
devices. PcdEmbeddedAutomaticBootCommand is a complied in command line that
|
||||
gets executed automatically. The ; separator allows multiple commands
|
||||
for each command line.
|
||||
|
||||
@param ImageHandle EFI ImageHandle for this application.
|
||||
@param SystemTable EFI system table
|
||||
|
||||
@return EFI status of the applicaiton
|
||||
@return EFI status of the application
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@ -592,7 +592,7 @@ EdkBootLoaderEntry (
|
|||
UINTN CommandLineVariableSize = 0;
|
||||
EFI_GUID VendorGuid;
|
||||
|
||||
// Initialize tables of commnads
|
||||
// Initialize tables of commands
|
||||
EblInitializeCmdTable ();
|
||||
EblInitializeDeviceCmd ();
|
||||
EblInitializemdHwDebugCmds ();
|
||||
|
@ -605,7 +605,7 @@ EdkBootLoaderEntry (
|
|||
EblInitializeVariableCmds ();
|
||||
|
||||
if (gST->ConOut == NULL) {
|
||||
DEBUG((EFI_D_ERROR,"Errot: No Console Output\n"));
|
||||
DEBUG((EFI_D_ERROR,"Error: No Console Output\n"));
|
||||
return EFI_NOT_READY;
|
||||
}
|
||||
|
||||
|
@ -627,7 +627,7 @@ EdkBootLoaderEntry (
|
|||
|
||||
EblPrintStartupBanner ();
|
||||
|
||||
// Parse command line and handle commands seperated by ;
|
||||
// Parse command line and handle commands separated by ;
|
||||
// The loop prints the prompt gets user input and saves history
|
||||
|
||||
// Look for a variable with a default command line, otherwise use the Pcd
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
supported:
|
||||
LF : Unix, Mac OS X*, BeOS
|
||||
CR+LF: MS-DOS*, Microsoft Windows*
|
||||
CR : Commodore, Apple II, and realy Mac OS
|
||||
CR : Commodore, Apple II, and really Mac OS
|
||||
LF+CR: for simplicity and completeness
|
||||
|
||||
Argv[0] - "script"
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
**/
|
||||
|
||||
#define CMD_SEPERATOR ';'
|
||||
#define CMD_SEPARATOR ';'
|
||||
#define MAX_ARGS 32
|
||||
|
||||
EFI_STATUS
|
||||
|
@ -35,7 +35,7 @@ EblMain (
|
|||
|
||||
/**
|
||||
Parse the CmdLine and break it up into Argc (arg count) and Argv (array of
|
||||
pointers to each argument). The Cmd buffer is altered and seperators are
|
||||
pointers to each argument). The Cmd buffer is altered and separators are
|
||||
converted to string terminators. This allows Argv to point into CmdLine.
|
||||
A CmdLine can support multiple commands. The next command in the command line
|
||||
is returned if it exists.
|
||||
|
@ -67,18 +67,18 @@ ParseArguments (
|
|||
return;
|
||||
}
|
||||
|
||||
// Walk a single command line. A CMD_SEPERATOR allows mult commands on a single line
|
||||
// Walk a single command line. A CMD_SEPARATOR allows multiple commands on a single line
|
||||
InQuote = FALSE;
|
||||
LookingForArg = TRUE;
|
||||
for (Char = CmdLine, Arg = 0, Index = 0; *Char != '\0' && *Char != CMD_SEPERATOR; Char++, Index++) {
|
||||
// Perform any text coversion here
|
||||
for (Char = CmdLine, Arg = 0, Index = 0; *Char != '\0' && *Char != CMD_SEPARATOR; Char++, Index++) {
|
||||
// Perform any text conversion here
|
||||
if (*Char == '\t') {
|
||||
// TAB to space
|
||||
*Char = ' ';
|
||||
}
|
||||
|
||||
if (LookingForArg) {
|
||||
// Look for the beging of an Argv[] entry
|
||||
// Look for the beginning of an Argv[] entry
|
||||
if (*Char == '"') {
|
||||
Argv[Arg++] = ++Char;
|
||||
LookingForArg = FALSE;
|
||||
|
@ -103,8 +103,8 @@ ParseArguments (
|
|||
|
||||
*Argc = Arg;
|
||||
|
||||
if (*Char == CMD_SEPERATOR) {
|
||||
// Replace the command delimeter with null
|
||||
if (*Char == CMD_SEPARATOR) {
|
||||
// Replace the command delimiter with null
|
||||
*Char = '\0';
|
||||
}
|
||||
|
||||
|
@ -116,14 +116,14 @@ ParseArguments (
|
|||
|
||||
/**
|
||||
Embedded Boot Loader (EBL) - A simple EFI command line application for embedded
|
||||
devices. PcdEmbeddedAutomaticBootCommand is a complied in commnad line that
|
||||
gets executed automatically. The ; seperator allows multiple commands
|
||||
devices. PcdEmbeddedAutomaticBootCommand is a complied in command line that
|
||||
gets executed automatically. The ; separator allows multiple commands
|
||||
for each command line.
|
||||
|
||||
@param ImageHandle EFI ImageHandle for this application.
|
||||
@param SystemTable EFI system table
|
||||
|
||||
@return EFI status of the applicaiton
|
||||
@return EFI status of the application
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
@param Argc Number of command arguments in Argv
|
||||
@param Argv Array of strings that represent the parsed command line.
|
||||
Argv[0] is the comamnd name
|
||||
Argv[0] is the command name
|
||||
|
||||
@return EFI_SUCCESS
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ MonotonicCounterDriverInitialize (
|
|||
gBS->GetNextMonotonicCount = GetNextMonotonicCount;
|
||||
gRT->GetNextHighMonotonicCount = GetNextHighMonotonicCount;
|
||||
|
||||
// Install the Monotonic Counter Architctural Protocol onto a new handle
|
||||
// Install the Monotonic Counter Architectural Protocol onto a new handle
|
||||
Status = gBS->InstallMultipleProtocolInterfaces (
|
||||
&Handle,
|
||||
&gEfiMonotonicCounterArchProtocolGuid, NULL,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Include flie for basic command line parser for EBL (Embedded Boot Loader)
|
||||
Include file for basic command line parser for EBL (Embedded Boot Loader)
|
||||
|
||||
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
@ -32,7 +32,7 @@ EblAddExternalCommands (
|
|||
|
||||
Return a keypress or optionally timeout if a timeout value was passed in.
|
||||
|
||||
An optional callback funciton is called evey second when waiting for a
|
||||
An optional callback function is called every second when waiting for a
|
||||
|
||||
timeout.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Include flie for basic command line parser for EBL (Embedded Boot Loader)
|
||||
Include file for basic command line parser for EBL (Embedded Boot Loader)
|
||||
|
||||
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
|
|
|
@ -118,12 +118,12 @@ typedef enum {
|
|||
|
||||
/**
|
||||
Open a device named by PathName. The PathName includes a device name and
|
||||
path seperated by a :. See file header for more details on the PathName
|
||||
path separated by a :. See file header for more details on the PathName
|
||||
syntax. There is no checking to prevent a file from being opened more than
|
||||
one type.
|
||||
|
||||
SectionType is only used to open an FV. Each file in an FV contains multiple
|
||||
secitons and only the SectionType section is opened.
|
||||
sections and only the SectionType section is opened.
|
||||
|
||||
For any file that is opened with EfiOpen() must be closed with EfiClose().
|
||||
|
||||
|
@ -199,7 +199,7 @@ EfiTell (
|
|||
|
||||
|
||||
/**
|
||||
Seek to the Offset locaiton in the file. LoadFile and FV device types do
|
||||
Seek to the Offset location in the file. LoadFile and FV device types do
|
||||
not support EfiSeek(). It is not possible to grow the file size using
|
||||
EfiSeek().
|
||||
|
||||
|
@ -214,7 +214,7 @@ EfiTell (
|
|||
|
||||
|
||||
@return EFI_INVALID_PARAMETER Stream is not an Open File
|
||||
@return EFI_UNSUPPORTED LoadFile and FV doe not support Seek
|
||||
@return EFI_UNSUPPORTED LoadFile and FV does not support Seek
|
||||
@return EFI_NOT_FOUND Seek past the end of the file.
|
||||
@return EFI_SUCCESS Steam closed
|
||||
|
||||
|
@ -228,7 +228,7 @@ EfiSeek (
|
|||
|
||||
|
||||
/**
|
||||
Read BufferSize bytes from the current locaiton in the file. For load file
|
||||
Read BufferSize bytes from the current location in the file. For load file
|
||||
and FV case you must read the entire file.
|
||||
|
||||
@param Stream Open File Handle
|
||||
|
@ -255,7 +255,7 @@ EfiRead (
|
|||
Read the entire file into a buffer. This routine allocates the buffer and
|
||||
returns it to the user full of the read data.
|
||||
|
||||
This is very useful for load flie where it's hard to know how big the buffer
|
||||
This is very useful for load file where it's hard to know how big the buffer
|
||||
must be.
|
||||
|
||||
@param Stream Open File Handle
|
||||
|
@ -316,7 +316,7 @@ EfiGetDeviceCounts (
|
|||
|
||||
|
||||
/**
|
||||
Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
Set the Current Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
the path does not contain a device name, The CWD is prepended to the path.
|
||||
|
||||
@param Cwd Current Working Directory to set
|
||||
|
@ -332,7 +332,7 @@ EfiSetCwd (
|
|||
);
|
||||
|
||||
/**
|
||||
Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
Set the Current Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
the path does not contain a device name, The CWD is prepended to the path.
|
||||
|
||||
@param Cwd Current Working Directory
|
||||
|
|
|
@ -62,7 +62,7 @@ VOID
|
|||
|
||||
@param EntryArray Pointer EBL_COMMAND_TABLE of the commands that are being added
|
||||
|
||||
@param ArrayCount Nuber of commands in the EntryArray.
|
||||
@param ArrayCount Number of commands in the EntryArray.
|
||||
|
||||
**/
|
||||
typedef
|
||||
|
@ -81,7 +81,7 @@ VOID
|
|||
|
||||
/**
|
||||
Return a keypress or optionally timeout if a timeout value was passed in.
|
||||
An optional callback funciton is called evey second when waiting for a
|
||||
An optional callback function is called every second when waiting for a
|
||||
timeout.
|
||||
|
||||
@param Key EFI Key information returned
|
||||
|
|
|
@ -31,7 +31,7 @@ EBL_ADD_COMMAND_PROTOCOL *gEblExternalCommand = NULL;
|
|||
|
||||
/**
|
||||
Return a keypress or optionally timeout if a timeout value was passed in.
|
||||
An optional callback funciton is called evey second when waiting for a
|
||||
An optional callback function is called every second when waiting for a
|
||||
timeout.
|
||||
|
||||
@param Key EFI Key information returned
|
||||
|
|
|
@ -17,7 +17,7 @@ is in the form of DevType:Path. Current DevType is required as there is no
|
|||
current mounted device concept of current working directory concept implement
|
||||
by this library.
|
||||
|
||||
Device names are case insensative and only check the leading characters for
|
||||
Device names are case insensitive and only check the leading characters for
|
||||
unique matches. Thus the following are all the same:
|
||||
LoadFile0:
|
||||
l0:
|
||||
|
@ -168,7 +168,7 @@ EblUpdateDeviceLists (
|
|||
}
|
||||
|
||||
if (&mFsInfo[0] != NULL) {
|
||||
// Need to Free the mFsInfo prior to reclaculating mFsCount so don't move this code
|
||||
// Need to Free the mFsInfo prior to recalculating mFsCount so don't move this code
|
||||
for (Index = 0; Index < mFsCount; Index++) {
|
||||
if (mFsInfo[Index] != NULL) {
|
||||
FreePool (mFsInfo[Index]);
|
||||
|
@ -635,12 +635,12 @@ EblFvFileDevicePath (
|
|||
|
||||
/**
|
||||
Open a device named by PathName. The PathName includes a device name and
|
||||
path seperated by a :. See file header for more details on the PathName
|
||||
path separated by a :. See file header for more details on the PathName
|
||||
syntax. There is no checking to prevent a file from being opened more than
|
||||
one type.
|
||||
|
||||
SectionType is only used to open an FV. Each file in an FV contains multiple
|
||||
secitons and only the SectionType section is opened.
|
||||
sections and only the SectionType section is opened.
|
||||
|
||||
For any file that is opened with EfiOpen() must be closed with EfiClose().
|
||||
|
||||
|
@ -704,7 +704,7 @@ EfiOpen (
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// We could add a current working diretory concept
|
||||
// We could add a current working directory concept
|
||||
CwdPlusPathName = AllocatePool (AsciiStrSize (gCwd) + AsciiStrSize (PathName));
|
||||
if (CwdPlusPathName == NULL) {
|
||||
return NULL;
|
||||
|
@ -731,7 +731,7 @@ EfiOpen (
|
|||
|
||||
AsciiStrCat (CwdPlusPathName, PathName);
|
||||
if (AsciiStrStr (CwdPlusPathName, ":") == NULL) {
|
||||
// Extra error check to make sure we don't recusre and blow stack
|
||||
// Extra error check to make sure we don't recurse and blow stack
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1175,7 +1175,7 @@ EfiTell (
|
|||
|
||||
|
||||
/**
|
||||
Seek to the Offset locaiton in the file. LoadFile and FV device types do
|
||||
Seek to the Offset location in the file. LoadFile and FV device types do
|
||||
not support EfiSeek(). It is not possible to grow the file size using
|
||||
EfiSeek().
|
||||
|
||||
|
@ -1190,7 +1190,7 @@ EfiSeekEnd : Only supported if Offset is zero to seek to end of file.
|
|||
|
||||
|
||||
@return EFI_INVALID_PARAMETER Stream is not an Open File
|
||||
@return EFI_UNSUPPORTED LoadFile and FV doe not support Seek
|
||||
@return EFI_UNSUPPORTED LoadFile and FV do not support Seek
|
||||
@return EFI_NOT_FOUND Seek past the end of the file.
|
||||
@return EFI_SUCCESS Steam closed
|
||||
|
||||
|
@ -1300,7 +1300,7 @@ CacheTftpFile (
|
|||
}
|
||||
|
||||
/**
|
||||
Read BufferSize bytes from the current locaiton in the file. For load file,
|
||||
Read BufferSize bytes from the current location in the file. For load file,
|
||||
FV, and TFTP case you must read the entire file.
|
||||
|
||||
@param Stream Open File Handle
|
||||
|
@ -1431,7 +1431,7 @@ EfiRead (
|
|||
Read the entire file into a buffer. This routine allocates the buffer and
|
||||
returns it to the user full of the read data.
|
||||
|
||||
This is very useful for load flie where it's hard to know how big the buffer
|
||||
This is very useful for load file where it's hard to know how big the buffer
|
||||
must be.
|
||||
|
||||
@param Stream Open File Handle
|
||||
|
@ -1669,7 +1669,7 @@ ExpandPath (
|
|||
|
||||
|
||||
/**
|
||||
Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
Set the Current Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
the path does not contain a device name, The CWD is prepended to the path.
|
||||
|
||||
@param Cwd Current Working Directory to set
|
||||
|
@ -1751,11 +1751,11 @@ EfiSetCwd (
|
|||
|
||||
|
||||
/**
|
||||
Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
Set the Current Working Directory (CWD). If a call is made to EfiOpen () and
|
||||
the path does not contain a device name, The CWD is prepended to the path.
|
||||
The CWD buffer is only valid until a new call is made to EfiSetCwd(). After
|
||||
a call to EfiSetCwd() it is not legal to use the pointer returned by
|
||||
this funciton.
|
||||
this function.
|
||||
|
||||
@param Cwd Current Working Directory
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ WaitForTick (
|
|||
|
||||
|
||||
/**
|
||||
Interface stucture for the Metronome Architectural Protocol.
|
||||
Interface structure for the Metronome Architectural Protocol.
|
||||
|
||||
@par Protocol Description:
|
||||
This protocol provides access to a known time source in the platform to the
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/** @file
|
||||
Serial IO Abstraction for GDB stub. This allows an EFI consoles that shows up on the system
|
||||
running GDB. One consle for error information and another console for user input/output.
|
||||
running GDB. One console for error information and another console for user input/output.
|
||||
|
||||
Basic packet format is $packet-data#checksum. So every comand has 4 bytes of overhead: $,
|
||||
Basic packet format is $packet-data#checksum. So every command has 4 bytes of overhead: $,
|
||||
#, 0, 0. The 0 and 0 are the ascii characters for the checksum.
|
||||
|
||||
|
||||
|
@ -48,15 +48,15 @@ SerialReset (
|
|||
|
||||
|
||||
/**
|
||||
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
|
||||
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
|
||||
data buts, and stop bits on a serial device.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param BaudRate The requested baud rate. A BaudRate value of 0 will use the the
|
||||
device's default interface speed.
|
||||
@param ReveiveFifoDepth The requested depth of the FIFO on the receive side of the
|
||||
@param ReceiveFifoDepth The requested depth of the FIFO on the receive side of the
|
||||
serial interface. A ReceiveFifoDepth value of 0 will use
|
||||
the device's dfault FIFO depth.
|
||||
the device's default FIFO depth.
|
||||
@param Timeout The requested time out for a single character in microseconds.
|
||||
This timeout applies to both the transmit and receive side of the
|
||||
interface. A Timeout value of 0 will use the device's default time
|
||||
|
@ -64,7 +64,7 @@ SerialReset (
|
|||
@param Parity The type of parity to use on this serial device. A Parity value of
|
||||
DefaultParity will use the device's default parity value.
|
||||
@param DataBits The number of data bits to use on the serial device. A DataBits
|
||||
vaule of 0 will use the device's default data bit setting.
|
||||
value of 0 will use the device's default data bit setting.
|
||||
@param StopBits The number of stop bits to use on this serial device. A StopBits
|
||||
value of DefaultStopBits will use the device's default number of
|
||||
stop bits.
|
||||
|
@ -112,7 +112,7 @@ SerialSetControl (
|
|||
|
||||
|
||||
/**
|
||||
Retrieves the status of thecontrol bits on a serial device
|
||||
Retrieves the status of the control bits on a serial device
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param Control A pointer to return the current Control signals from the serial device.
|
||||
|
@ -205,13 +205,13 @@ SerialRead (
|
|||
EFI_HANDLE gHandle = NULL;
|
||||
|
||||
//
|
||||
// Template used to initailize the GDB Serial IO protocols
|
||||
// Template used to initialize the GDB Serial IO protocols
|
||||
//
|
||||
EFI_SERIAL_IO_MODE gSerialIoMode = {
|
||||
0, // ControlMask
|
||||
0, // Timeout
|
||||
FixedPcdGet64 (PcdUartDefaultBaudRate), // BaudRate
|
||||
1, // RceiveFifoDepth
|
||||
1, // ReceiveFifoDepth
|
||||
FixedPcdGet8 (PcdUartDefaultDataBits), // DataBits
|
||||
FixedPcdGet8 (PcdUartDefaultParity), // Parity
|
||||
FixedPcdGet8 (PcdUartDefaultStopBits) // StopBits
|
||||
|
|
Loading…
Reference in New Issue