|
#define | HR_UNKNOWN 0 |
|
#define | HR_IMAGE_HANDLE BIT1 |
|
#define | HR_DRIVER_BINDING_HANDLE BIT2 |
|
#define | HR_DEVICE_DRIVER BIT3 |
|
#define | HR_BUS_DRIVER BIT4 |
|
#define | HR_DRIVER_CONFIGURATION_HANDLE BIT5 |
|
#define | HR_DRIVER_DIAGNOSTICS_HANDLE BIT6 |
|
#define | HR_COMPONENT_NAME_HANDLE BIT7 |
|
#define | HR_DEVICE_HANDLE BIT8 |
|
#define | HR_PARENT_HANDLE BIT9 |
|
#define | HR_CONTROLLER_HANDLE BIT10 |
|
#define | HR_CHILD_HANDLE BIT11 |
|
#define | HR_VALID_MASK (BIT1|BIT2|BIT3|BIT4|BIT5|BIT6|BIT7|BIT8|BIT9|BIT10|BIT11) |
|
#define | PARSE_HANDLE_DATABASE_PARENTS(ControllerHandle, Count, Buffer) ParseHandleDatabaseByRelationship(NULL, ControllerHandle, HR_PARENT_HANDLE, Count, Buffer) |
|
#define | PARSE_HANDLE_DATABASE_UEFI_DRIVERS(ControllerHandle, Count, Buffer) ParseHandleDatabaseByRelationship(NULL, ControllerHandle, HR_DRIVER_BINDING_HANDLE|HR_DEVICE_DRIVER, Count, Buffer) |
|
#define | PARSE_HANDLE_DATABASE_MANAGED_CHILDREN(DriverHandle, ControllerHandle, Count, Buffer) ParseHandleDatabaseByRelationship(DriverHandle, ControllerHandle, HR_CHILD_HANDLE|HR_DEVICE_HANDLE, Count, Buffer) |
|
#define | PARSE_HANDLE_DATABASE_DEVICES(DriverHandle, Count, Buffer) ParseHandleDatabaseByRelationship(DriverHandle, NULL, HR_CONTROLLER_HANDLE|HR_DEVICE_HANDLE, Count, Buffer) |
|
|
EFI_STATUS EFIAPI | AddNewGuidNameMapping (IN CONST EFI_GUID *Guid, IN CONST CHAR16 *TheName, IN CONST CHAR8 *Lang) |
|
CHAR16 *EFIAPI | GetStringNameFromGuid (IN CONST EFI_GUID *Guid, IN CONST CHAR8 *Lang) |
|
EFI_STATUS EFIAPI | GetGuidFromStringName (IN CONST CHAR16 *Name, IN CONST CHAR8 *Lang, OUT EFI_GUID **Guid) |
|
CHAR16 *EFIAPI | GetProtocolInformationDump (IN CONST EFI_HANDLE TheHandle, IN CONST EFI_GUID *Guid, IN CONST BOOLEAN Verbose) |
|
CONST CHAR16 *EFIAPI | GetStringNameFromHandle (IN CONST EFI_HANDLE TheHandle, IN CONST CHAR8 *Language) |
|
CHAR8 *EFIAPI | GetBestLanguageForDriver (IN CONST CHAR8 *SupportedLanguages, IN CONST CHAR8 *InputLanguage, IN BOOLEAN Iso639Language) |
|
EFI_STATUS EFIAPI | ParseHandleDatabaseByRelationship (IN CONST EFI_HANDLE DriverBindingHandle, IN CONST EFI_HANDLE ControllerHandle, IN CONST UINTN Mask, IN UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer) |
|
EFI_STATUS EFIAPI | ParseHandleDatabaseByRelationshipWithType (IN CONST EFI_HANDLE DriverBindingHandle, IN CONST EFI_HANDLE ControllerHandle, IN UINTN *HandleCount, OUT EFI_HANDLE **HandleBuffer, OUT UINTN **HandleType) |
|
EFI_STATUS EFIAPI | ParseHandleDatabaseForChildDevices (IN CONST EFI_HANDLE DriverHandle, IN UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer) |
|
EFI_STATUS EFIAPI | ParseHandleDatabaseForChildControllers (IN CONST EFI_HANDLE ControllerHandle, OUT UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer) |
|
UINTN EFIAPI | ConvertHandleToHandleIndex (IN CONST EFI_HANDLE TheHandle) |
|
EFI_HANDLE EFIAPI | ConvertHandleIndexToHandle (IN CONST UINTN TheIndex) |
|
EFI_HANDLE *EFIAPI | GetHandleListByProtocol (IN CONST EFI_GUID *ProtocolGuid) |
|
EFI_HANDLE *EFIAPI | GetHandleListByProtocolList (IN CONST EFI_GUID **ProtocolGuids) |
|
EFI_STATUS EFIAPI | GetAllMappingGuids (OUT EFI_GUID *Guids, IN OUT UINTN *Count) |
|
Provides interface to advanced shell functionality for parsing both handle and protocol database.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
CHAR16* EFIAPI GetProtocolInformationDump |
( |
IN CONST EFI_HANDLE |
TheHandle, |
|
|
IN CONST EFI_GUID * |
Guid, |
|
|
IN CONST BOOLEAN |
Verbose |
|
) |
| |
Function to dump protocol information from a handle.
This function will return a allocated string buffer containing the information. The caller is responsible for freeing the memory.
If Guid is NULL, ASSERT(). If TheHandle is NULL, ASSERT().
- Parameters
-
[in] | TheHandle | The handle to dump information from. |
[in] | Guid | The GUID of the protocol to dump. |
[in] | Verbose | TRUE for extra info. FALSE otherwise. |
- Returns
- The pointer to string.
- Return values
-
NULL | An error was encountered. |
EFI_STATUS EFIAPI ParseHandleDatabaseByRelationship |
( |
IN CONST EFI_HANDLE |
DriverBindingHandle, |
|
|
IN CONST EFI_HANDLE |
ControllerHandle, |
|
|
IN CONST UINTN |
Mask, |
|
|
IN UINTN * |
MatchingHandleCount, |
|
|
OUT EFI_HANDLE ** |
MatchingHandleBuffer |
|
) |
| |
Gets all the related EFI_HANDLEs based on the mask supplied.
This function will scan all EFI_HANDLES in the UEFI environment's handle database and return all the ones with the specified relationship (Mask) to the specified controller handle.
If both DriverBindingHandle and ControllerHandle are NULL, then ASSERT. If MatchingHandleCount is NULL, then ASSERT.
If MatchingHandleBuffer is not NULL upon a successful return, the memory must be caller freed.
- Parameters
-
[in] | DriverBindingHandle | The handle with Driver Binding protocol on it. |
[in] | ControllerHandle | The handle with Device Path protocol on it. |
[in] | Mask | The mask of what relationship(s) is desired. |
[in] | MatchingHandleCount | The pointer to UINTN specifying number of HANDLES in MatchingHandleBuffer. |
[out] | MatchingHandleBuffer | On a successful return, a buffer of MatchingHandleCount EFI_HANDLEs with a terminating NULL EFI_HANDLE. |
- Return values
-
EFI_SUCCESS | The operation was successful, and any related handles are in MatchingHandleBuffer. |
EFI_NOT_FOUND | No matching handles were found. |
EFI_INVALID_PARAMETER | A parameter was invalid or out of range. |
- See Also
- ParseHandleDatabaseByRelationshipWithType
EFI_STATUS EFIAPI ParseHandleDatabaseByRelationshipWithType |
( |
IN CONST EFI_HANDLE |
DriverBindingHandle, |
|
|
IN CONST EFI_HANDLE |
ControllerHandle, |
|
|
IN UINTN * |
HandleCount, |
|
|
OUT EFI_HANDLE ** |
HandleBuffer, |
|
|
OUT UINTN ** |
HandleType |
|
) |
| |
Gets all the related EFI_HANDLEs based on the mask supplied.
This function scans all EFI_HANDLES in the UEFI environment's handle database and returns the ones with the specified relationship (Mask) to the specified controller handle.
If both DriverBindingHandle and ControllerHandle are NULL, then ASSERT. If MatchingHandleCount is NULL, then ASSERT.
If MatchingHandleBuffer is not NULL upon a successful return the memory must be caller freed.
- Parameters
-
[in] | DriverBindingHandle | The handle with Driver Binding protocol on it. |
[in] | ControllerHandle | The handle with Device Path protocol on it. |
[in] | MatchingHandleCount | The pointer to UINTN that specifies the number of HANDLES in MatchingHandleBuffer. |
[out] | MatchingHandleBuffer | On a successful return, a buffer of MatchingHandleCount EFI_HANDLEs with a terminating NULL EFI_HANDLE. |
[out] | HandleType | An array of type information. |
- Return values
-
EFI_SUCCESS | The operation was successful, and any related handles are in MatchingHandleBuffer. |
EFI_NOT_FOUND | No matching handles were found. |
EFI_INVALID_PARAMETER | A parameter was invalid or out of range. |