X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FSerialPortLib.h;h=60d32122976b7ce8fc15af91bc235b5da8fc9c2e;hb=4b37cc04b7677606347692541f2541d72f6e9b3f;hp=1ab8e97adc5c30add67e21e03d56fefdfd20cceb;hpb=50a64e5b0b92772b3aa02c23a64745b51094916b;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/SerialPortLib.h b/MdePkg/Include/Library/SerialPortLib.h index 1ab8e97adc..60d3212297 100644 --- a/MdePkg/Include/Library/SerialPortLib.h +++ b/MdePkg/Include/Library/SerialPortLib.h @@ -1,5 +1,5 @@ /** @file - Provides three common serial I/O port functions. + This library class provides common serial I/O port functions. Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials @@ -19,11 +19,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Initialize the serial device hardware. If no initialization is required, then return RETURN_SUCCESS. - If the serial device was successfuly initialized, 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. @retval RETURN_SUCCESS The serial device was initialized. - @retval RETURN_DEVICE_ERROR The serail device could not be initialized. + @retval RETURN_DEVICE_ERROR The serial device could not be initialized. **/ RETURN_STATUS @@ -38,9 +38,7 @@ SerialPortInitialize ( 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 Buffer is NULL, then ASSERT(). - If NumberOfBytes is zero, then return 0. @param Buffer Pointer to the data buffer to be written. @@ -54,8 +52,8 @@ SerialPortInitialize ( UINTN EFIAPI SerialPortWrite ( - IN UINT8 *Buffer, - IN UINTN NumberOfBytes + IN UINT8 *Buffer, + IN UINTN NumberOfBytes ); @@ -65,29 +63,27 @@ SerialPortWrite ( Reads NumberOfBytes data bytes from a serial device into the buffer specified by Buffer. The number of bytes actually read is returned. If the return value is less than NumberOfBytes, then the rest operation failed. - If Buffer is NULL, then ASSERT(). - If NumberOfBytes is zero, then return 0. @param Buffer Pointer to the data buffer to store the data read from the serial device. @param NumberOfBytes Number of bytes which will be read. - @retval 0 Read data failed, No data is to be read. - @retval !0 Aactual number of bytes read from serial device. + @retval 0 Read data failed, no data is to be read. + @retval >0 Actual number of bytes read from serial device. **/ UINTN EFIAPI SerialPortRead ( - OUT UINT8 *Buffer, - IN UINTN NumberOfBytes + OUT UINT8 *Buffer, + IN UINTN NumberOfBytes ); /** Polls a serial device to see if there is any data waiting to be read. - Polls aserial device to see if there is any data waiting to be read. + Polls a serial device to see if there is any data waiting to be read. If there is data waiting to be read from the serial device, then TRUE is returned. If there is no data waiting to be read from the serial device, then FALSE is returned.