SecurityPkg/Hash2DxeCrypto/Driver.h File Reference


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

Detailed Description

This is definition for service binding for Hash driver.

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 Documentation

#define HASH2_INSTANCE_DATA_FROM_LINK (  ) 

Value:

CR ( \
  (a), \
  HASH2_INSTANCE_DATA, \
  InstEntry, \
  HASH2_INSTANCE_DATA_SIGNATURE \
  )

Referenced by Hash2ServiceBindingDestroyChild().

#define HASH2_INSTANCE_DATA_FROM_THIS (  ) 

#define HASH2_INSTANCE_DATA_SIGNATURE   SIGNATURE_32 ('H', 's', '2', 'I')

#define HASH2_SERVICE_DATA_FROM_THIS (  ) 

#define HASH2_SERVICE_DATA_SIGNATURE   SIGNATURE_32 ('H', 'S', '2', 'S')

Referenced by Hash2DriverEntryPoint().


Function Documentation

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.

Parameters:
[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.
Return values:
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.

Parameters:
[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
[in] ChildHandle Handle of the child to destroy.
Return values:
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.


Variable Documentation

EFI_HASH2_PROTOCOL mHash2Protocol


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1