TianoCore EDK2 master
Loading...
Searching...
No Matches
IoLibFifo.c File Reference

Go to the source code of this file.

Functions

VOID EFIAPI IoReadFifo8 (IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
 
VOID EFIAPI IoWriteFifo8 (IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
 
VOID EFIAPI IoReadFifo16 (IN UINTN Port, IN UINTN Count, OUT 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)
 
VOID EFIAPI IoWriteFifo32 (IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
 

Detailed Description

IoFifo read/write routines.

Copyright (c) 2021 - 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file IoLibFifo.c.

Function Documentation

◆ IoReadFifo16()

VOID EFIAPI IoReadFifo16 ( IN UINTN  Port,
IN UINTN  Count,
OUT VOID *  Buffer 
)

Reads a 16-bit I/O port fifo into a block of memory.

Reads the 16-bit I/O fifo port specified by Port. The port is read Count times, and the read data is stored in the provided Buffer.

This function must guarantee that all I/O read and write operations are serialized.

If 16-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoRead16 is invoked to read data from the I/O port.

Parameters
PortThe I/O port to read.
CountThe number of times to read I/O port.
BufferThe buffer to store the read data into.

Definition at line 103 of file IoLibFifo.c.

◆ IoReadFifo32()

VOID EFIAPI IoReadFifo32 ( IN UINTN  Port,
IN UINTN  Count,
OUT VOID *  Buffer 
)

Reads a 32-bit I/O port fifo into a block of memory.

Reads the 32-bit I/O fifo port specified by Port. The port is read Count times, and the read data is stored in the provided Buffer.

This function must guarantee that all I/O read and write operations are serialized.

If 32-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoRead32 is invoked to read data from the I/O port.

Parameters
PortThe I/O port to read.
CountThe number of times to read I/O port.
BufferThe buffer to store the read data into.

Definition at line 173 of file IoLibFifo.c.

◆ IoReadFifo8()

VOID EFIAPI IoReadFifo8 ( IN UINTN  Port,
IN UINTN  Count,
OUT VOID *  Buffer 
)

Reads an 8-bit I/O port fifo into a block of memory.

Reads the 8-bit I/O fifo port specified by Port. The port is read Count times, and the read data is stored in the provided Buffer.

This function must guarantee that all I/O read and write operations are serialized.

If 8-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoRead8 is invoked to read the I/O port fifo.

Parameters
PortThe I/O port to read.
CountThe number of times to read I/O port.
BufferThe buffer to store the read data into.

Definition at line 33 of file IoLibFifo.c.

◆ IoWriteFifo16()

VOID EFIAPI IoWriteFifo16 ( IN UINTN  Port,
IN UINTN  Count,
IN VOID *  Buffer 
)

Writes a block of memory into a 16-bit I/O port fifo.

Writes the 16-bit I/O fifo port specified by Port. The port is written Count times, and the write data is retrieved from the provided Buffer.

This function must guarantee that all I/O write and write operations are serialized.

If 16-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoWrite16 is invoked to write data to the I/O port.

Parameters
PortThe I/O port to write.
CountThe number of times to write I/O port.
BufferThe buffer to retrieve the write data from.

Definition at line 138 of file IoLibFifo.c.

◆ IoWriteFifo32()

VOID EFIAPI IoWriteFifo32 ( IN UINTN  Port,
IN UINTN  Count,
IN VOID *  Buffer 
)

Writes a block of memory into a 32-bit I/O port fifo.

Writes the 32-bit I/O fifo port specified by Port. The port is written Count times, and the write data is retrieved from the provided Buffer.

This function must guarantee that all I/O write and write operations are serialized.

If 32-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoWrite32 is invoked to write data to the I/O port.

Parameters
PortThe I/O port to write.
CountThe number of times to write I/O port.
BufferThe buffer to retrieve the write data from.

Definition at line 208 of file IoLibFifo.c.

◆ IoWriteFifo8()

VOID EFIAPI IoWriteFifo8 ( IN UINTN  Port,
IN UINTN  Count,
IN VOID *  Buffer 
)

Writes a block of memory into an 8-bit I/O port fifo.

Writes the 8-bit I/O fifo port specified by Port. The port is written Count times, and the write data is retrieved from the provided Buffer.

This function must guarantee that all I/O write and write operations are serialized.

If 8-bit I/O port operations are not supported, then ASSERT().

In TDX a serial of TdIoWrite8 is invoked to write data to the I/O port.

Parameters
PortThe I/O port to write.
CountThe number of times to write I/O port.
BufferThe buffer to retrieve the write data from.

Definition at line 68 of file IoLibFifo.c.