TianoCore EDK2 master
Loading...
Searching...
No Matches
UnitTestUefiBootServicesTableLibProtocol.h
Go to the documentation of this file.
1
12#ifndef UEFI_BOOT_SERVICES_TABLE_LIB_UNIT_TEST_PROTOCOL_H_
13#define UEFI_BOOT_SERVICES_TABLE_LIB_UNIT_TEST_PROTOCOL_H_
14
16
17#define EFI_HANDLE_SIGNATURE SIGNATURE_32('h','n','d','l')
18
22typedef struct {
23 UINTN Signature;
27 LIST_ENTRY Protocols;
28 UINTN LocateRequest;
30 UINT64 Key;
31} IHANDLE;
32
33#define ASSERT_IS_HANDLE(a) ASSERT((a)->Signature == EFI_HANDLE_SIGNATURE)
34
35#define PROTOCOL_ENTRY_SIGNATURE SIGNATURE_32('p','r','t','e')
36
42typedef struct {
43 UINTN Signature;
45 LIST_ENTRY AllEntries;
47 EFI_GUID ProtocolID;
49 LIST_ENTRY Protocols;
51 LIST_ENTRY Notify;
53
54#define PROTOCOL_INTERFACE_SIGNATURE SIGNATURE_32('p','i','f','c')
55
60typedef struct {
61 UINTN Signature;
63 LIST_ENTRY Link;
65 IHANDLE *Handle;
69 PROTOCOL_ENTRY *Protocol;
71 VOID *Interface;
73 LIST_ENTRY OpenList;
74 UINTN OpenListCount;
76
77#define OPEN_PROTOCOL_DATA_SIGNATURE SIGNATURE_32('p','o','d','l')
78
79typedef struct {
80 UINTN Signature;
82 LIST_ENTRY Link;
83
84 EFI_HANDLE AgentHandle;
85 EFI_HANDLE ControllerHandle;
86 UINT32 Attributes;
87 UINT32 OpenCount;
89
90#define PROTOCOL_NOTIFY_SIGNATURE SIGNATURE_32('p','r','t','n')
91
95typedef struct {
96 UINTN Signature;
97 PROTOCOL_ENTRY *Protocol;
99 LIST_ENTRY Link;
101 EFI_EVENT Event;
103 LIST_ENTRY *Position;
105
106typedef struct {
107 EFI_GUID *Protocol;
108 VOID *SearchKey;
109 LIST_ENTRY *Position;
110 PROTOCOL_ENTRY *ProtEntry;
112
113typedef
114IHANDLE *
115(*UNIT_TEST_GET_NEXT) (
116 IN OUT LOCATE_POSITION *Position,
117 OUT VOID **Interface
118 );
119
120#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
@ ByProtocol
Definition: UefiSpec.h:1518
@ AllHandles
Definition: UefiSpec.h:1509
Definition: Base.h:213
Definition: Handle.h:17