\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
\r
/**\r
- Initialize the commands in this in this file\r
+ Initialize the commands in this file\r
**/\r
VOID\r
EblInitialize%CommandName%Cmd (\r
\r
\r
/**\r
- Case insensitve comparison of two Null-terminated Unicode strings with maximum\r
+ Case insensitive comparison of two Null-terminated Unicode strings with maximum\r
lengths, and returns the difference between the first mismatched Unicode\r
characters.\r
This function compares the Null-terminated Unicode string FirstString to the\r
/**\r
Add a command to the mCmdTable. If there is no free space in the command \r
table ASSERT. The mCmdTable is maintained in alphabetical order and the \r
- new entry is inserted into its sorted possition.\r
+ new entry is inserted into its sorted position.\r
\r
- @param Entry Commnad Entry to add to the CmdTable\r
+ @param Entry Command Entry to add to the CmdTable\r
\r
**/\r
VOID\r
array of commands.\r
\r
@param EntryArray Pointer to array of command entries\r
- @param ArrayCount Number of commnad entries to add\r
+ @param ArrayCount Number of command entries to add\r
\r
**/\r
VOID\r
\r
/**\r
Return the best matching command for the passed in command name. The match \r
- does not have to be exact, it just needs to be unqiue. This enables commands\r
- to be shortend to the smallest set of starting characters that is unique.\r
+ does not have to be exact, it just needs to be unique. This enables commands\r
+ to be shortened to the smallest set of starting characters that is unique.\r
\r
@param CommandName Name of command to search for\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
\r
/**\r
- Exit the EBL. If the commnad processor sees EFI_ABORTED return status it will\r
+ Exit the EBL. If the command processor sees EFI_ABORTED return status it will\r
exit the EBL.\r
\r
Argv[0] - "exit"\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_ABORTED\r
\r
This AsciiPrint has to match the AsciiPrint in \r
EblPauseCmd. \r
\r
- @param ElaspedTime Current timout value remaining\r
+ @param ElaspedTime Current timeout value remaining\r
\r
**/\r
VOID\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS Timeout expired with no input\r
- @return EFI_TIMEOUT Stop procesing other commands on the same command line\r
+ @return EFI_TIMEOUT Stop processing other commands on the same command line\r
\r
**/\r
EFI_STATUS\r
Status = EblGetCharKey (&Key, Delay, EblPauseCallback);\r
AsciiPrint ("\n");\r
\r
- // If we timeout then the pause succeded thus return success\r
- // If we get a key return timout to stop other commnad on this cmd line\r
+ // If we timeout then the pause succeeded thus return success\r
+ // If we get a key return timeout to stop other command on this cmd line\r
return (Status == EFI_SUCCESS) ? EFI_TIMEOUT : EFI_SUCCESS;;\r
}\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
Example hexdump.4 returns a width of 4.\r
\r
- @param Argv Argv[0] is the comamnd name\r
+ @param Argv Argv[0] is the command name\r
\r
@return Width of command\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
dir fs1:\efi *.efi; perform a dir on fs1: device in the efi directory but \r
only print out files that contain the string *.efi\r
dir fv1:\ ; perform a dir on fv1: device in the efi directory \r
- NOTE: fv devices do not contian subdirs \r
+ NOTE: fv devices do not contain subdirs\r
dir fv1:\ * PEIM ; will match all files of type PEIM\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
/** @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>
//
// 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
EBL_COMMAND_TABLE *
EblGetCommand (
- IN CHAR8 *CommandName
+ IN CHAR8 *CommandName
);
BOOLEAN
EblAnyKeyToContinueQtoQuit (
- IN UINTN *CurrentRow,
- IN BOOLEAN PrefixNewline
+ IN UINTN *CurrentRow,
+ IN BOOLEAN PrefixNewline
);
VOID
VOID
EblSetTextColor (
- UINTN Attribute
+ UINTN Attribute
);
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
);
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
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
/**\r
Load a Firmware Volume (FV) into memory from a device. This causes drivers in\r
- the FV to be dispatched if the dependancies of the drivers are met.\r
+ the FV to be dispatched if the dependencies of the drivers are met.\r
\r
Argv[0] - "loadfv"\r
Argv[1] - device name and path\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
/**\r
Perform an EFI connect to connect devices that follow the EFI driver model. \r
If it is a PI system also call the dispatcher in case a new FV was made\r
- availible by one of the connect EFI drivers (this is not a common case).\r
+ available by one of the connect EFI drivers (this is not a common case).\r
\r
Argv[0] - "connect"\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
\r
/**\r
- Load a file into memory and optionally jump to it. A load addres can be \r
+ Load a file into memory and optionally jump to it. A load address can be\r
specified or automatically allocated. A quoted command line can optionally\r
be passed into the image. \r
\r
in "EblCmdX Arg2 Arg3 Arg4" as the arguments.\r
\r
go fv0:\EblCmdX * 0x10 "EblCmdX Arg2 Arg3 Arg4"; - load EblCmdX from FS0 \r
- to location allocated by this comamnd and call the entry point at offset 0x10 \r
+ to location allocated by this command and call the entry point at offset 0x10\r
passing in "EblCmdX Arg2 Arg3 Arg4" as the arguments.\r
\r
go fv1:\EblCmdX 0x10000; Load EblCmdX to address 0x10000 and return\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
// * Means allocate the buffer\r
Status = EfiReadAllocatePool (File, &Address, &Size);\r
\r
- // EntryPoint is relatvie to the start of the image \r
+ // EntryPoint is relative to the start of the image\r
EntryPoint = (EBL_COMMMAND)((UINTN)EntryPoint + (UINTN)Address);\r
\r
} else {\r
\r
\r
/**\r
- Dump out the HOBs in the system. HOBs are defined in the PI specificaiton\r
+ Dump out the HOBs in the system. HOBs are defined in the PI specification\r
and they are used to hand off information from PEI to DXE.\r
\r
Argv[0] - "hob"\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
/**\r
Fill Memory with data\r
\r
- Argv[0] - "mfill"[.#] # is optiona width 1, 2, 4, or 8. Default 4\r
+ Argv[0] - "mfill"[.#] # is optional width 1, 2, 4, or 8. Default 4\r
Argv[1] - Hex Address to fill\r
Argv[2] - Data to write (0x00 is default)\r
Argv[3] - Number of units to dump.\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
Pci->GetLocation (Pci, &Seg, &Bus, &Dev, &Func);\r
if ((Bus == BusArg) && (Dev == DevArg) && (Func == FuncArg)) {\r
// Only print Segment if it is non zero. If you only have one PCI segment it is \r
- // redundent to print it out\r
+ // redundant to print it out\r
if (Seg != 0) {\r
AsciiPrint ("Seg:%d ", Seg);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- Commands useful for debugging hardware. IO commands seperated out as not all\r
+ Commands useful for debugging hardware. IO commands separated out as not all\r
processor architectures support the IO command.\r
\r
**/\r
/**\r
Read from IO space\r
\r
- Argv[0] - "ioread"[.#] # is optiona width 1, 2, or 4. Default 1\r
+ Argv[0] - "ioread"[.#] # is optional width 1, 2, or 4. Default 1\r
Argv[1] - Hex IO address\r
\r
ior.4 0x3f8 ;Do a 32-bit IO Read from 0x3f8\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
/**\r
Write to IO space\r
\r
- Argv[0] - "iowrite"[.#] # is optiona width 1, 2, or 4. Default 1\r
+ Argv[0] - "iowrite"[.#] # is optional width 1, 2, or 4. Default 1\r
Argv[1] - Hex IO address\r
Argv[2] - Hex data to write\r
\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
/**\r
Parse the CmdLine and break it up into Argc (arg count) and Argv (array of\r
- pointers to each argument). The Cmd buffer is altered and seperators are \r
+ pointers to each argument). The Cmd buffer is altered and separators are\r
converted to string terminators. This allows Argv to point into CmdLine.\r
A CmdLine can support multiple commands. The next command in the command line\r
is returned if it exists.\r
return NULL;\r
}\r
\r
- // Walk a single command line. A CMD_SEPERATOR allows mult commands on a single line\r
+ // Walk a single command line. A CMD_SEPARATOR allows multiple commands on a single line\r
InQuote = FALSE;\r
LookingForArg = TRUE;\r
for (Char = CmdLine, Arg = 0; *Char != '\0'; Char++) {\r
- if (!InQuote && *Char == CMD_SEPERATOR) {\r
+ if (!InQuote && *Char == CMD_SEPARATOR) {\r
break;\r
}\r
\r
}\r
\r
if (LookingForArg) {\r
- // Look for the beging of an Argv[] entry\r
+ // Look for the beginning of an Argv[] entry\r
if (*Char == '"') {\r
Argv[Arg++] = ++Char;\r
LookingForArg = FALSE;\r
\r
*Argc = Arg;\r
\r
- if (*Char == CMD_SEPERATOR) {\r
- // Replace the command delimeter with null and return pointer to next command line\r
+ if (*Char == CMD_SEPARATOR) {\r
+ // Replace the command delimiter with null and return pointer to next command line\r
*Char = '\0';\r
return ++Char;\r
}\r
\r
/**\r
Return a keypress or optionally timeout if a timeout value was passed in.\r
- An optional callback funciton is called evey second when waiting for a\r
+ An optional callback function is called every second when waiting for a\r
timeout.\r
\r
@param Key EFI Key information returned\r
\r
\r
/**\r
- Collect the keyboard input for a cmd line. Carage Return, New Line, or ESC\r
+ Collect the keyboard input for a cmd line. Carriage Return, New Line, or ESC\r
terminates the command line. You can edit the command line via left arrow,\r
delete and backspace and they all back up and erase the command line. \r
- No edit of commnad line is possible without deletion at this time!\r
+ No edit of command line is possible without deletion at this time!\r
The up arrow and down arrow fill Cmd with information from the history \r
buffer.\r
\r
\r
\r
/**\r
- Parse a command line and execute the commands. The ; seperator allows \r
+ Parse a command line and execute the commands. The ; separator allows\r
multiple commands for each command line. Stop processing if one of the\r
commands returns an error.\r
\r
UINTN Argc;\r
CHAR8 *Argv[MAX_ARGS];\r
\r
- // Parse the command line. The loop processes commands seperated by ;\r
+ // Parse the command line. The loop processes commands separated by ;\r
for (Ptr = CmdLine, Status = EFI_SUCCESS; Ptr != NULL;) {\r
Ptr = ParseArguments (Ptr, &Argc, Argv);\r
if (Argc != 0) {\r
// exit command so lets exit\r
break;\r
} else if (Status == EFI_TIMEOUT) {\r
- // pause command got imput so don't process any more cmd on this cmd line\r
+ // pause command got input so don't process any more cmd on this cmd line\r
break;\r
} else if (EFI_ERROR (Status)) {\r
AsciiPrint ("%a returned %r error\n", Cmd->Name, Status);\r
\r
/**\r
Embedded Boot Loader (EBL) - A simple EFI command line application for embedded \r
- devices. PcdEmbeddedAutomaticBootCommand is a complied in commnad line that\r
- gets executed automatically. The ; seperator allows multiple commands \r
+ devices. PcdEmbeddedAutomaticBootCommand is a complied in command line that\r
+ gets executed automatically. The ; separator allows multiple commands\r
for each command line.\r
\r
@param ImageHandle EFI ImageHandle for this application.\r
@param SystemTable EFI system table\r
\r
- @return EFI status of the applicaiton\r
+ @return EFI status of the application\r
\r
**/\r
EFI_STATUS\r
UINTN CommandLineVariableSize = 0;\r
EFI_GUID VendorGuid;\r
\r
- // Initialize tables of commnads\r
+ // Initialize tables of commands\r
EblInitializeCmdTable ();\r
EblInitializeDeviceCmd ();\r
EblInitializemdHwDebugCmds ();\r
EblInitializeVariableCmds ();\r
\r
if (gST->ConOut == NULL) {\r
- DEBUG((EFI_D_ERROR,"Errot: No Console Output\n"));\r
+ DEBUG((EFI_D_ERROR,"Error: No Console Output\n"));\r
return EFI_NOT_READY;\r
}\r
\r
\r
EblPrintStartupBanner ();\r
\r
- // Parse command line and handle commands seperated by ;\r
+ // Parse command line and handle commands separated by ;\r
// The loop prints the prompt gets user input and saves history\r
\r
// Look for a variable with a default command line, otherwise use the Pcd\r
supported:\r
LF : Unix, Mac OS X*, BeOS\r
CR+LF: MS-DOS*, Microsoft Windows*\r
- CR : Commodore, Apple II, and realy Mac OS\r
+ CR : Commodore, Apple II, and really Mac OS\r
LF+CR: for simplicity and completeness \r
\r
Argv[0] - "script"\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
\r
**/\r
\r
-#define CMD_SEPERATOR ';'\r
+#define CMD_SEPARATOR ';'\r
#define MAX_ARGS 32\r
\r
EFI_STATUS\r
\r
/**\r
Parse the CmdLine and break it up into Argc (arg count) and Argv (array of\r
- pointers to each argument). The Cmd buffer is altered and seperators are \r
+ pointers to each argument). The Cmd buffer is altered and separators are\r
converted to string terminators. This allows Argv to point into CmdLine.\r
A CmdLine can support multiple commands. The next command in the command line\r
is returned if it exists.\r
return;\r
}\r
\r
- // Walk a single command line. A CMD_SEPERATOR allows mult commands on a single line\r
+ // Walk a single command line. A CMD_SEPARATOR allows multiple commands on a single line\r
InQuote = FALSE;\r
LookingForArg = TRUE;\r
- for (Char = CmdLine, Arg = 0, Index = 0; *Char != '\0' && *Char != CMD_SEPERATOR; Char++, Index++) {\r
- // Perform any text coversion here\r
+ for (Char = CmdLine, Arg = 0, Index = 0; *Char != '\0' && *Char != CMD_SEPARATOR; Char++, Index++) {\r
+ // Perform any text conversion here\r
if (*Char == '\t') {\r
// TAB to space\r
*Char = ' ';\r
}\r
\r
if (LookingForArg) {\r
- // Look for the beging of an Argv[] entry\r
+ // Look for the beginning of an Argv[] entry\r
if (*Char == '"') {\r
Argv[Arg++] = ++Char;\r
LookingForArg = FALSE;\r
\r
*Argc = Arg;\r
\r
- if (*Char == CMD_SEPERATOR) {\r
- // Replace the command delimeter with null\r
+ if (*Char == CMD_SEPARATOR) {\r
+ // Replace the command delimiter with null\r
*Char = '\0';\r
}\r
\r
\r
/**\r
Embedded Boot Loader (EBL) - A simple EFI command line application for embedded \r
- devices. PcdEmbeddedAutomaticBootCommand is a complied in commnad line that\r
- gets executed automatically. The ; seperator allows multiple commands \r
+ devices. PcdEmbeddedAutomaticBootCommand is a complied in command line that\r
+ gets executed automatically. The ; separator allows multiple commands\r
for each command line.\r
\r
@param ImageHandle EFI ImageHandle for this application.\r
@param SystemTable EFI system table\r
\r
- @return EFI status of the applicaiton\r
+ @return EFI status of the application\r
\r
**/\r
EFI_STATUS\r
\r
@param Argc Number of command arguments in Argv\r
@param Argv Array of strings that represent the parsed command line. \r
- Argv[0] is the comamnd name\r
+ Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
gBS->GetNextMonotonicCount = GetNextMonotonicCount;\r
gRT->GetNextHighMonotonicCount = GetNextHighMonotonicCount;\r
\r
- // Install the Monotonic Counter Architctural Protocol onto a new handle\r
+ // Install the Monotonic Counter Architectural Protocol onto a new handle\r
Status = gBS->InstallMultipleProtocolInterfaces (\r
&Handle,\r
&gEfiMonotonicCounterArchProtocolGuid, NULL,\r
/** @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>
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.
/** @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>
\r
/**\r
Open a device named by PathName. The PathName includes a device name and \r
- path seperated by a :. See file header for more details on the PathName \r
+ path separated by a :. See file header for more details on the PathName\r
syntax. There is no checking to prevent a file from being opened more than\r
one type. \r
\r
SectionType is only used to open an FV. Each file in an FV contains multiple\r
- secitons and only the SectionType section is opened. \r
+ sections and only the SectionType section is opened.\r
\r
For any file that is opened with EfiOpen() must be closed with EfiClose().\r
\r
\r
\r
/**\r
- Seek to the Offset locaiton in the file. LoadFile and FV device types do\r
+ Seek to the Offset location in the file. LoadFile and FV device types do\r
not support EfiSeek(). It is not possible to grow the file size using \r
EfiSeek().\r
\r
\r
\r
@return EFI_INVALID_PARAMETER Stream is not an Open File\r
- @return EFI_UNSUPPORTED LoadFile and FV doe not support Seek\r
+ @return EFI_UNSUPPORTED LoadFile and FV does not support Seek\r
@return EFI_NOT_FOUND Seek past the end of the file.\r
@return EFI_SUCCESS Steam closed\r
\r
\r
\r
/**\r
- Read BufferSize bytes from the current locaiton in the file. For load file\r
+ Read BufferSize bytes from the current location in the file. For load file\r
and FV case you must read the entire file. \r
\r
@param Stream Open File Handle\r
Read the entire file into a buffer. This routine allocates the buffer and\r
returns it to the user full of the read data. \r
\r
- This is very useful for load flie where it's hard to know how big the buffer\r
+ This is very useful for load file where it's hard to know how big the buffer\r
must be.\r
\r
@param Stream Open File Handle\r
\r
\r
/**\r
- Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+ Set the Current Working Directory (CWD). If a call is made to EfiOpen () and\r
the path does not contain a device name, The CWD is prepended to the path.\r
\r
@param Cwd Current Working Directory to set\r
); \r
\r
/**\r
- Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+ Set the Current Working Directory (CWD). If a call is made to EfiOpen () and\r
the path does not contain a device name, The CWD is prepended to the path.\r
\r
@param Cwd Current Working Directory \r
\r
@param EntryArray Pointer EBL_COMMAND_TABLE of the commands that are being added\r
\r
- @param ArrayCount Nuber of commands in the EntryArray.\r
+ @param ArrayCount Number of commands in the EntryArray.\r
\r
**/\r
typedef\r
\r
/**\r
Return a keypress or optionally timeout if a timeout value was passed in.\r
- An optional callback funciton is called evey second when waiting for a\r
+ An optional callback function is called every second when waiting for a\r
timeout.\r
\r
@param Key EFI Key information returned\r
\r
/**\r
Return a keypress or optionally timeout if a timeout value was passed in.\r
- An optional callback funciton is called evey second when waiting for a\r
+ An optional callback function is called every second when waiting for a\r
timeout.\r
\r
@param Key EFI Key information returned\r
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:
}
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]);
/**
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().
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;
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;
}
/**
-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().
@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
}
/**
-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
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
/**
-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
/**
-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
\r
\r
/**\r
- Interface stucture for the Metronome Architectural Protocol.\r
+ Interface structure for the Metronome Architectural Protocol.\r
\r
@par Protocol Description:\r
This protocol provides access to a known time source in the platform to the\r
/** @file\r
Serial IO Abstraction for GDB stub. This allows an EFI consoles that shows up on the system \r
- running GDB. One consle for error information and another console for user input/output.\r
+ running GDB. One console for error information and another console for user input/output.\r
\r
- Basic packet format is $packet-data#checksum. So every comand has 4 bytes of overhead: $, \r
+ Basic packet format is $packet-data#checksum. So every command has 4 bytes of overhead: $,\r
#, 0, 0. The 0 and 0 are the ascii characters for the checksum. \r
\r
\r
\r
\r
/**\r
- Sets the baud rate, receive FIFO depth, transmit/receice time out, parity, \r
+ Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,\r
data buts, and stop bits on a serial device.\r
\r
@param This Protocol instance pointer.\r
@param BaudRate The requested baud rate. A BaudRate value of 0 will use the the\r
device's default interface speed.\r
- @param ReveiveFifoDepth The requested depth of the FIFO on the receive side of the\r
+ @param ReceiveFifoDepth The requested depth of the FIFO on the receive side of the\r
serial interface. A ReceiveFifoDepth value of 0 will use\r
- the device's dfault FIFO depth.\r
+ the device's default FIFO depth.\r
@param Timeout The requested time out for a single character in microseconds.\r
This timeout applies to both the transmit and receive side of the\r
interface. A Timeout value of 0 will use the device's default time\r
@param Parity The type of parity to use on this serial device. A Parity value of\r
DefaultParity will use the device's default parity value.\r
@param DataBits The number of data bits to use on the serial device. A DataBits\r
- vaule of 0 will use the device's default data bit setting.\r
+ value of 0 will use the device's default data bit setting.\r
@param StopBits The number of stop bits to use on this serial device. A StopBits\r
value of DefaultStopBits will use the device's default number of\r
stop bits.\r
\r
\r
/**\r
- Retrieves the status of thecontrol bits on a serial device\r
+ Retrieves the status of the control bits on a serial device\r
\r
@param This Protocol instance pointer.\r
@param Control A pointer to return the current Control signals from the serial device.\r
EFI_HANDLE gHandle = NULL;\r
\r
// \r
-// Template used to initailize the GDB Serial IO protocols\r
+// Template used to initialize the GDB Serial IO protocols\r
//\r
EFI_SERIAL_IO_MODE gSerialIoMode = {\r
0, // ControlMask\r
0, // Timeout\r
FixedPcdGet64 (PcdUartDefaultBaudRate), // BaudRate\r
- 1, // RceiveFifoDepth\r
+ 1, // ReceiveFifoDepth\r
FixedPcdGet8 (PcdUartDefaultDataBits), // DataBits\r
FixedPcdGet8 (PcdUartDefaultParity), // Parity\r
FixedPcdGet8 (PcdUartDefaultStopBits) // StopBits\r