|
RDFU
1.0
|
#include "EfiScannerHeaders.h"
Go to the source code of this file.
Classes | |
| struct | _cargs |
Macros | |
| #define | KEY_ESCAPE 0x1B |
| #define | KEY_ENTER 0x0D |
| #define | KEY_BACKSPACE 0x7f |
| #define | get_arg(argx, argx_val) |
Typedefs | |
| typedef struct _cargs | cargs |
Functions | |
| UCHAR | ComGetChar (VOID) |
| VOID | ComPutChar (UCHAR c) |
| CHAR8 * | AsciiStrChr (CHAR8 *Str, CHAR8 Char) |
| UINTN | GetArguments (CHAR8 *Cmd, cargs *OutArgs) |
| EFI_STATUS | CommandMemInfo (cargs *Args) |
| EFI_STATUS | CommandDriverInfo (cargs *Args) |
| EFI_STATUS | CommandDumpMem (cargs *Args) |
| EFI_STATUS | CommandFunction (cargs *Args) |
| EFI_STATUS | CommandEventInfo (cargs *Args) |
| EFI_STATUS | CommandHelp (VOID) |
| EFI_STATUS | ProcessCommand (CHAR8 *Cmd) |
| EFI_STATUS | ComConsoleStart (VOID) |
| #define get_arg | ( | argx, | |
| argx_val | |||
| ) |
Referenced by GetArguments().
| #define KEY_BACKSPACE 0x7f |
Definition at line 10 of file ComConsole.c.
Referenced by ComConsoleStart().
| #define KEY_ENTER 0x0D |
Definition at line 9 of file ComConsole.c.
Referenced by ComConsoleStart().
| #define KEY_ESCAPE 0x1B |
Definition at line 8 of file ComConsole.c.
Referenced by ComConsoleStart().
| CHAR8* AsciiStrChr | ( | CHAR8 * | Str, |
| CHAR8 | Char | ||
| ) |
Definition at line 30 of file ComConsole.c.
Referenced by GetArguments().

| EFI_STATUS ComConsoleStart | ( | VOID | ) |
main com console loop, function reads keys from COM port, writes them back (echo) and picks necessary action
Definition at line 433 of file ComConsole.c.
References ComGetChar(), CommandHelp(), ComPutChar(), KEY_BACKSPACE, KEY_ENTER, KEY_ESCAPE, LogFullAscii(), MemZero(), and ProcessCommand().
Referenced by DrawBoxAndMenu().


| UCHAR ComGetChar | ( | VOID | ) |
Definition at line 89 of file ComPort.c.
References ASMReadPortByte(), ComPort, LSR_OFFSET, and LSR_RXDA.
Referenced by ComConsoleStart().


| EFI_STATUS CommandDriverInfo | ( | cargs * | Args | ) |
executes driverinfo command, syntax: driverinfo - displays info about all drivers driverinfo ADDR - finds driver by ADDR and displays info
Definition at line 146 of file ComConsole.c.
References _cargs::arg1_val, _cargs::argc, DumpAllImages(), _image_entry::FilePath, FindImageByAddr(), FreeImages(), GetAllImagesWithDescription(), _image_entry::Handle, _image_entry::ImageBase, _image_entry::ImageSize, LogFullAscii(), and _image_entry::Name.
Referenced by ProcessCommand().


| EFI_STATUS CommandDumpMem | ( | cargs * | Args | ) |
function dumps mem, syntax: dumpmem STARTADDR SIZE FILENAME
Definition at line 197 of file ComConsole.c.
References _cargs::arg1_val, _cargs::arg2_val, _cargs::arg3, _cargs::argc, DumpMemoryToFile(), and LogFullAscii().
Referenced by ProcessCommand().


| EFI_STATUS CommandEventInfo | ( | cargs * | Args | ) |
executes "eventinfo" command:
Definition at line 261 of file ComConsole.c.
References _cargs::arg1, _cargs::arg2, _cargs::arg2_val, _cargs::argc, DumpAllEvents(), _event_entry_list::EventEntry, FindEventByAddr(), FreeEvents(), GetAllEvents(), GetEventTypeStringAscii(), LogFullAscii(), IEVENT::NotifyFunction, _event_entry_list::NumOfEntries, and IEVENT::Type.
Referenced by ProcessCommand().


| EFI_STATUS CommandFunction | ( | cargs * | Args | ) |
function resolves specified api. for example: "function FreePool" will give the address of FreePool function
Definition at line 228 of file ComConsole.c.
References _cargs::arg1, _cargs::argc, DumpEFITables(), EFITableGetAddr(), InitializeEFITables(), and LogFullAscii().
Referenced by ProcessCommand().


| EFI_STATUS CommandHelp | ( | VOID | ) |
displays help
Definition at line 345 of file ComConsole.c.
References LogFullAscii().
Referenced by ComConsoleStart(), and ProcessCommand().


| EFI_STATUS CommandMemInfo | ( | cargs * | Args | ) |
executes meminfo command, syntax: meminfo - displays info about all map entries meminfo ADDR - finds map entry by ADDR and displays info
Definition at line 98 of file ComConsole.c.
References _cargs::arg1_val, _cargs::argc, _memory_map_entry::Attributes, DumpMemoryMap(), FindMapEntryByAddr(), FreeMemMap(), GetMemAttributesStringAscii(), GetMemoryMapList(), LogFullAscii(), _memory_map_entry::NumberOfPages, _memory_map_entry::PhysicalStart, and _memory_map_entry::VirtualStart.
Referenced by ProcessCommand().


| VOID ComPutChar | ( | UCHAR | c | ) |
Function writes single character to the selected com port.
| c | Character |
| NONE |
Definition at line 61 of file ComPort.c.
References ASMReadPortByte(), ASMWritePortByte(), ComPort, LSR_OFFSET, and LSR_TXRDY.
Referenced by ComConsoleStart(), and ComPutString().


| UINTN GetArguments | ( | CHAR8 * | Cmd, |
| cargs * | OutArgs | ||
| ) |
function gets the arguments from Cmd and puts them into OutArgs structure.
Definition at line 48 of file ComConsole.c.
References _cargs::argc, AsciiStrChr(), _cargs::command, get_arg, and MemCopy().
Referenced by ProcessCommand().


| EFI_STATUS ProcessCommand | ( | CHAR8 * | Cmd | ) |
function filters the command line and picks selected action.
Definition at line 370 of file ComConsole.c.
References _cargs::arg1, _cargs::command, CommandDriverInfo(), CommandDumpMem(), CommandEventInfo(), CommandFunction(), CommandHelp(), CommandMemInfo(), ContextX64Test(), DumpGDT(), DumpIDT(), GetArguments(), LogFullAscii(), and MemZero().
Referenced by ComConsoleStart().

