TianoCore EDK2 master
|
#include <Uefi.h>
#include <Guid/GlobalVariable.h>
#include <Guid/ConsoleInDevice.h>
#include <Guid/ConsoleOutDevice.h>
#include <Guid/FileSystemInfo.h>
#include <Guid/ShellLibHiiGuid.h>
#include <Protocol/Shell.h>
#include <Protocol/ShellParameters.h>
#include <Protocol/DevicePath.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/UnicodeCollation.h>
#include <Protocol/DriverDiagnostics2.h>
#include <Protocol/DriverDiagnostics.h>
#include <Protocol/PlatformDriverOverride.h>
#include <Protocol/BusSpecificDriverOverride.h>
#include <Protocol/PlatformToDriverConfiguration.h>
#include <Protocol/DriverSupportedEfiVersion.h>
#include <Protocol/DriverFamilyOverride.h>
#include <Protocol/DriverHealth.h>
#include <Protocol/SimplePointer.h>
#include <Protocol/CpuIo2.h>
#include <Protocol/PciRootBridgeIo.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/ShellCommandLib.h>
#include <Library/ShellLib.h>
#include <Library/SortLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/HiiLib.h>
#include <Library/FileHandleLib.h>
#include <Library/DevicePathLib.h>
#include <Library/PrintLib.h>
#include <Library/HandleParsingLib.h>
#include <Library/SafeIntLib.h>
Go to the source code of this file.
Variables | |
EFI_HII_HANDLE | gShellDebug1HiiHandle |
Main file for NULL named library for Profile1 shell command functions.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UefiShellDebug1CommandsLib.h.
Find a filename that is valid (not taken) with the given extension.
[in] | Extension | The file extension. |
NULL | Something went wrong. |
Definition at line 260 of file UefiShellDebug1CommandsLib.c.
Clear the line at the specified Row.
[in] | Row | The row number to be cleared ( start from 1 ) |
[in] | LastCol | The last printable column. |
[in] | LastRow | The last printable row. |
Definition at line 148 of file UefiShellDebug1CommandsLib.c.
EFI_STATUS GetSystemConfigurationTable | ( | IN EFI_GUID * | TableGuid, |
IN OUT VOID ** | Table | ||
) |
Function returns a system configuration table that is stored in the EFI System Table based on the provided GUID.
[in] | TableGuid | A pointer to the table's GUID type. |
[in,out] | Table | On exit, a pointer to a system configuration table. |
EFI_SUCCESS | A configuration table matching TableGuid was found. |
EFI_NOT_FOUND | A configuration table matching TableGuid was not found. |
Definition at line 121 of file UefiShellDebug1CommandsLib.c.
Check if file name has illegal characters.
Name | The filename to check. |
TRUE | The filename is ok. |
FALSE | The filename is not ok. |
Definition at line 219 of file UefiShellDebug1CommandsLib.c.
EFI_STATUS ReadFileIntoBuffer | ( | IN CONST CHAR16 * | FileName, |
OUT VOID ** | Buffer, | ||
OUT UINTN *BufferSize | OPTIONAL, | ||
OUT BOOLEAN * | ReadOnly | ||
) |
Read a file into an allocated buffer. The buffer is the responsibility of the caller to free.
[in] | FileName | The filename of the file to open. |
[out] | Buffer | Upon successful return, the pointer to the address of the allocated buffer. |
[out] | BufferSize | If not NULL, then the pointer to the size of the allocated buffer. |
[out] | ReadOnly | Upon successful return TRUE if the file is read only. FALSE otherwise. |
EFI_NOT_FOUND | The filename did not represent a file in the file system. Directories cannot be read with this method. |
EFI_SUCCESS | The file was read into the buffer. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | The file read operation failed. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
EFI_INVALID_PARAMETER | FileName was NULL. |
EFI_INVALID_PARAMETER | FileName was a directory. |
Read a file into an allocated buffer. The buffer is the responsibility of the caller to free.
[in] | FileName | The filename of the file to open. |
[out] | Buffer | Upon successful return, the pointer to the address of the allocated buffer. |
[out] | BufferSize | If not NULL, then the pointer to the size of the allocated buffer. |
[out] | ReadOnly | Upon successful return TRUE if the file is read only. FALSE otherwise. |
EFI_NOT_FOUND | The filename did not represent a file in the file system. |
EFI_SUCCESS | The file was read into the buffer. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
EFI_LOAD_ERROR | The file read operation failed. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
EFI_INVALID_PARAMETER | FileName was NULL. |
EFI_INVALID_PARAMETER | FileName was a directory. |
Definition at line 317 of file UefiShellDebug1CommandsLib.c.
SHELL_STATUS EFIAPI ShellCommandRunBcfg | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'bcfg' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 1521 of file UefiShellBcfgCommandLib.c.
SHELL_STATUS EFIAPI ShellCommandRunComp | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunDblk | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunDmem | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunDmpStore | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'dmpstore' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 747 of file DmpStore.c.
SHELL_STATUS EFIAPI ShellCommandRunEdit | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunEfiCompress | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'compress' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 21 of file EfiCompress.c.
SHELL_STATUS EFIAPI ShellCommandRunEfiDecompress | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'decompress' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 21 of file EfiDecompress.c.
SHELL_STATUS EFIAPI ShellCommandRunHexEdit | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunLoadPciRom | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'loadpcirom' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 60 of file LoadPciRom.c.
SHELL_STATUS EFIAPI ShellCommandRunMemMap | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunMm | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunMode | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunPci | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunSerMode | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunSetSize | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunSetVar | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS EFIAPI ShellCommandRunSmbiosView | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Function for 'smbiosview' command.
[in] | ImageHandle | Handle to the Image (NULL if Internal). |
[in] | SystemTable | Pointer to the System Table (NULL if Internal). |
Definition at line 43 of file SmbiosView.c.
|
extern |
Definition at line 13 of file UefiShellDebug1CommandsLib.c.