TianoCore EDK2 master
Loading...
Searching...
No Matches
FdtClient.h
Go to the documentation of this file.
1
12#ifndef __FDT_CLIENT_H__
13#define __FDT_CLIENT_H__
14
15#define FDT_CLIENT_PROTOCOL_GUID {\
16 0xE11FACA0, 0x4710, 0x4C8E, {0xA7, 0xA2, 0x01, 0xBA, 0xA2, 0x59, 0x1B, 0x4C} \
17 }
18
19//
20// Protocol interface structure
21//
23
24typedef
26(EFIAPI *FDT_CLIENT_GET_NODE_PROPERTY)(
28 IN INT32 Node,
29 IN CONST CHAR8 *PropertyName,
30 OUT CONST VOID **Prop,
31 OUT UINT32 *PropSize OPTIONAL
32 );
33
34typedef
36(EFIAPI *FDT_CLIENT_SET_NODE_PROPERTY)(
38 IN INT32 Node,
39 IN CONST CHAR8 *PropertyName,
40 IN CONST VOID *Prop,
41 IN UINT32 PropSize
42 );
43
44typedef
46(EFIAPI *FDT_CLIENT_FIND_COMPATIBLE_NODE)(
48 IN CONST CHAR8 *CompatibleString,
49 OUT INT32 *Node
50 );
51
52typedef
54(EFIAPI *FDT_CLIENT_FIND_NEXT_COMPATIBLE_NODE)(
56 IN CONST CHAR8 *CompatibleString,
57 IN INT32 PrevNode,
58 OUT INT32 *Node
59 );
60
61typedef
63(EFIAPI *FDT_CLIENT_FIND_COMPATIBLE_NODE_PROPERTY)(
65 IN CONST CHAR8 *CompatibleString,
66 IN CONST CHAR8 *PropertyName,
67 OUT CONST VOID **Prop,
68 OUT UINT32 *PropSize OPTIONAL
69 );
70
71typedef
73(EFIAPI *FDT_CLIENT_FIND_COMPATIBLE_NODE_REG)(
75 IN CONST CHAR8 *CompatibleString,
76 OUT CONST VOID **Reg,
77 OUT UINTN *AddressCells,
78 OUT UINTN *SizeCells,
79 OUT UINT32 *RegSize
80 );
81
82typedef
84(EFIAPI *FDT_CLIENT_FIND_NEXT_MEMORY_NODE_REG)(
86 IN INT32 PrevNode,
87 OUT INT32 *Node,
88 OUT CONST VOID **Reg,
89 OUT UINTN *AddressCells,
90 OUT UINTN *SizeCells,
91 OUT UINT32 *RegSize
92 );
93
94typedef
96(EFIAPI *FDT_CLIENT_FIND_MEMORY_NODE_REG)(
98 OUT INT32 *Node,
99 OUT CONST VOID **Reg,
100 OUT UINTN *AddressCells,
101 OUT UINTN *SizeCells,
102 OUT UINT32 *RegSize
103 );
104
105typedef
107(EFIAPI *FDT_CLIENT_GET_OR_INSERT_CHOSEN_NODE)(
109 OUT INT32 *Node
110 );
111
113 FDT_CLIENT_GET_NODE_PROPERTY GetNodeProperty;
114 FDT_CLIENT_SET_NODE_PROPERTY SetNodeProperty;
115
116 FDT_CLIENT_FIND_COMPATIBLE_NODE FindCompatibleNode;
117 FDT_CLIENT_FIND_NEXT_COMPATIBLE_NODE FindNextCompatibleNode;
118 FDT_CLIENT_FIND_COMPATIBLE_NODE_PROPERTY FindCompatibleNodeProperty;
119 FDT_CLIENT_FIND_COMPATIBLE_NODE_REG FindCompatibleNodeReg;
120
121 FDT_CLIENT_FIND_MEMORY_NODE_REG FindMemoryNodeReg;
122 FDT_CLIENT_FIND_NEXT_MEMORY_NODE_REG FindNextMemoryNodeReg;
123
124 FDT_CLIENT_GET_OR_INSERT_CHOSEN_NODE GetOrInsertChosenNode;
125};
126
127extern EFI_GUID gFdtClientProtocolGuid;
128
129#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213