TianoCore EDK2 master
Loading...
Searching...
No Matches
Driver.h File Reference

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
 

Detailed Description

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.

Macro Definition Documentation

◆ HASH2_INSTANCE_DATA_FROM_LINK

#define HASH2_INSTANCE_DATA_FROM_LINK (   a)
Value:
CR ( \
(a), \
InstEntry, \
HASH2_INSTANCE_DATA_SIGNATURE \
)
#define CR(Record, TYPE, Field, TestSignature)
Definition: DebugLib.h:659

Definition at line 65 of file Driver.h.

◆ HASH2_INSTANCE_DATA_FROM_THIS

#define HASH2_INSTANCE_DATA_FROM_THIS (   a)
Value:
CR ( \
(a), \
Hash2Protocol, \
HASH2_INSTANCE_DATA_SIGNATURE \
)

Definition at line 57 of file Driver.h.

◆ HASH2_INSTANCE_DATA_SIGNATURE

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

Definition at line 44 of file Driver.h.

◆ HASH2_SERVICE_DATA_FROM_THIS

#define HASH2_SERVICE_DATA_FROM_THIS (   a)
Value:
CR ( \
(a), \
ServiceBinding, \
HASH2_SERVICE_DATA_SIGNATURE \
)

Definition at line 36 of file Driver.h.

◆ HASH2_SERVICE_DATA_SIGNATURE

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

Definition at line 26 of file Driver.h.

Function Documentation

◆ Hash2ServiceBindingCreateChild()

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]ThisProtocol instance pointer.
[in,out]ChildHandlePointer 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_SUCCESSThe protocol was added to ChildHandle.
EFI_INVALID_PARAMETERChildHandle is NULL.
EFI_OUT_OF_RESOURCESThere are not enough resources available to create the child.
OthersThe child handle was not created.

Definition at line 34 of file Driver.c.

◆ Hash2ServiceBindingDestroyChild()

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]ThisPointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
[in]ChildHandleHandle of the child to destroy.
Return values
EFI_SUCCESSThe protocol was removed from ChildHandle.
EFI_UNSUPPORTEDChildHandle does not support the protocol that is being removed.
EFI_INVALID_PARAMETERChildHandle is NULL.
EFI_ACCESS_DENIEDThe protocol could not be removed from the ChildHandle because its services are being used.
OthersThe child handle was not destroyed.

Definition at line 113 of file Driver.c.

Variable Documentation

◆ mHash2Protocol

EFI_HASH2_PROTOCOL mHash2Protocol
extern

Definition at line 248 of file Hash2DxeCrypto.c.