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

Go to the source code of this file.

Functions

STATIC VOID * BufferPtr (IN VIRTIO_SERIAL_RING *Ring, IN UINT32 BufferNr)
 
STATIC EFI_PHYSICAL_ADDRESS BufferAddr (IN VIRTIO_SERIAL_RING *Ring, IN UINT32 BufferNr)
 
STATIC UINT32 BufferNext (IN VIRTIO_SERIAL_RING *Ring)
 
EFI_STATUS EFIAPI VirtioSerialInitRing (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index, IN UINT32 BufferSize)
 
VOID EFIAPI VirtioSerialUninitRing (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index)
 
VOID EFIAPI VirtioSerialRingFillRx (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index)
 
VOID EFIAPI VirtioSerialRingClearTx (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index)
 
EFI_STATUS EFIAPI VirtioSerialRingSendBuffer (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index, IN VOID *Data, IN UINT32 DataSize, IN BOOLEAN Notify)
 
BOOLEAN EFIAPI VirtioSerialRingHasBuffer (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index)
 
BOOLEAN EFIAPI VirtioSerialRingGetBuffer (IN OUT VIRTIO_SERIAL_DEV *Dev, IN UINT16 Index, OUT VOID *Data, OUT UINT32 *DataSize)
 

Detailed Description

Driver for virtio-serial devices.

Helper functions to manage virtio rings.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file VirtioSerialRing.c.

Function Documentation

◆ BufferAddr()

STATIC EFI_PHYSICAL_ADDRESS BufferAddr ( IN VIRTIO_SERIAL_RING Ring,
IN UINT32  BufferNr 
)

Definition at line 32 of file VirtioSerialRing.c.

◆ BufferNext()

STATIC UINT32 BufferNext ( IN VIRTIO_SERIAL_RING Ring)

Definition at line 42 of file VirtioSerialRing.c.

◆ BufferPtr()

STATIC VOID * BufferPtr ( IN VIRTIO_SERIAL_RING Ring,
IN UINT32  BufferNr 
)

Definition at line 22 of file VirtioSerialRing.c.

◆ VirtioSerialInitRing()

EFI_STATUS EFIAPI VirtioSerialInitRing ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index,
IN UINT32  BufferSize 
)

Definition at line 51 of file VirtioSerialRing.c.

◆ VirtioSerialRingClearTx()

VOID EFIAPI VirtioSerialRingClearTx ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index 
)

Definition at line 226 of file VirtioSerialRing.c.

◆ VirtioSerialRingFillRx()

VOID EFIAPI VirtioSerialRingFillRx ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index 
)

Definition at line 209 of file VirtioSerialRing.c.

◆ VirtioSerialRingGetBuffer()

BOOLEAN EFIAPI VirtioSerialRingGetBuffer ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index,
OUT VOID *  Data,
OUT UINT32 *  DataSize 
)

Definition at line 307 of file VirtioSerialRing.c.

◆ VirtioSerialRingHasBuffer()

BOOLEAN EFIAPI VirtioSerialRingHasBuffer ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index 
)

Definition at line 286 of file VirtioSerialRing.c.

◆ VirtioSerialRingSendBuffer()

EFI_STATUS EFIAPI VirtioSerialRingSendBuffer ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index,
IN VOID *  Data,
IN UINT32  DataSize,
IN BOOLEAN  Notify 
)

Definition at line 237 of file VirtioSerialRing.c.

◆ VirtioSerialUninitRing()

VOID EFIAPI VirtioSerialUninitRing ( IN OUT VIRTIO_SERIAL_DEV Dev,
IN UINT16  Index 
)

Definition at line 174 of file VirtioSerialRing.c.