TianoCore EDK2 master
|
#include "UefiShellDriver1CommandsLib.h"
Go to the source code of this file.
Functions | |
BOOLEAN | IsValidGuidString (IN CONST CHAR16 *String) |
UINTN | HexCharToDecimal (IN CHAR16 Char) |
EFI_STATUS | ConvertStrToGuid (IN CONST CHAR16 *String, OUT GUID *Guid) |
EFI_STATUS | GetDriverName (IN EFI_HANDLE TheHandle, IN CONST CHAR8 *Language, IN CHAR16 **NameFound) |
BOOLEAN | IsDriverProt (IN CONST EFI_GUID *Guid) |
CHAR16 * | GetProtocolInfoString (IN CONST EFI_HANDLE TheHandle, IN CONST CHAR8 *Language, IN CONST CHAR16 *Separator, IN CONST BOOLEAN Verbose, IN CONST BOOLEAN ExtraInfo) |
EFI_STATUS | GetDriverImageName (IN EFI_HANDLE TheHandle, OUT CHAR16 **Name) |
EFI_STATUS | DisplayDriverModelHandle (IN EFI_HANDLE Handle, IN BOOLEAN BestName, IN CONST CHAR8 *Language OPTIONAL) |
VOID | DoDhByHandle (IN CONST EFI_HANDLE TheHandle, IN CONST BOOLEAN Verbose, IN CONST BOOLEAN Sfo, IN CONST CHAR8 *Language, IN CONST BOOLEAN DriverInfo, IN CONST BOOLEAN Multiple) |
SHELL_STATUS | DoDhForHandleList (IN CONST EFI_HANDLE *HandleList, IN CONST BOOLEAN Verbose, IN CONST BOOLEAN Sfo, IN CONST CHAR8 *Language, IN CONST BOOLEAN DriverInfo) |
SHELL_STATUS | DoDhByProtocolGuid (IN CONST GUID *Guid, IN CONST BOOLEAN Verbose, IN CONST BOOLEAN Sfo, IN CONST CHAR8 *Language, IN CONST BOOLEAN DriverInfo) |
SHELL_STATUS | DoDhByProtocol (IN CONST CHAR16 *Protocol, IN CONST BOOLEAN Verbose, IN CONST BOOLEAN Sfo, IN CONST CHAR8 *Language, IN CONST BOOLEAN DriverInfo) |
SHELL_STATUS | DoDecodeByProtocol (IN CONST CHAR16 *Protocol, IN CONST CHAR8 *Language) |
SHELL_STATUS EFIAPI | ShellCommandRunDh (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
STATIC CONST EFI_GUID * | UefiDriverModelProtocolsGuidArray [] |
UINTN | mGuidDataLen [] = { 8, 4, 4, 4, 12 } |
Main file for Dh shell Driver1 function.
(C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2017 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Dh.c.
EFI_STATUS ConvertStrToGuid | ( | IN CONST CHAR16 * | String, |
OUT GUID * | Guid | ||
) |
EFI_STATUS DisplayDriverModelHandle | ( | IN EFI_HANDLE | Handle, |
IN BOOLEAN | BestName, | ||
IN CONST CHAR8 *Language | OPTIONAL | ||
) |
SHELL_STATUS DoDecodeByProtocol | ( | IN CONST CHAR16 * | Protocol, |
IN CONST CHAR8 * | Language | ||
) |
Function to display decode information by Protocol. The parameter Protocol is either a GUID or the name of protocol. If the parameter Protocol is NULL, the function will print all decode information.
[in] | Protocol | The pointer to the name or GUID of protocol. |
[in] | Language | Language string per UEFI specification. |
SHELL_SUCCESS | The operation was successful. |
SHELL_OUT_OT_RESOURCES | A memory allocation failed. |
VOID DoDhByHandle | ( | IN CONST EFI_HANDLE | TheHandle, |
IN CONST BOOLEAN | Verbose, | ||
IN CONST BOOLEAN | Sfo, | ||
IN CONST CHAR8 * | Language, | ||
IN CONST BOOLEAN | DriverInfo, | ||
IN CONST BOOLEAN | Multiple | ||
) |
Display information for a handle.
[in] | TheHandle | The handles to show info on. |
[in] | Verbose | TRUE for extra info, FALSE otherwise. |
[in] | Sfo | TRUE to output in standard format output (spec). |
[in] | Language | Language string per UEFI specification. |
[in] | DriverInfo | TRUE to show all info about the handle. |
[in] | Multiple | TRUE indicates more than will be output, FALSE for a single one. |
SHELL_STATUS DoDhByProtocol | ( | IN CONST CHAR16 * | Protocol, |
IN CONST BOOLEAN | Verbose, | ||
IN CONST BOOLEAN | Sfo, | ||
IN CONST CHAR8 * | Language, | ||
IN CONST BOOLEAN | DriverInfo | ||
) |
Function to determine use which method to print information. If Protocol is NULL, The function will print all information.
[in] | Protocol | The pointer to the name or GUID of protocol or NULL. |
[in] | Verbose | TRUE for extra info, FALSE otherwise. |
[in] | Sfo | TRUE to output in standard format output (spec). |
[in] | Language | Language string per UEFI specification. |
[in] | DriverInfo | TRUE to show all info about the handle. |
SHELL_SUCCESS | The operation was successful. |
SHELL_NOT_FOUND | The protocol was not found. |
SHELL_INVALID_PARAMETER | Protocol is invalid parameter. |
SHELL_STATUS DoDhByProtocolGuid | ( | IN CONST GUID * | Guid, |
IN CONST BOOLEAN | Verbose, | ||
IN CONST BOOLEAN | Sfo, | ||
IN CONST CHAR8 * | Language, | ||
IN CONST BOOLEAN | DriverInfo | ||
) |
Display information for a GUID of protocol.
[in] | Guid | The pointer to the name of the protocol. |
[in] | Verbose | TRUE for extra info, FALSE otherwise. |
[in] | Sfo | TRUE to output in standard format output (spec). |
[in] | Language | Language string per UEFI specification. |
[in] | DriverInfo | TRUE to show all info about the handle. |
SHELL_SUCCESS | The operation was successful. |
SHELL_NOT_FOUND | The GUID was not found. |
SHELL_INVALID_PARAMETER | ProtocolName was NULL or invalid. |
SHELL_STATUS DoDhForHandleList | ( | IN CONST EFI_HANDLE * | HandleList, |
IN CONST BOOLEAN | Verbose, | ||
IN CONST BOOLEAN | Sfo, | ||
IN CONST CHAR8 * | Language, | ||
IN CONST BOOLEAN | DriverInfo | ||
) |
Display information for all handles on a list.
[in] | HandleList | The NULL-terminated list of handles. |
[in] | Verbose | TRUE for extra info, FALSE otherwise. |
[in] | Sfo | TRUE to output in standard format output (spec). |
[in] | Language | Language string per UEFI specification. |
[in] | DriverInfo | TRUE to show all info about the handle. |
SHELL_SUCCESS | The operation was successful. |
SHELL_ABORTED | The operation was aborted. |
EFI_STATUS GetDriverImageName | ( | IN EFI_HANDLE | TheHandle, |
OUT CHAR16 ** | Name | ||
) |
EFI_STATUS GetDriverName | ( | IN EFI_HANDLE | TheHandle, |
IN CONST CHAR8 * | Language, | ||
IN CHAR16 ** | NameFound | ||
) |
Get the name of a driver by it's handle.
If a name is found the memory must be callee freed.
[in] | TheHandle | The driver's handle. |
[in] | Language | The language to use. |
[in] | NameFound | Upon a successful return the name found. |
EFI_SUCCESS | The name was found. |
CHAR16 * GetProtocolInfoString | ( | IN CONST EFI_HANDLE | TheHandle, |
IN CONST CHAR8 * | Language, | ||
IN CONST CHAR16 * | Separator, | ||
IN CONST BOOLEAN | Verbose, | ||
IN CONST BOOLEAN | ExtraInfo | ||
) |
Get information for a handle.
[in] | TheHandle | The handles to show info on. |
[in] | Language | Language string per UEFI specification. |
[in] | Separator | Separator string between information blocks. |
[in] | Verbose | TRUE for extra info, FALSE otherwise. |
[in] | ExtraInfo | TRUE for extra info, FALSE otherwise. |
SHELL_SUCCESS | The operation was successful. |
SHELL_INVALID_PARAMETER | ProtocolName was NULL or invalid. |
Convert a hex-character to decimal value.
This internal function only deal with Unicode character which maps to a valid hexadecimal ASII character, i.e. L'0' to L'9', L'a' to L'f' or L'A' to L'F'. For other Unicode character, the value returned does not make sense.
[in] | Char | The character to convert. |
The | numerical value converted. |
Function to determine if the string can convert to a GUID. The string must be restricted as "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" format.
[in] | String | The string to test. |
SHELL_STATUS EFIAPI ShellCommandRunDh | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |