TianoCore EDK2 master
|
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.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.
Driver for virtio-serial devices.
The virtio serial device also known as virtio console device because initially it had only support for a single tty, intended to be used as console. Support for multiple streams and named data ports has been added later on.
https://docs.oasis-open.org/virtio/virtio/v1.2/cs01/virtio-v1.2-cs01.html#x1-2900003
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VirtioSerial.c.
VOID EFIAPI LogDevicePath | ( | UINT32 | Level, |
const CHAR8 * | Func, | ||
CHAR16 * | Note, | ||
EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ||
) |
Definition at line 41 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialDriverBindingStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | DeviceHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Definition at line 529 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialDriverBindingStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | DeviceHandle, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer | ||
) |
Definition at line 614 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialDriverBindingSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | DeviceHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Definition at line 481 of file VirtioSerial.c.
EFI_STATUS EFIAPI VirtioSerialEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Definition at line 792 of file VirtioSerial.c.
Definition at line 426 of file VirtioSerial.c.
STATIC VIRTIO_SERIAL_DEV * VirtioSerialFind | ( | EFI_HANDLE | DeviceHandle | ) |
Definition at line 447 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialGetDeviceName | ( | IN EFI_COMPONENT_NAME_PROTOCOL * | This, |
IN EFI_HANDLE | DeviceHandle, | ||
IN EFI_HANDLE | ChildHandle, | ||
IN CHAR8 * | Language, | ||
OUT CHAR16 ** | ControllerName | ||
) |
Definition at line 731 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialGetDriverName | ( | IN EFI_COMPONENT_NAME_PROTOCOL * | This, |
IN CHAR8 * | Language, | ||
OUT CHAR16 ** | DriverName | ||
) |
Definition at line 713 of file VirtioSerial.c.
STATIC EFI_STATUS EFIAPI VirtioSerialInit | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev | ) |
Definition at line 221 of file VirtioSerial.c.
STATIC VOID EFIAPI VirtioSerialRxControl | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev | ) |
Definition at line 92 of file VirtioSerial.c.
Definition at line 194 of file VirtioSerial.c.
EFI_STATUS EFIAPI VirtioSerialTxControl | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev, |
IN UINT32 | Id, | ||
IN UINT16 | Event, | ||
IN UINT16 | Value | ||
) |
Definition at line 62 of file VirtioSerial.c.
STATIC VOID EFIAPI VirtioSerialUninit | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev | ) |
Definition at line 397 of file VirtioSerial.c.
STATIC VOID EFIAPI VirtioSerialUninitAllRings | ( | IN OUT VIRTIO_SERIAL_DEV * | Dev | ) |
Definition at line 207 of file VirtioSerial.c.
Definition at line 28 of file VirtioSerial.c.
STATIC EFI_COMPONENT_NAME_PROTOCOL gComponentName |
Definition at line 708 of file VirtioSerial.c.
STATIC EFI_COMPONENT_NAME2_PROTOCOL gComponentName2 |
Definition at line 781 of file VirtioSerial.c.
STATIC EFI_DRIVER_BINDING_PROTOCOL gDriverBinding |
Definition at line 671 of file VirtioSerial.c.
STATIC EFI_UNICODE_STRING_TABLE mDeviceNameTable[] |
Definition at line 696 of file VirtioSerial.c.
STATIC EFI_UNICODE_STRING_TABLE mDriverNameTable[] |
Definition at line 690 of file VirtioSerial.c.
STATIC EFI_UNICODE_STRING_TABLE mPortNameTable[] |
Definition at line 702 of file VirtioSerial.c.
STATIC LIST_ENTRY mVirtioSerialList |
Definition at line 26 of file VirtioSerial.c.