TianoCore EDK2 master
Loading...
Searching...
No Matches
IoLibSev.h File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>

Go to the source code of this file.

Functions

VOID EFIAPI SevIoReadFifo8 (IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
 
VOID EFIAPI SevIoWriteFifo8 (IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
 
VOID EFIAPI SevIoReadFifo16 (IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
 
VOID EFIAPI SevIoWriteFifo16 (IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
 
VOID EFIAPI SevIoReadFifo32 (IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
 
VOID EFIAPI SevIoWriteFifo32 (IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
 

Detailed Description

Header file for SEV IO library.

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

Definition in file IoLibSev.h.

Function Documentation

◆ SevIoReadFifo16()

VOID EFIAPI SevIoReadFifo16 ( 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().

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

◆ SevIoReadFifo32()

VOID EFIAPI SevIoReadFifo32 ( 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().

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

◆ SevIoReadFifo8()

VOID EFIAPI SevIoReadFifo8 ( 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().

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

◆ SevIoWriteFifo16()

VOID EFIAPI SevIoWriteFifo16 ( 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().

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

◆ SevIoWriteFifo32()

VOID EFIAPI SevIoWriteFifo32 ( 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().

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

◆ SevIoWriteFifo8()

VOID EFIAPI SevIoWriteFifo8 ( 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().

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