TianoCore EDK2
master
Loading...
Searching...
No Matches
Driver.h
Go to the documentation of this file.
1
9
#ifndef _HASH2_DRIVER_H_
10
#define _HASH2_DRIVER_H_
11
12
#include <
Uefi.h
>
13
14
#include <
Protocol/ServiceBinding.h
>
15
#include <
Protocol/Hash2.h
>
16
17
#include <
Library/BaseLib.h
>
18
#include <
Library/BaseMemoryLib.h
>
19
#include <
Library/DebugLib.h
>
20
#include <
Library/MemoryAllocationLib.h
>
21
#include <
Library/UefiBootServicesTableLib.h
>
22
#include <
Library/UefiRuntimeServicesTableLib.h
>
23
#include <
Library/DevicePathLib.h
>
24
#include <
Library/UefiLib.h
>
25
26
#define HASH2_SERVICE_DATA_SIGNATURE SIGNATURE_32 ('H', 'S', '2', 'S')
27
28
typedef
struct
{
29
UINT32 Signature;
30
EFI_HANDLE
ServiceHandle;
31
EFI_SERVICE_BINDING_PROTOCOL
ServiceBinding;
32
33
LIST_ENTRY
ChildrenList;
34
}
HASH2_SERVICE_DATA
;
35
36
#define HASH2_SERVICE_DATA_FROM_THIS(a) \
37
CR ( \
38
(a), \
39
HASH2_SERVICE_DATA, \
40
ServiceBinding, \
41
HASH2_SERVICE_DATA_SIGNATURE \
42
)
43
44
#define HASH2_INSTANCE_DATA_SIGNATURE SIGNATURE_32 ('H', 's', '2', 'I')
45
46
typedef
struct
{
47
UINT32 Signature;
48
HASH2_SERVICE_DATA
*Hash2ServiceData;
49
EFI_HANDLE
Handle;
50
LIST_ENTRY
InstEntry;
51
EFI_HASH2_PROTOCOL
Hash2Protocol;
52
VOID *HashContext;
53
VOID *HashInfoContext;
54
BOOLEAN Updated;
55
}
HASH2_INSTANCE_DATA
;
56
57
#define HASH2_INSTANCE_DATA_FROM_THIS(a) \
58
CR ( \
59
(a), \
60
HASH2_INSTANCE_DATA, \
61
Hash2Protocol, \
62
HASH2_INSTANCE_DATA_SIGNATURE \
63
)
64
65
#define HASH2_INSTANCE_DATA_FROM_LINK(a) \
66
CR ( \
67
(a), \
68
HASH2_INSTANCE_DATA, \
69
InstEntry, \
70
HASH2_INSTANCE_DATA_SIGNATURE \
71
)
72
89
EFI_STATUS
90
EFIAPI
91
Hash2ServiceBindingCreateChild
(
92
IN
EFI_SERVICE_BINDING_PROTOCOL
*This,
93
IN
OUT
EFI_HANDLE
*ChildHandle
94
);
95
117
EFI_STATUS
118
EFIAPI
119
Hash2ServiceBindingDestroyChild
(
120
IN
EFI_SERVICE_BINDING_PROTOCOL
*This,
121
IN
EFI_HANDLE
ChildHandle
122
);
123
124
extern
EFI_HASH2_PROTOCOL
mHash2Protocol;
125
126
#endif
BaseLib.h
BaseMemoryLib.h
DevicePathLib.h
Hash2ServiceBindingCreateChild
EFI_STATUS EFIAPI Hash2ServiceBindingCreateChild(IN EFI_SERVICE_BINDING_PROTOCOL *This, IN OUT EFI_HANDLE *ChildHandle)
Definition:
Driver.c:34
Hash2ServiceBindingDestroyChild
EFI_STATUS EFIAPI Hash2ServiceBindingDestroyChild(IN EFI_SERVICE_BINDING_PROTOCOL *This, IN EFI_HANDLE ChildHandle)
Definition:
Driver.c:113
Hash2.h
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
DebugLib.h
MemoryAllocationLib.h
ServiceBinding.h
Uefi.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
UefiBootServicesTableLib.h
UefiLib.h
UefiRuntimeServicesTableLib.h
_EFI_HASH2_PROTOCOL
Definition:
Hash2.h:185
_EFI_SERVICE_BINDING_PROTOCOL
Definition:
ServiceBinding.h:83
_LIST_ENTRY
Definition:
Base.h:247
HASH2_INSTANCE_DATA
Definition:
Driver.h:46
HASH2_SERVICE_DATA
Definition:
Driver.h:28
SecurityPkg
Hash2DxeCrypto
Driver.h
Generated on Fri Nov 15 2024 18:01:23 for TianoCore EDK2 by
1.9.6