TianoCore EDK2 master
|
#include <Uefi.h>
#include <Protocol/ServiceBinding.h>
#include <Protocol/Hash2.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/DevicePathLib.h>
#include <Library/UefiLib.h>
Go to the source code of this file.
Data Structures | |
struct | HASH2_SERVICE_DATA |
struct | HASH2_INSTANCE_DATA |
Macros | |
#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 |
This is definition for service binding for Hash driver.
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Driver.h.
#define HASH2_INSTANCE_DATA_FROM_LINK | ( | a | ) |
#define HASH2_INSTANCE_DATA_FROM_THIS | ( | a | ) |
#define HASH2_INSTANCE_DATA_SIGNATURE SIGNATURE_32 ('H', 's', '2', 'I') |
#define HASH2_SERVICE_DATA_FROM_THIS | ( | a | ) |
#define HASH2_SERVICE_DATA_SIGNATURE SIGNATURE_32 ('H', 'S', '2', 'S') |
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_SUCCESS | The protocol was added to ChildHandle. |
EFI_INVALID_PARAMETER | ChildHandle is NULL. |
EFI_OUT_OF_RESOURCES | There are not enough resources available to create the child. |
Others | The child handle was not created. |
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_SUCCESS | 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. |
|
extern |
Definition at line 248 of file Hash2DxeCrypto.c.