TianoCore EDK2 master
|
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/VirtioLib.h>
#include "VirtioSerial.h"
Go to the source code of this file.
Variables | |
ACPI_HID_DEVICE_PATH | mAcpiSerialDevNode |
UART_DEVICE_PATH | mUartDevNode |
Driver for virtio-serial devices.
Helper functions to manage virtio serial ports. Console ports will be registered as SerialIo UARTs.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VirtioSerialPort.c.
Definition at line 52 of file VirtioSerialPort.c.
Definition at line 67 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoGetControl | ( | IN EFI_SERIAL_IO_PROTOCOL * | This, |
OUT UINT32 * | Control | ||
) |
Definition at line 131 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoInit | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId | ||
) |
Definition at line 253 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoRead | ( | IN EFI_SERIAL_IO_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Definition at line 188 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoReset | ( | IN EFI_SERIAL_IO_PROTOCOL * | This | ) |
Definition at line 83 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoSetAttributes | ( | IN EFI_SERIAL_IO_PROTOCOL * | This, |
IN UINT64 | BaudRate, | ||
IN UINT32 | ReceiveFifoDepth, | ||
IN UINT32 | Timeout, | ||
IN EFI_PARITY_TYPE | Parity, | ||
IN UINT8 | DataBits, | ||
IN EFI_STOP_BITS_TYPE | StopBits | ||
) |
Definition at line 94 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoSetControl | ( | IN EFI_SERIAL_IO_PROTOCOL * | This, |
IN UINT32 | Control | ||
) |
Definition at line 119 of file VirtioSerialPort.c.
STATIC VOID EFIAPI VirtioSerialIoUninit | ( | VIRTIO_SERIAL_IO_PROTOCOL * | SerialIo | ) |
Definition at line 336 of file VirtioSerialPort.c.
STATIC EFI_STATUS EFIAPI VirtioSerialIoWrite | ( | IN EFI_SERIAL_IO_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Definition at line 143 of file VirtioSerialPort.c.
EFI_STATUS EFIAPI VirtioSerialPortAdd | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId | ||
) |
Definition at line 367 of file VirtioSerialPort.c.
VOID EFIAPI VirtioSerialPortRemove | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId | ||
) |
Definition at line 446 of file VirtioSerialPort.c.
VOID EFIAPI VirtioSerialPortSetConsole | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId | ||
) |
Definition at line 402 of file VirtioSerialPort.c.
VOID EFIAPI VirtioSerialPortSetDeviceOpen | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId, | ||
IN UINT16 | Value | ||
) |
Definition at line 430 of file VirtioSerialPort.c.
VOID EFIAPI VirtioSerialPortSetName | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | PortId, | ||
IN UINT8 * | Name | ||
) |
Definition at line 416 of file VirtioSerialPort.c.
ACPI_HID_DEVICE_PATH mAcpiSerialDevNode |
Definition at line 23 of file VirtioSerialPort.c.
UART_DEVICE_PATH mUartDevNode |
Definition at line 36 of file VirtioSerialPort.c.