EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
|RETURN_STATUS EFIAPI||SerialPortInitialize (VOID)|
|UINTN EFIAPI||SerialPortWrite (IN UINT8 *Buffer, IN UINTN NumberOfBytes)|
|UINTN EFIAPI||SerialPortRead (OUT UINT8 *Buffer, IN UINTN NumberOfBytes)|
|BOOLEAN EFIAPI||SerialPortPoll (VOID)|
Serial I/O Port library functions with no library constructor/destructor
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file PL011SerialPortLib.c.
|RETURN_STATUS EFIAPI SerialPortInitialize||(||VOID||)|
Initialize the serial device hardware.
If no initialization is required, then return RETURN_SUCCESS. If the serial device was successfully initialized, then return RETURN_SUCCESS. If the serial device could not be initialized, then return RETURN_DEVICE_ERROR.
|RETURN_SUCCESS||The serial device was initialized.|
|RETURN_DEVICE_ERROR||The serial device could not be initialized.|
|BOOLEAN EFIAPI SerialPortPoll||(||VOID||)|
Check to see if any data is avaiable to be read from the debug device.
|EFI_SUCCESS||At least one byte of data is avaiable to be read|
|EFI_NOT_READY||No data is avaiable to be read|
|EFI_DEVICE_ERROR||The serial device is not functioning properly|
Read data from serial device and save the datas in buffer.
|Buffer||Point of data buffer which need to be writed.|
|NumberOfBytes||Number of output bytes which are cached in Buffer.|
|0||Read data failed.|
|!0||Aactual number of bytes read from serial device.|