TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuIoPei.h
Go to the documentation of this file.
1
9#ifndef _CPU_IO2_PEI_H_
10#define _CPU_IO2_PEI_H_
11
12#include <PiDxe.h>
13
14#include <Ppi/CpuIo.h>
15
16#include <Library/BaseLib.h>
17#include <Library/DebugLib.h>
18#include <Library/IoLib.h>
20
21#define MAX_IO_PORT_ADDRESS 0xFFFF
22
42EFIAPI
44 IN CONST EFI_PEI_SERVICES **PeiServices,
47 IN UINT64 Address,
48 IN UINTN Count,
49 OUT VOID *Buffer
50 );
51
71EFIAPI
73 IN CONST EFI_PEI_SERVICES **PeiServices,
76 IN UINT64 Address,
77 IN UINTN Count,
78 IN VOID *Buffer
79 );
80
100EFIAPI
102 IN CONST EFI_PEI_SERVICES **PeiServices,
105 IN UINT64 Address,
106 IN UINTN Count,
107 OUT VOID *Buffer
108 );
109
129EFIAPI
131 IN CONST EFI_PEI_SERVICES **PeiServices,
134 IN UINT64 Address,
135 IN UINTN Count,
136 IN VOID *Buffer
137 );
138
149UINT8
150EFIAPI
152 IN CONST EFI_PEI_SERVICES **PeiServices,
154 IN UINT64 Address
155 );
156
168UINT16
169EFIAPI
171 IN CONST EFI_PEI_SERVICES **PeiServices,
173 IN UINT64 Address
174 );
175
187UINT32
188EFIAPI
190 IN CONST EFI_PEI_SERVICES **PeiServices,
192 IN UINT64 Address
193 );
194
206UINT64
207EFIAPI
209 IN CONST EFI_PEI_SERVICES **PeiServices,
211 IN UINT64 Address
212 );
213
224VOID
225EFIAPI
227 IN CONST EFI_PEI_SERVICES **PeiServices,
229 IN UINT64 Address,
230 IN UINT8 Data
231 );
232
243VOID
244EFIAPI
246 IN CONST EFI_PEI_SERVICES **PeiServices,
248 IN UINT64 Address,
249 IN UINT16 Data
250 );
251
262VOID
263EFIAPI
265 IN CONST EFI_PEI_SERVICES **PeiServices,
267 IN UINT64 Address,
268 IN UINT32 Data
269 );
270
281VOID
282EFIAPI
284 IN CONST EFI_PEI_SERVICES **PeiServices,
286 IN UINT64 Address,
287 IN UINT64 Data
288 );
289
301UINT8
302EFIAPI
304 IN CONST EFI_PEI_SERVICES **PeiServices,
306 IN UINT64 Address
307 );
308
320UINT16
321EFIAPI
323 IN CONST EFI_PEI_SERVICES **PeiServices,
325 IN UINT64 Address
326 );
327
339UINT32
340EFIAPI
342 IN CONST EFI_PEI_SERVICES **PeiServices,
344 IN UINT64 Address
345 );
346
358UINT64
359EFIAPI
361 IN CONST EFI_PEI_SERVICES **PeiServices,
363 IN UINT64 Address
364 );
365
376VOID
377EFIAPI
379 IN CONST EFI_PEI_SERVICES **PeiServices,
381 IN UINT64 Address,
382 IN UINT8 Data
383 );
384
395VOID
396EFIAPI
398 IN CONST EFI_PEI_SERVICES **PeiServices,
400 IN UINT64 Address,
401 IN UINT16 Data
402 );
403
414VOID
415EFIAPI
417 IN CONST EFI_PEI_SERVICES **PeiServices,
419 IN UINT64 Address,
420 IN UINT32 Data
421 );
422
433VOID
434EFIAPI
436 IN CONST EFI_PEI_SERVICES **PeiServices,
438 IN UINT64 Address,
439 IN UINT64 Data
440 );
441
442#endif
UINT64 UINTN
EFI_PEI_CPU_IO_PPI_WIDTH
Definition: CpuIo.h:24
VOID EFIAPI CpuMemWrite32(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT32 Data)
Definition: CpuIoPei.c:840
UINT8 EFIAPI CpuMemRead8(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:709
VOID EFIAPI CpuIoWrite64(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT64 Data)
Definition: CpuIoPei.c:686
UINT64 EFIAPI CpuMemRead64(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:775
EFI_STATUS EFIAPI CpuIoServiceRead(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN EFI_PEI_CPU_IO_PPI_WIDTH Width, IN UINT64 Address, IN UINTN Count, OUT VOID *Buffer)
Definition: CpuIoPei.c:350
VOID EFIAPI CpuMemWrite64(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT64 Data)
Definition: CpuIoPei.c:862
VOID EFIAPI CpuIoWrite8(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT8 Data)
Definition: CpuIoPei.c:620
UINT8 EFIAPI CpuIoRead8(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:533
VOID EFIAPI CpuMemWrite8(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT8 Data)
Definition: CpuIoPei.c:796
EFI_STATUS EFIAPI CpuIoServiceWrite(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN EFI_PEI_CPU_IO_PPI_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
Definition: CpuIoPei.c:444
VOID EFIAPI CpuIoWrite16(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT16 Data)
Definition: CpuIoPei.c:642
UINT16 EFIAPI CpuMemRead16(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:731
UINT32 EFIAPI CpuMemRead32(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:753
UINT64 EFIAPI CpuIoRead64(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:599
UINT32 EFIAPI CpuIoRead32(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:577
UINT16 EFIAPI CpuIoRead16(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address)
Definition: CpuIoPei.c:555
EFI_STATUS EFIAPI CpuMemoryServiceWrite(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN EFI_PEI_CPU_IO_PPI_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
Definition: CpuIoPei.c:275
VOID EFIAPI CpuIoWrite32(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT32 Data)
Definition: CpuIoPei.c:664
EFI_STATUS EFIAPI CpuMemoryServiceRead(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN EFI_PEI_CPU_IO_PPI_WIDTH Width, IN UINT64 Address, IN UINTN Count, OUT VOID *Buffer)
Definition: CpuIoPei.c:200
VOID EFIAPI CpuMemWrite16(IN CONST EFI_PEI_SERVICES **PeiServices, IN CONST EFI_PEI_CPU_IO_PPI *This, IN UINT64 Address, IN UINT16 Data)
Definition: CpuIoPei.c:818
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29