48 CpuIo = (*PeiServices)->CpuIo;
49 ASSERT (CpuIo !=
NULL);
51 Status = CpuIo->
Io.
Read (PeiServices, CpuIo, Width, Port, Count, Buffer);
85 CpuIo = (*PeiServices)->CpuIo;
86 ASSERT (CpuIo !=
NULL);
88 Status = CpuIo->
Io.
Write (PeiServices, CpuIo, Width, Port, Count, Buffer);
116 CpuIo = (*PeiServices)->CpuIo;
117 ASSERT (CpuIo !=
NULL);
119 return CpuIo->IoRead8 (PeiServices, CpuIo, (UINT64)Port);
148 CpuIo = (*PeiServices)->CpuIo;
149 ASSERT (CpuIo !=
NULL);
151 CpuIo->IoWrite8 (PeiServices, CpuIo, (UINT64)Port, Value);
180 CpuIo = (*PeiServices)->CpuIo;
181 ASSERT (CpuIo !=
NULL);
185 ASSERT ((Port & 1) == 0);
186 return CpuIo->IoRead16 (PeiServices, CpuIo, (UINT64)Port);
216 CpuIo = (*PeiServices)->CpuIo;
217 ASSERT (CpuIo !=
NULL);
221 ASSERT ((Port & 1) == 0);
222 CpuIo->IoWrite16 (PeiServices, CpuIo, (UINT64)Port, Value);
251 CpuIo = (*PeiServices)->CpuIo;
252 ASSERT (CpuIo !=
NULL);
256 ASSERT ((Port & 3) == 0);
257 return CpuIo->IoRead32 (PeiServices, CpuIo, (UINT64)Port);
287 CpuIo = (*PeiServices)->CpuIo;
288 ASSERT (CpuIo !=
NULL);
292 ASSERT ((Port & 3) == 0);
293 CpuIo->IoWrite32 (PeiServices, CpuIo, (UINT64)Port, Value);
322 CpuIo = (*PeiServices)->CpuIo;
323 ASSERT (CpuIo !=
NULL);
327 ASSERT ((Port & 7) == 0);
328 return CpuIo->IoRead64 (PeiServices, CpuIo, (UINT64)Port);
358 CpuIo = (*PeiServices)->CpuIo;
359 ASSERT (CpuIo !=
NULL);
363 ASSERT ((Port & 7) == 0);
364 CpuIo->IoWrite64 (PeiServices, CpuIo, (UINT64)Port, Value);
452 ASSERT ((Port & 1) == 0);
484 ASSERT ((Port & 1) == 0);
516 ASSERT ((Port & 3) == 0);
548 ASSERT ((Port & 3) == 0);
576 CpuIo = (*PeiServices)->CpuIo;
577 ASSERT (CpuIo !=
NULL);
579 return CpuIo->MemRead8 (PeiServices, CpuIo, (UINT64)Address);
608 CpuIo = (*PeiServices)->CpuIo;
609 ASSERT (CpuIo !=
NULL);
611 CpuIo->MemWrite8 (PeiServices, CpuIo, (UINT64)Address, Value);
640 CpuIo = (*PeiServices)->CpuIo;
641 ASSERT (CpuIo !=
NULL);
645 ASSERT ((Address & 1) == 0);
646 return CpuIo->MemRead16 (PeiServices, CpuIo, (UINT64)Address);
676 CpuIo = (*PeiServices)->CpuIo;
677 ASSERT (CpuIo !=
NULL);
681 ASSERT ((Address & 1) == 0);
682 CpuIo->MemWrite16 (PeiServices, CpuIo, (UINT64)Address, Value);
711 CpuIo = (*PeiServices)->CpuIo;
712 ASSERT (CpuIo !=
NULL);
716 ASSERT ((Address & 3) == 0);
717 return CpuIo->MemRead32 (PeiServices, CpuIo, (UINT64)Address);
747 CpuIo = (*PeiServices)->CpuIo;
748 ASSERT (CpuIo !=
NULL);
752 ASSERT ((Address & 3) == 0);
753 CpuIo->MemWrite32 (PeiServices, CpuIo, (UINT64)Address, Value);
782 CpuIo = (*PeiServices)->CpuIo;
783 ASSERT (CpuIo !=
NULL);
787 ASSERT ((Address & (
sizeof (UINT64) - 1)) == 0);
788 return CpuIo->MemRead64 (PeiServices, CpuIo, (UINT64)Address);
816 CpuIo = (*PeiServices)->CpuIo;
817 ASSERT (CpuIo !=
NULL);
821 ASSERT ((Address & 7) == 0);
822 CpuIo->MemWrite64 (PeiServices, CpuIo, (UINT64)Address, Value);
CONST EFI_PEI_SERVICES **EFIAPI GetPeiServicesTablePointer(VOID)
UINT64 EFIAPI MmioWrite64(IN UINTN Address, IN UINT64 Value)
UINT64 EFIAPI IoRead64(IN UINTN Port)
UINT64 EFIAPI IoWrite64(IN UINTN Port, IN UINT64 Value)
UINT64 EFIAPI MmioRead64(IN UINTN Address)
UINT16 EFIAPI MmioRead16(IN UINTN Address)
UINT8 EFIAPI MmioRead8(IN UINTN Address)
UINT8 EFIAPI MmioWrite8(IN UINTN Address, IN UINT8 Value)
UINT32 EFIAPI MmioRead32(IN UINTN Address)
UINT16 EFIAPI MmioWrite16(IN UINTN Address, IN UINT16 Value)
UINT32 EFIAPI MmioWrite32(IN UINTN Address, IN UINT32 Value)
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
VOID EFIAPI IoWriteFifo32(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
VOID EFIAPI IoReadFifo8(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
VOID EFIAPI IoReadFifo16(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
VOID EFIAPI IoReadFifoWorker(IN UINTN Port, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINTN Count, IN VOID *Buffer)
VOID EFIAPI IoWriteFifo16(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
VOID EFIAPI IoReadFifo32(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
UINT8 EFIAPI IoRead8(IN UINTN Port)
VOID EFIAPI IoWriteFifoWorker(IN UINTN Port, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINTN Count, IN VOID *Buffer)
VOID EFIAPI IoWriteFifo8(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
UINT16 EFIAPI IoRead16(IN UINTN Port)
UINT32 EFIAPI IoRead32(IN UINTN Port)
UINT32 EFIAPI IoWrite32(IN UINTN Port, IN UINT32 Value)
UINT16 EFIAPI IoWrite16(IN UINTN Port, IN UINT16 Value)
#define ASSERT_EFI_ERROR(StatusParameter)
EFI_PEI_CPU_IO_PPI_ACCESS Io
EFI_PEI_CPU_IO_PPI_IO_MEM Write
EFI_PEI_CPU_IO_PPI_IO_MEM Read