TianoCore EDK2 master
Loading...
Searching...
No Matches
MockFdtLib.h
Go to the documentation of this file.
1
9#ifndef MOCK_FDT_LIB_H_
10#define MOCK_FDT_LIB_H_
11
14extern "C" {
15 #include <Base.h>
16 #include <Library/FdtLib.h>
17}
18
19struct MockFdtLib {
20 MOCK_INTERFACE_DECLARATION (MockFdtLib);
21
22 MOCK_FUNCTION_DECLARATION (
23 UINT16,
25 (IN UINT16 Value)
26 );
27 MOCK_FUNCTION_DECLARATION (
28 UINT16,
30 (IN UINT16 Value)
31 );
32 MOCK_FUNCTION_DECLARATION (
33 UINT32,
35 (IN UINT32 Value)
36 );
37 MOCK_FUNCTION_DECLARATION (
38 UINT32,
40 (IN UINT32 Value)
41 );
42 MOCK_FUNCTION_DECLARATION (
43 UINT64,
45 (IN UINT64 Value)
46 );
47 MOCK_FUNCTION_DECLARATION (
48 UINT64,
50 (IN UINT64 Value)
51 );
52 MOCK_FUNCTION_DECLARATION (
53 INT32,
55 (IN CONST VOID *Fdt)
56 );
57 MOCK_FUNCTION_DECLARATION (
58 INT32,
60 (IN VOID *Buffer,
61 IN UINT32 BufferSize)
62 );
63 MOCK_FUNCTION_DECLARATION (
64 INT32,
66 (IN CONST VOID *Fdt,
67 IN INT32 Offset,
68 IN INT32 *Depth)
69 );
70 MOCK_FUNCTION_DECLARATION (
71 INT32,
73 (IN CONST VOID *Fdt,
74 IN INT32 Offset)
75 );
76 MOCK_FUNCTION_DECLARATION (
77 INT32,
79 (IN CONST VOID *Fdt,
80 IN INT32 Offset)
81 );
82 MOCK_FUNCTION_DECLARATION (
83 INT32,
85 (IN CONST VOID *Fdt,
86 IN INT32 ParentOffset,
87 IN CONST CHAR8 *Name,
88 IN INT32 NameLength)
89 );
90 MOCK_FUNCTION_DECLARATION (
91 INT32,
93 (IN CONST VOID *Fdt,
94 IN INT32 StartOffset,
95 IN CONST CHAR8 *PropertyName,
96 IN CONST VOID *PropertyValue,
97 IN INT32 PropertyLength)
98 );
99 MOCK_FUNCTION_DECLARATION (
102 (IN CONST VOID *Fdt,
103 IN INT32 NodeOffset,
104 IN CONST CHAR8 *Name,
105 IN INT32 *Length)
106 );
107 MOCK_FUNCTION_DECLARATION (
108 INT32,
110 (IN CONST VOID *Fdt,
111 IN INT32 NodeOffset)
112 );
113 MOCK_FUNCTION_DECLARATION (
114 INT32,
116 (IN CONST VOID *Fdt,
117 IN INT32 NodeOffset)
118 );
119 MOCK_FUNCTION_DECLARATION (
122 (IN CONST VOID *Fdt,
123 IN INT32 Offset,
124 IN INT32 *Length)
125 );
126 MOCK_FUNCTION_DECLARATION (
127 CONST CHAR8 *,
129 (IN CONST VOID *Fdt,
130 IN INT32 StrOffset,
131 IN INT32 *Length OPTIONAL)
132 );
133 MOCK_FUNCTION_DECLARATION (
134 INT32,
136 (IN VOID *Fdt,
137 IN INT32 ParentOffset,
138 IN CONST CHAR8 *Name)
139 );
140 MOCK_FUNCTION_DECLARATION (
141 INT32,
143 (IN VOID *Fdt,
144 IN INT32 NodeOffset,
145 IN CONST CHAR8 *Name,
146 IN CONST VOID *Value,
147 IN UINT32 Length)
148 );
149 MOCK_FUNCTION_DECLARATION (
150 CONST CHAR8 *,
152 (IN VOID *Fdt,
153 IN INT32 NodeOffset,
154 IN INT32 *Length)
155 );
156 MOCK_FUNCTION_DECLARATION (
157 INT32,
159 (IN CONST VOID *Fdt,
160 IN INT32 NodeOffset)
161 );
162};
163
164#endif
INT32 EFIAPI FdtNodeDepth(IN CONST VOID *Fdt, IN INT32 NodeOffset)
Definition: FdtLib.c:749
UINT64 EFIAPI CpuToFdt64(IN UINT64 Value)
Definition: FdtLib.c:108
INT32 EFIAPI FdtNextPropertyOffset(IN CONST VOID *Fdt, IN INT32 Offset)
Definition: FdtLib.c:508
INT32 EFIAPI FdtNodeOffsetByPropertyValue(IN CONST VOID *Fdt, IN INT32 StartOffset, IN CONST CHAR8 *PropertyName, IN CONST VOID *PropertyValue, IN INT32 PropertyLength)
Definition: FdtLib.c:383
INT32 EFIAPI FdtFirstSubnode(IN CONST VOID *Fdt, IN INT32 Offset)
Definition: FdtLib.c:240
CONST FDT_PROPERTY *EFIAPI FdtGetProperty(IN CONST VOID *Fdt, IN INT32 NodeOffset, IN CONST CHAR8 *Name, IN INT32 *Length)
Definition: FdtLib.c:446
UINT64 EFIAPI Fdt64ToCpu(IN UINT64 Value)
Definition: FdtLib.c:91
CONST CHAR8 *EFIAPI FdtGetString(IN CONST VOID *Fdt, IN INT32 StrOffset, IN INT32 *Length OPTIONAL)
Definition: FdtLib.c:549
INT32 EFIAPI FdtSetProperty(IN VOID *Fdt, IN INT32 NodeOffset, IN CONST CHAR8 *Name, IN CONST VOID *Value, IN UINT32 Length)
Definition: FdtLib.c:593
UINT16 EFIAPI Fdt16ToCpu(IN UINT16 Value)
Definition: FdtLib.c:23
INT32 EFIAPI FdtSubnodeOffsetNameLen(IN CONST VOID *Fdt, IN INT32 ParentOffset, IN CONST CHAR8 *Name, IN INT32 NameLength)
Definition: FdtLib.c:320
INT32 EFIAPI FdtAddSubnode(IN VOID *Fdt, IN INT32 ParentOffset, IN CONST CHAR8 *Name)
Definition: FdtLib.c:570
UINT16 EFIAPI CpuToFdt16(IN UINT16 Value)
Definition: FdtLib.c:40
INT32 EFIAPI FdtNextNode(IN CONST VOID *Fdt, IN INT32 Offset, IN INT32 *Depth)
Definition: FdtLib.c:220
UINT32 EFIAPI CpuToFdt32(IN UINT32 Value)
Definition: FdtLib.c:74
INT32 EFIAPI FdtCheckHeader(IN CONST VOID *Fdt)
Definition: FdtLib.c:125
UINT32 EFIAPI Fdt32ToCpu(IN UINT32 Value)
Definition: FdtLib.c:57
INT32 EFIAPI FdtFirstPropertyOffset(IN CONST VOID *Fdt, IN INT32 NodeOffset)
Definition: FdtLib.c:489
CONST CHAR8 *EFIAPI FdtGetName(IN VOID *Fdt, IN INT32 NodeOffset, IN INT32 *Length)
Definition: FdtLib.c:729
INT32 EFIAPI FdtCreateEmptyTree(IN VOID *Buffer, IN UINT32 BufferSize)
Definition: FdtLib.c:143
INT32 EFIAPI FdtNextSubnode(IN CONST VOID *Fdt, IN INT32 Offset)
Definition: FdtLib.c:259
CONST FDT_PROPERTY *EFIAPI FdtGetPropertyByOffset(IN CONST VOID *Fdt, IN INT32 Offset, IN INT32 *Length)
Definition: FdtLib.c:528
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279