39 Status =
gBS->LocateProtocol (&gEfiCpuIo2ProtocolGuid,
NULL, (VOID **)&mCpuIo);
71 Status = mCpuIo->
Io.
Read (mCpuIo, Width, Port, 1, &Data);
104 Status = mCpuIo->
Io.
Write (mCpuIo, Width, Port, 1, &Data);
137 Status = mCpuIo->
Io.
Read (mCpuIo, Width, Port, Count, Buffer);
168 Status = mCpuIo->
Io.
Write (mCpuIo, Width, Port, Count, Buffer);
196 Status = mCpuIo->
Mem.
Read (mCpuIo, Width, Address, 1, &Data);
227 Status = mCpuIo->
Mem.
Write (mCpuIo, Width, Address, 1, &Data);
278 return (UINT8)
IoWriteWorker (Port, EfiCpuIoWidthUint8, Value);
306 ASSERT ((Port & 1) == 0);
307 return (UINT16)
IoReadWorker (Port, EfiCpuIoWidthUint16);
337 ASSERT ((Port & 1) == 0);
338 return (UINT16)
IoWriteWorker (Port, EfiCpuIoWidthUint16, Value);
366 ASSERT ((Port & 3) == 0);
367 return (UINT32)
IoReadWorker (Port, EfiCpuIoWidthUint32);
397 ASSERT ((Port & 3) == 0);
398 return (UINT32)
IoWriteWorker (Port, EfiCpuIoWidthUint32, Value);
426 ASSERT ((Port & 7) == 0);
457 ASSERT ((Port & 7) == 0);
545 ASSERT ((Port & 1) == 0);
577 ASSERT ((Port & 1) == 0);
609 ASSERT ((Port & 3) == 0);
641 ASSERT ((Port & 3) == 0);
716 ASSERT ((Address & 1) == 0);
745 ASSERT ((Address & 1) == 0);
774 ASSERT ((Address & 3) == 0);
803 ASSERT ((Address & 3) == 0);
832 ASSERT ((Address & 7) == 0);
861 ASSERT ((Address & 7) == 0);
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)
EFI_CPU_IO_PROTOCOL_WIDTH
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
EFI_STATUS EFIAPI IoLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI IoWriteFifo32(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
VOID EFIAPI IoReadFifo8(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
UINT64 EFIAPI IoReadWorker(IN UINTN Port, IN EFI_CPU_IO_PROTOCOL_WIDTH Width)
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)
UINT64 EFIAPI MmioWriteWorker(IN UINTN Address, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Data)
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)
UINT64 EFIAPI IoWriteWorker(IN UINTN Port, IN EFI_CPU_IO_PROTOCOL_WIDTH Width, IN UINT64 Data)
UINT16 EFIAPI IoRead16(IN UINTN Port)
UINT64 EFIAPI MmioReadWorker(IN UINTN Address, IN EFI_CPU_IO_PROTOCOL_WIDTH Width)
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_CPU_IO_PROTOCOL_ACCESS Io
EFI_CPU_IO_PROTOCOL_ACCESS Mem
EFI_CPU_IO_PROTOCOL_IO_MEM Read
EFI_CPU_IO_PROTOCOL_IO_MEM Write