TianoCore EDK2 master
Loading...
Searching...
No Matches
Write.h File Reference

Go to the source code of this file.

Functions

UINTN DebugLibFdtPL011UartWrite (IN UINT8 *Buffer, IN UINTN NumberOfBytes)
 

Detailed Description

Declare DebugLibFdtPL011UartWrite(), for abstracting PL011 UART initialization differences between flash- vs. RAM-based modules.

Copyright (C) Red Hat Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2012 - 2014, ARM Ltd. All rights reserved.

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

Definition in file Write.h.

Function Documentation

◆ DebugLibFdtPL011UartWrite()

UINTN DebugLibFdtPL011UartWrite ( IN UINT8 *  Buffer,
IN UINTN  NumberOfBytes 
)

(Copied from SerialPortWrite() in "MdePkg/Include/Library/SerialPortLib.h" at commit c4547aefb3d0, with the Buffer non-nullity assertion removed:)

Write data from buffer to serial device.

Writes NumberOfBytes data bytes from Buffer to the serial device. The number of bytes actually written to the serial device is returned. If the return value is less than NumberOfBytes, then the write operation failed. If NumberOfBytes is zero, then return 0.

Parameters
BufferPointer to the data buffer to be written.
NumberOfBytesNumber of bytes to written to the serial device.
Return values
0NumberOfBytes is 0.
>0The number of bytes written to the serial device. If this value is less than NumberOfBytes, then the write operation failed.

Definition at line 34 of file Flash.c.