TianoCore EDK2 master
|
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/VirtioLib.h>
#include "VirtioSerial.h"
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) |
Driver for virtio-serial devices.
Helper functions to manage virtio rings.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VirtioSerialRing.c.
STATIC EFI_PHYSICAL_ADDRESS BufferAddr | ( | IN VIRTIO_SERIAL_RING * | Ring, |
IN UINT32 | BufferNr | ||
) |
Definition at line 32 of file VirtioSerialRing.c.
STATIC UINT32 BufferNext | ( | IN VIRTIO_SERIAL_RING * | Ring | ) |
Definition at line 42 of file VirtioSerialRing.c.
STATIC VOID * BufferPtr | ( | IN VIRTIO_SERIAL_RING * | Ring, |
IN UINT32 | BufferNr | ||
) |
Definition at line 22 of file VirtioSerialRing.c.
EFI_STATUS EFIAPI VirtioSerialInitRing | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT16 | Index, | ||
IN UINT32 | BufferSize | ||
) |
Definition at line 51 of file VirtioSerialRing.c.
VOID EFIAPI VirtioSerialRingClearTx | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT16 | Index | ||
) |
Definition at line 226 of file VirtioSerialRing.c.
VOID EFIAPI VirtioSerialRingFillRx | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT16 | Index | ||
) |
Definition at line 209 of file VirtioSerialRing.c.
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.
BOOLEAN EFIAPI VirtioSerialRingHasBuffer | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT16 | Index | ||
) |
Definition at line 286 of file VirtioSerialRing.c.
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.
VOID EFIAPI VirtioSerialUninitRing | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT16 | Index | ||
) |
Definition at line 174 of file VirtioSerialRing.c.