TianoCore EDK2 master
Loading...
Searching...
No Matches
Driver.c File Reference
#include "Driver.h"

Go to the source code of this file.

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
 

Detailed Description

This is service binding for Hash driver.

Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Driver.c.

Function Documentation

◆ Hash2DriverEntryPoint()

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.

Parameters
[in]ImageHandleThe image handle of the driver.
[in]SystemTableThe system table.
Return values
EFI_SUCCESSThe service binding protocols is successfully installed.
OthersOther errors as indicated.

Definition at line 202 of file Driver.c.

◆ 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

◆ mHash2ServiceBindingProtocol

EFI_SERVICE_BINDING_PROTOCOL mHash2ServiceBindingProtocol
Initial value:
= {
}
EFI_STATUS EFIAPI Hash2ServiceBindingCreateChild(IN EFI_SERVICE_BINDING_PROTOCOL *This, IN OUT EFI_HANDLE *ChildHandle)
Definition: Driver.c:34
EFI_STATUS EFIAPI Hash2ServiceBindingDestroyChild(IN EFI_SERVICE_BINDING_PROTOCOL *This, IN EFI_HANDLE ChildHandle)
Definition: Driver.c:113

Definition at line 11 of file Driver.c.