TianoCore EDK2 master
|
#include <Uefi.h>
Go to the source code of this file.
Macros | |
#define | EFI_DEBUG_PROMPT_STRING L"EDB > " |
#define | EFI_DEBUG_PROMPT_COLUMN 5 |
#define | EFI_DEBUG_INPUS_BUFFER_SIZE 64 |
#define | EFI_DEBUGGER_LINE_NUMBER_IN_PAGE 0x10 |
#define | EFI_DEBUG_MAX_PRINT_BUFFER (80 * 4) |
Functions | |
UINTN EFIAPI | Xtoi (CHAR16 *Str) |
UINT64 EFIAPI | LXtoi (CHAR16 *Str) |
UINTN EFIAPI | Atoi (CHAR16 *Str) |
UINTN EFIAPI | AsciiXtoi (CHAR8 *Str) |
UINTN EFIAPI | AsciiAtoi (CHAR8 *Str) |
INTN EFIAPI | StrCmpUnicodeAndAscii (IN CHAR16 *String, IN CHAR8 *String2) |
INTN EFIAPI | StriCmp (IN CHAR16 *String, IN CHAR16 *String2) |
INTN EFIAPI | StriCmpUnicodeAndAscii (IN CHAR16 *String, IN CHAR8 *String2) |
BOOLEAN EFIAPI | StrEndWith (IN CHAR16 *Str, IN CHAR16 *SubStr) |
CHAR16 *EFIAPI | StrDuplicate (IN CHAR16 *Src) |
CHAR16 *EFIAPI | StrGetNewTokenLine (IN CHAR16 *String, IN CHAR16 *CharSet) |
CHAR16 *EFIAPI | StrGetNextTokenLine (IN CHAR16 *CharSet) |
CHAR16 *EFIAPI | StrGetNewTokenField (IN CHAR16 *String, IN CHAR16 *CharSet) |
CHAR16 *EFIAPI | StrGetNextTokenField (IN CHAR16 *CharSet) |
VOID EFIAPI | PatchForStrTokenAfter (IN CHAR16 *Buffer, IN CHAR16 Patch) |
VOID EFIAPI | PatchForStrTokenBefore (IN CHAR16 *Buffer, IN CHAR16 Patch) |
CHAR8 *EFIAPI | AsciiStrGetNewTokenLine (IN CHAR8 *String, IN CHAR8 *CharSet) |
CHAR8 *EFIAPI | AsciiStrGetNextTokenLine (IN CHAR8 *CharSet) |
CHAR8 *EFIAPI | AsciiStrGetNewTokenField (IN CHAR8 *String, IN CHAR8 *CharSet) |
CHAR8 *EFIAPI | AsciiStrGetNextTokenField (IN CHAR8 *CharSet) |
VOID EFIAPI | PatchForAsciiStrTokenAfter (IN CHAR8 *Buffer, IN CHAR8 Patch) |
VOID EFIAPI | PatchForAsciiStrTokenBefore (IN CHAR8 *Buffer, IN CHAR8 Patch) |
VOID EFIAPI | Input (IN CHAR16 *Prompt OPTIONAL, OUT CHAR16 *InStr, IN UINTN StrLen) |
BOOLEAN EFIAPI | SetPageBreak (VOID) |
UINTN EFIAPI | EDBPrint (IN CONST CHAR16 *Format,...) |
UINTN EFIAPI | EDBSPrint (OUT CHAR16 *Buffer, IN INTN BufferSize, IN CONST CHAR16 *Format,...) |
UINTN EFIAPI | EDBSPrintWithOffset (OUT CHAR16 *Buffer, IN INTN BufferSize, IN UINTN Offset, IN CONST CHAR16 *Format,...) |
EFI_STATUS EFIAPI | ReadFileToBuffer (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *FileName, OUT UINTN *BufferSize, OUT VOID **Buffer, IN BOOLEAN ScanFs) |
CHAR16 *EFIAPI | GetFileNameUnderDir (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *DirName, IN CHAR16 *FileName, IN OUT UINTN *Index) |
Copyright (c) 2007, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EdbSupport.h.
#define EFI_DEBUG_INPUS_BUFFER_SIZE 64 |
Definition at line 16 of file EdbSupport.h.
#define EFI_DEBUG_MAX_PRINT_BUFFER (80 * 4) |
Definition at line 20 of file EdbSupport.h.
#define EFI_DEBUG_PROMPT_COLUMN 5 |
Definition at line 15 of file EdbSupport.h.
#define EFI_DEBUG_PROMPT_STRING L"EDB > " |
Definition at line 14 of file EdbSupport.h.
#define EFI_DEBUGGER_LINE_NUMBER_IN_PAGE 0x10 |
Definition at line 18 of file EdbSupport.h.
UINTN EFIAPI AsciiAtoi | ( | CHAR8 * | Str | ) |
Convert hex string to uint.
Str | - The string |
Definition at line 273 of file EdbSupportString.c.
Find the next token after one specificed characters.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 939 of file EdbSupportString.c.
Find the next token after one or more specified characters.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 905 of file EdbSupportString.c.
CHAR8 *EFIAPI AsciiStrGetNextTokenField | ( | IN CHAR8 * | CharSet | ) |
Find the next token after one specificed characters.
CharSet | Point to the string to be found. |
Definition at line 956 of file EdbSupportString.c.
CHAR8 *EFIAPI AsciiStrGetNextTokenLine | ( | IN CHAR8 * | CharSet | ) |
Find the next token after one or more specified characters.
CharSet | Point to the string to be found. |
Definition at line 922 of file EdbSupportString.c.
UINTN EFIAPI AsciiXtoi | ( | CHAR8 * | Str | ) |
Convert hex string to uint.
Str | - The string |
Definition at line 206 of file EdbSupportString.c.
UINTN EFIAPI Atoi | ( | CHAR16 * | Str | ) |
Convert hex string to uint.
Str | - The string |
Definition at line 155 of file EdbSupportString.c.
Print a Unicode string to the output device.
Format | A Null-terminated Unicode format string. |
... | The variable argument list that contains pointers to Null- terminated Unicode strings to be printed |
Definition at line 683 of file EdbSupportUI.c.
Print a Unicode string to the output buffer.
Buffer | A pointer to the output buffer for the produced Null-terminated Unicode string. |
BufferSize | The size, in bytes, of the output buffer specified by StartOfBuffer. |
Format | A Null-terminated Unicode format string. |
... | The variable argument list that contains pointers to Null- terminated Unicode strings to be printed |
Definition at line 719 of file EdbSupportUI.c.
UINTN EFIAPI EDBSPrintWithOffset | ( | OUT CHAR16 * | Buffer, |
IN INTN | BufferSize, | ||
IN UINTN | Offset, | ||
IN CONST CHAR16 * | Format, | ||
... | |||
) |
Print a Unicode string to the output buffer with specified offset..
Buffer | A pointer to the output buffer for the produced Null-terminated Unicode string. |
BufferSize | The size, in bytes, of the output buffer specified by StartOfBuffer. |
Offset | The offset of the buffer. |
Format | A Null-terminated Unicode format string. |
... | The variable argument list that contains pointers to Null- terminated Unicode strings to be printed |
Definition at line 752 of file EdbSupportUI.c.
CHAR16 *EFIAPI GetFileNameUnderDir | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | DirName, | ||
IN CHAR16 * | FileName, | ||
IN OUT UINTN * | Index | ||
) |
Get file name under this dir with index
DebuggerPrivate | - EBC Debugger private data structure |
DirName | - The dir to be read. |
FileName | - The file name pattern under this dir |
Index | - The file index under this dir |
Definition at line 265 of file EdbSupportFile.c.
Shell Library. Get user input.
Prompt | The prompt string. |
InStr | Point to the input string. |
StrLen | The max length of string user can input. |
Get user input.
Prompt | The prompt string. |
InStr | Point to the input string. |
StrLength | The max length of string user can input. |
Definition at line 187 of file EdbSupportUI.c.
UINT64 EFIAPI LXtoi | ( | CHAR16 * | Str | ) |
Convert hex string to uint.
Str | - The string |
Definition at line 87 of file EdbSupportString.c.
Patch a character to the end of a string.
Buffer | The string to be patched. |
Patch | The patch character. |
Definition at line 973 of file EdbSupportString.c.
Patch a character at the beginning of a string.
Buffer | The string to be patched. |
Patch | The patch character. |
Definition at line 1011 of file EdbSupportString.c.
Patch a character to the end of a string.
Buffer | The string to be patched. |
Patch | The patch character. |
Definition at line 687 of file EdbSupportString.c.
Patch a character at the beginning of a string.
Buffer | The string to be patched. |
Patch | The patch character. |
Definition at line 725 of file EdbSupportString.c.
EFI_STATUS EFIAPI ReadFileToBuffer | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | FileName, | ||
OUT UINTN * | BufferSize, | ||
OUT VOID ** | Buffer, | ||
IN BOOLEAN | ScanFs | ||
) |
Read a file. If ScanFs is FLASE, it will use DebuggerPrivate->Vol as default Fs. If ScanFs is TRUE, it will scan all FS and check the file. If there is only one file match the name, it will be read. If there is more than one file match the name, it will return Error.
DebuggerPrivate | - EBC Debugger private data structure |
FileName | - The file to be read. |
BufferSize | - The file buffer size |
Buffer | - The file buffer |
ScanFs | - Need Scan all FS |
EFI_SUCCESS | - read file successfully |
EFI_NOT_FOUND | - file not found |
EFI_NO_MAPPING | - there is duplicated files found |
Definition at line 143 of file EdbSupportFile.c.
BOOLEAN EFIAPI SetPageBreak | ( | VOID | ) |
SetPageBreak.
Definition at line 605 of file EdbSupportUI.c.
Compare the Unicode and Ascii string pointed by String to the string pointed by String2.
String | - Unicode String to process |
String2 | - Ascii string to process |
Definition at line 329 of file EdbSupportString.c.
CHAR16 *EFIAPI StrDuplicate | ( | IN CHAR16 * | Src | ) |
Duplicate a string.
Src | The string to be duplicated. |
Definition at line 445 of file EdbSupportString.c.
Verify if the string is end with the sub string.
Str | - The string where to search the sub string |
SubStr | - The substring. |
Definition at line 414 of file EdbSupportString.c.
Find the next token after one specificed characters.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 653 of file EdbSupportString.c.
Find the next token after one or more specified characters.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 619 of file EdbSupportString.c.
CHAR16 *EFIAPI StrGetNextTokenField | ( | IN CHAR16 * | CharSet | ) |
Find the next token after one specificed characters.
CharSet | Point to the string to be found. |
Definition at line 670 of file EdbSupportString.c.
CHAR16 *EFIAPI StrGetNextTokenLine | ( | IN CHAR16 * | CharSet | ) |
Find the next token after one or more specified characters.
CharSet | Point to the string to be found. |
Definition at line 636 of file EdbSupportString.c.
Compare the Unicode string pointed by String to the string pointed by String2.
String | - Unicode String to process |
String2 | - Unicode string to process |
Definition at line 360 of file EdbSupportString.c.
Compare the Unicode and Ascii string pointed by String to the string pointed by String2.
String | - Unicode String to process |
String2 | - Ascii string to process |
Definition at line 389 of file EdbSupportString.c.
UINTN EFIAPI Xtoi | ( | CHAR16 * | Str | ) |
Convert hex string to uint.
Str | - The string |
Definition at line 20 of file EdbSupportString.c.