Data Structures | |
struct | HASH2_SERVICE_DATA |
struct | HASH2_INSTANCE_DATA |
Defines | |
#define | HASH2_SERVICE_DATA_SIGNATURE SIGNATURE_32 ('H', 'S', '2', 'S') |
#define | HASH2_SERVICE_DATA_FROM_THIS(a) |
#define | HASH2_INSTANCE_DATA_SIGNATURE SIGNATURE_32 ('H', 's', '2', 'I') |
#define | HASH2_INSTANCE_DATA_FROM_THIS(a) |
#define | HASH2_INSTANCE_DATA_FROM_LINK(a) |
Functions | |
EFI_STATUS EFIAPI | Hash2ServiceBindingCreateChild (IN EFI_SERVICE_BINDING_PROTOCOL *This, IN OUT EFI_HANDLE *ChildHandle) |
EFI_STATUS EFIAPI | Hash2ServiceBindingDestroyChild (IN EFI_SERVICE_BINDING_PROTOCOL *This, IN EFI_HANDLE ChildHandle) |
Variables | |
EFI_HASH2_PROTOCOL | mHash2Protocol |
Copyright (c) 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define HASH2_INSTANCE_DATA_FROM_LINK | ( | a | ) |
Value:
CR ( \ (a), \ HASH2_INSTANCE_DATA, \ InstEntry, \ HASH2_INSTANCE_DATA_SIGNATURE \ )
Referenced by Hash2ServiceBindingDestroyChild().
#define HASH2_INSTANCE_DATA_FROM_THIS | ( | a | ) |
Value:
CR ( \ (a), \ HASH2_INSTANCE_DATA, \ Hash2Protocol, \ HASH2_INSTANCE_DATA_SIGNATURE \ )
Referenced by BaseCrypto2Hash(), BaseCrypto2HashFinal(), BaseCrypto2HashInit(), and BaseCrypto2HashUpdate().
#define HASH2_INSTANCE_DATA_SIGNATURE SIGNATURE_32 ('H', 's', '2', 'I') |
Referenced by Hash2ServiceBindingCreateChild().
#define HASH2_SERVICE_DATA_FROM_THIS | ( | a | ) |
Value:
CR ( \ (a), \ HASH2_SERVICE_DATA, \ ServiceBinding, \ HASH2_SERVICE_DATA_SIGNATURE \ )
Referenced by Hash2ServiceBindingCreateChild(), and Hash2ServiceBindingDestroyChild().
#define HASH2_SERVICE_DATA_SIGNATURE SIGNATURE_32 ('H', 'S', '2', 'S') |
Referenced by Hash2DriverEntryPoint().
EFI_STATUS EFIAPI Hash2ServiceBindingCreateChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, | |
IN OUT EFI_HANDLE * | ChildHandle | |||
) |
Creates a child handle with a set of I/O services.
[in] | This | Protocol instance pointer. |
[in,out] | ChildHandle | Pointer to the handle of the child to create. If it is NULL, then a new handle is created. If it is not NULL, then the I/O services are added to the existing child handle. |
EFI_SUCCES | The protocol was added to ChildHandle. | |
EFI_INVALID_PARAMETER | ChildHandle is NULL. | |
EFI_OUT_OF_RESOURCES | There are not enough resources availabe to create the child. | |
Others | The child handle was not created. |
References HASH2_SERVICE_DATA::ChildrenList, EFI_STATUS(), HASH2_INSTANCE_DATA::Handle, HASH2_INSTANCE_DATA_SIGNATURE, HASH2_SERVICE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::Hash2Protocol, HASH2_INSTANCE_DATA::Hash2ServiceData, HASH2_INSTANCE_DATA::InstEntry, mHash2Protocol, and HASH2_INSTANCE_DATA::Signature.
EFI_STATUS EFIAPI Hash2ServiceBindingDestroyChild | ( | IN EFI_SERVICE_BINDING_PROTOCOL * | This, | |
IN EFI_HANDLE | ChildHandle | |||
) |
Destroys a child handle with a set of I/O services.
The DestroyChild() function does the opposite of CreateChild(). It removes a protocol that was installed by CreateChild() from ChildHandle. If the removed protocol is the last protocol on ChildHandle, then ChildHandle is destroyed.
[in] | This | Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance. |
[in] | ChildHandle | Handle of the child to destroy. |
EFI_SUCCES | The protocol was removed from ChildHandle. | |
EFI_UNSUPPORTED | ChildHandle does not support the protocol that is being removed. | |
EFI_INVALID_PARAMETER | ChildHandle is NULL. | |
EFI_ACCESS_DENIED | The protocol could not be removed from the ChildHandle because its services are being used. | |
Others | The child handle was not destroyed. |
References HASH2_SERVICE_DATA::ChildrenList, EFI_STATUS(), HASH2_INSTANCE_DATA::Handle, HASH2_INSTANCE_DATA_FROM_LINK, HASH2_SERVICE_DATA_FROM_THIS, HASH2_INSTANCE_DATA::Hash2Protocol, and HASH2_INSTANCE_DATA::InstEntry.
EFI_HASH2_PROTOCOL mHash2Protocol |
Referenced by Hash2ServiceBindingCreateChild().