TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
BOOLEAN | SbiImplementsDbcn (VOID) |
BOOLEAN | SbiImplementsLegacyPutchar (VOID) |
UINTN | SbiLegacyPutchar (IN UINT8 *Buffer, IN UINTN NumberOfBytes) |
UINTN | SbiDbcnWrite (IN UINT8 *Buffer, IN UINTN NumberOfBytes) |
Serial Port Library backed by SBI console.
Common functionality shared by PrePiDxeSerialPortLibRiscVSbi and PrePiDxeSerialPortLibRiscVSbiRam implementations.
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Common.h.
Write data from buffer to console via SBI DBCN.
The number of bytes actually written to the SBI console is returned. If the return value is less than NumberOfBytes, then the write operation failed.
Buffer | The pointer to the data buffer to be written. |
NumberOfBytes | The number of bytes to written to the serial device. |
>=0 | The number of bytes written to the serial device. If this value is less than NumberOfBytes, then the write operation failed. |
BOOLEAN SbiImplementsDbcn | ( | VOID | ) |
BOOLEAN SbiImplementsLegacyPutchar | ( | VOID | ) |
Write data from buffer to console via SBI legacy putchar extension.
The number of bytes actually written to the SBI console is returned. If the return value is less than NumberOfBytes, then the write operation failed.
Buffer | The pointer to the data buffer to be written. |
NumberOfBytes | The number of bytes to written to the serial device. |
>=0 | The number of bytes written to the serial device. If this value is less than NumberOfBytes, then the write operation failed. |