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) |
EFI_STATUS EFIAPI | Hash2DriverEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_SERVICE_BINDING_PROTOCOL | mHash2ServiceBindingProtocol |
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.
EFI_STATUS EFIAPI Hash2DriverEntryPoint | ( | IN EFI_HANDLE | ImageHandle, | |
IN EFI_SYSTEM_TABLE * | SystemTable | |||
) |
The entry point for Hash driver which installs the service binding protocol.
[in] | ImageHandle | The image handle of the driver. |
[in] | SystemTable | The system table. |
EFI_SUCCES | The service binding protocols is successfully installed. | |
Others | Other errors as indicated. |
References HASH2_SERVICE_DATA::ChildrenList, EFI_STATUS(), HASH2_SERVICE_DATA_SIGNATURE, mHash2ServiceBindingProtocol, HASH2_SERVICE_DATA::ServiceBinding, HASH2_SERVICE_DATA::ServiceHandle, and HASH2_SERVICE_DATA::Signature.
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_SERVICE_BINDING_PROTOCOL mHash2ServiceBindingProtocol |
Initial value:
Referenced by Hash2DriverEntryPoint().