TianoCore EDK2 master
Loading...
Searching...
No Matches
MockPciSegmentLib.h
Go to the documentation of this file.
1
8#ifndef MOCK_PCISEGMENTLIB_H_
9#define MOCK_PCISEGMENTLIB_H_
10
13
14extern "C" {
15 #include <Uefi.h>
16}
17
19 MOCK_INTERFACE_DECLARATION (MockPciSegmentLib);
20
21 MOCK_FUNCTION_DECLARATION (
22 RETURN_STATUS,
24 (
25 IN UINTN Address
26 )
27 );
28
29 MOCK_FUNCTION_DECLARATION (
30 UINT8,
32 (
33 IN UINT64 Address
34 )
35 );
36
37 MOCK_FUNCTION_DECLARATION (
38 UINT8,
40 (
41 IN UINT64 Address,
42 IN UINT8 Value
43 )
44 );
45
46 MOCK_FUNCTION_DECLARATION (
47 UINT8,
49 (
50 IN UINT64 Address,
51 IN UINT8 OrData
52 )
53 );
54
55 MOCK_FUNCTION_DECLARATION (
56 UINT8,
58 (
59 IN UINT64 Address,
60 IN UINT8 AndData
61 )
62 );
63
64 MOCK_FUNCTION_DECLARATION (
65 UINT8,
67 (
68 IN UINT64 Address,
69 IN UINT8 AndData,
70 IN UINT8 OrData
71 )
72 );
73
74 MOCK_FUNCTION_DECLARATION (
75 UINT8,
77 (
78 IN UINT64 Address,
79 IN UINTN StartBit,
80 IN UINTN EndBit
81 )
82 );
83
84 MOCK_FUNCTION_DECLARATION (
85 UINT8,
87 (
88 IN UINT64 Address,
89 IN UINTN StartBit,
90 IN UINTN EndBit,
91 IN UINT8 Value
92 )
93 );
94
95 MOCK_FUNCTION_DECLARATION (
96 UINT8,
98 (
99 IN UINT64 Address,
100 IN UINTN StartBit,
101 IN UINTN EndBit,
102 IN UINT8 OrData
103 )
104 );
105
106 MOCK_FUNCTION_DECLARATION (
107 UINT8,
109 (
110 IN UINT64 Address,
111 IN UINTN StartBit,
112 IN UINTN EndBit,
113 IN UINT8 AndData
114 )
115 );
116
117 MOCK_FUNCTION_DECLARATION (
118 UINT8,
120 (
121 IN UINT64 Address,
122 IN UINTN StartBit,
123 IN UINTN EndBit,
124 IN UINT8 AndData,
125 IN UINT8 OrData
126 )
127 );
128
129 MOCK_FUNCTION_DECLARATION (
130 UINT16,
132 (
133 IN UINT64 Address
134 )
135 );
136
137 MOCK_FUNCTION_DECLARATION (
138 UINT16,
140 (
141 IN UINT64 Address,
142 IN UINT16 Value
143 )
144 );
145
146 MOCK_FUNCTION_DECLARATION (
147 UINT16,
149 (
150 IN UINT64 Address,
151 IN UINT16 OrData
152 )
153 );
154
155 MOCK_FUNCTION_DECLARATION (
156 UINT16,
158 (
159 IN UINT64 Address,
160 IN UINT16 AndData
161 )
162 );
163
164 MOCK_FUNCTION_DECLARATION (
165 UINT16,
167 (
168 IN UINT64 Address,
169 IN UINT16 AndData,
170 IN UINT16 OrData
171 )
172 );
173
174 MOCK_FUNCTION_DECLARATION (
175 UINT16,
177 (
178 IN UINT64 Address,
179 IN UINTN StartBit,
180 IN UINTN EndBit
181 )
182 );
183
184 MOCK_FUNCTION_DECLARATION (
185 UINT16,
187 (
188 IN UINT64 Address,
189 IN UINTN StartBit,
190 IN UINTN EndBit,
191 IN UINT16 Value
192 )
193 );
194
195 MOCK_FUNCTION_DECLARATION (
196 UINT16,
198 (
199 IN UINT64 Address,
200 IN UINTN StartBit,
201 IN UINTN EndBit,
202 IN UINT16 OrData
203 )
204 );
205
206 MOCK_FUNCTION_DECLARATION (
207 UINT16,
209 (
210 IN UINT64 Address,
211 IN UINTN StartBit,
212 IN UINTN EndBit,
213 IN UINT16 AndData
214 )
215 );
216
217 MOCK_FUNCTION_DECLARATION (
218 UINT16,
220 (
221 IN UINT64 Address,
222 IN UINTN StartBit,
223 IN UINTN EndBit,
224 IN UINT16 AndData,
225 IN UINT16 OrData
226 )
227 );
228
229 MOCK_FUNCTION_DECLARATION (
230 UINT32,
232 (
233 IN UINT64 Address
234 )
235 );
236
237 MOCK_FUNCTION_DECLARATION (
238 UINT32,
240 (
241 IN UINT64 Address,
242 IN UINT32 Value
243 )
244 );
245
246 MOCK_FUNCTION_DECLARATION (
247 UINT32,
249 (
250 IN UINT64 Address,
251 IN UINT32 OrData
252 )
253 );
254
255 MOCK_FUNCTION_DECLARATION (
256 UINT32,
258 (
259 IN UINT64 Address,
260 IN UINT32 AndData
261 )
262 );
263
264 MOCK_FUNCTION_DECLARATION (
265 UINT32,
267 (
268 IN UINT64 Address,
269 IN UINT32 AndData,
270 IN UINT32 OrData
271 )
272 );
273
274 MOCK_FUNCTION_DECLARATION (
275 UINT32,
277 (
278 IN UINT64 Address,
279 IN UINTN StartBit,
280 IN UINTN EndBit
281 )
282 );
283
284 MOCK_FUNCTION_DECLARATION (
285 UINT32,
287 (
288 IN UINT64 Address,
289 IN UINTN StartBit,
290 IN UINTN EndBit,
291 IN UINT32 Value
292 )
293 );
294
295 MOCK_FUNCTION_DECLARATION (
296 UINT32,
298 (
299 IN UINT64 Address,
300 IN UINTN StartBit,
301 IN UINTN EndBit,
302 IN UINT32 OrData
303 )
304 );
305
306 MOCK_FUNCTION_DECLARATION (
307 UINT32,
309 (
310 IN UINT64 Address,
311 IN UINTN StartBit,
312 IN UINTN EndBit,
313 IN UINT32 AndData
314 )
315 );
316
317 MOCK_FUNCTION_DECLARATION (
318 UINT32,
320 (
321 IN UINT64 Address,
322 IN UINTN StartBit,
323 IN UINTN EndBit,
324 IN UINT32 AndData,
325 IN UINT32 OrData
326 )
327 );
328
329 MOCK_FUNCTION_DECLARATION (
330 UINTN,
332 (
333 IN UINT64 StartAddress,
334 IN UINTN Size,
335 OUT VOID *Buffer
336 )
337 );
338
339 MOCK_FUNCTION_DECLARATION (
340 UINTN,
342 (
343 IN UINT64 StartAddress,
344 IN UINTN Size,
345 IN VOID *Buffer
346 )
347 );
348};
349
350#endif
UINT64 UINTN
UINT8 EFIAPI PciSegmentRead8(IN UINT64 Address)
Definition: PciSegmentLib.c:78
UINT32 EFIAPI PciSegmentAnd32(IN UINT64 Address, IN UINT32 AndData)
UINT16 EFIAPI PciSegmentWrite16(IN UINT64 Address, IN UINT16 Value)
UINT16 EFIAPI PciSegmentBitFieldAnd16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT32 EFIAPI PciSegmentWrite32(IN UINT64 Address, IN UINT32 Value)
UINT8 EFIAPI PciSegmentBitFieldOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINTN EFIAPI PciSegmentReadBuffer(IN UINT64 StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT8 EFIAPI PciSegmentBitFieldAnd8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT16 EFIAPI PciSegmentAnd16(IN UINT64 Address, IN UINT16 AndData)
UINT16 EFIAPI PciSegmentRead16(IN UINT64 Address)
RETURN_STATUS EFIAPI PciSegmentRegisterForRuntimeAccess(IN UINTN Address)
Definition: PciSegmentLib.c:55
UINT32 EFIAPI PciSegmentBitFieldWrite32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT8 EFIAPI PciSegmentBitFieldWrite8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT16 EFIAPI PciSegmentOr16(IN UINT64 Address, IN UINT16 OrData)
UINT32 EFIAPI PciSegmentBitFieldAndThenOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT8 EFIAPI PciSegmentBitFieldRead8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT8 EFIAPI PciSegmentOr8(IN UINT64 Address, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldAndThenOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT16 EFIAPI PciSegmentBitFieldRead16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI PciSegmentAndThenOr32(IN UINT64 Address, IN UINT32 AndData, IN UINT32 OrData)
UINT32 EFIAPI PciSegmentRead32(IN UINT64 Address)
UINT8 EFIAPI PciSegmentAnd8(IN UINT64 Address, IN UINT8 AndData)
UINT8 EFIAPI PciSegmentBitFieldAndThenOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT32 EFIAPI PciSegmentBitFieldOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT16 EFIAPI PciSegmentAndThenOr16(IN UINT64 Address, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI PciSegmentBitFieldAnd32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT8 EFIAPI PciSegmentAndThenOr8(IN UINT64 Address, IN UINT8 AndData, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldWrite16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT8 EFIAPI PciSegmentWrite8(IN UINT64 Address, IN UINT8 Value)
UINT32 EFIAPI PciSegmentBitFieldRead32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINTN EFIAPI PciSegmentWriteBuffer(IN UINT64 StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT32 EFIAPI PciSegmentOr32(IN UINT64 Address, IN UINT32 OrData)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284