OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | HANDLE_LIST |
struct | HANDLE_INDEX_LIST |
Macros | |
#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_UEFI_DRIVERS(ControllerHandle, Count, Buffer) |
Functions | |
UINTN EFIAPI | InternalConvertHandleToHandleIndex (IN CONST EFI_HANDLE TheHandle) |
EFI_STATUS EFIAPI | InternalParseHandleDatabaseByRelationship (IN CONST EFI_HANDLE DriverBindingHandle OPTIONAL, IN CONST EFI_HANDLE ControllerHandle OPTIONAL, IN CONST UINTN Mask, IN UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer OPTIONAL) |
Provides interface to parsing both handle and protocol database.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
(C) Copyright 2013-2016 Hewlett-Packard Development Company, L.P.
(C) Copyright 2021 vit9696. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HandleParsingMin.h.
#define HR_BUS_DRIVER BIT4 |
Definition at line 29 of file HandleParsingMin.h.
#define HR_CHILD_HANDLE BIT11 |
Definition at line 36 of file HandleParsingMin.h.
#define HR_COMPONENT_NAME_HANDLE BIT7 |
Definition at line 32 of file HandleParsingMin.h.
#define HR_CONTROLLER_HANDLE BIT10 |
Definition at line 35 of file HandleParsingMin.h.
#define HR_DEVICE_DRIVER BIT3 |
Definition at line 28 of file HandleParsingMin.h.
#define HR_DEVICE_HANDLE BIT8 |
Definition at line 33 of file HandleParsingMin.h.
#define HR_DRIVER_BINDING_HANDLE BIT2 |
Definition at line 27 of file HandleParsingMin.h.
#define HR_DRIVER_CONFIGURATION_HANDLE BIT5 |
Definition at line 30 of file HandleParsingMin.h.
#define HR_DRIVER_DIAGNOSTICS_HANDLE BIT6 |
Definition at line 31 of file HandleParsingMin.h.
#define HR_IMAGE_HANDLE BIT1 |
Definition at line 26 of file HandleParsingMin.h.
#define HR_PARENT_HANDLE BIT9 |
Definition at line 34 of file HandleParsingMin.h.
#define HR_UNKNOWN 0 |
Definition at line 25 of file HandleParsingMin.h.
#define HR_VALID_MASK (BIT1|BIT2|BIT3|BIT4|BIT5|BIT6|BIT7|BIT8|BIT9|BIT10|BIT11) |
Definition at line 37 of file HandleParsingMin.h.
#define PARSE_HANDLE_DATABASE_UEFI_DRIVERS | ( | ControllerHandle, | |
Count, | |||
Buffer ) |
Gets handles for any UEFI drivers of the passed in controller.
[in] | ControllerHandle | The handle of the controller. |
[in] | Count | The pointer to the number of handles in MatchingHandleBuffer on return. |
[out] | Buffer | The buffer containing handles on a successful return. |
EFI_SUCCESS | The operation was successful. |
Definition at line 105 of file HandleParsingMin.h.
UINTN EFIAPI InternalConvertHandleToHandleIndex | ( | IN CONST EFI_HANDLE | TheHandle | ) |
Function to retrieve the human-friendly index of a given handle. If the handle does not have a index one will be automatically assigned. The index value is valid until the termination of the shell application.
[in] | TheHandle | The handle to retrieve an index for. |
0 | A memory allocation failed. |
Definition at line 89 of file HandleParsingMin.c.
EFI_STATUS EFIAPI InternalParseHandleDatabaseByRelationship | ( | IN CONST EFI_HANDLE DriverBindingHandle | OPTIONAL, |
IN CONST EFI_HANDLE ControllerHandle | OPTIONAL, | ||
IN CONST UINTN | Mask, | ||
IN UINTN * | MatchingHandleCount, | ||
OUT EFI_HANDLE **MatchingHandleBuffer | OPTIONAL ) |
Gets all the related EFI_HANDLEs based on the single EFI_HANDLE and 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 sucessful return the memory must be caller freed.
[in] | DriverBindingHandle | Handle to a object with Driver Binding protocol on it. |
[in] | ControllerHandle | Handle to a device with Device Path protocol on it. |
[in] | Mask | Mask of what relationship(s) is desired. |
[in] | MatchingHandleCount | Poitner to UINTN specifying number of HANDLES in MatchingHandleBuffer. |
[out] | MatchingHandleBuffer | On a sucessful return a buffer of MatchingHandleCount EFI_HANDLEs and a terminating NULL EFI_HANDLE. |
EFI_SUCCESS | The operation was sucessful 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. |
Definition at line 431 of file HandleParsingMin.c.