X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FSerialPortLib.h;h=30b8aa9ccf5e5b2f44d83159a9e8ee69fcd64965;hb=9bb407c64341443be5935b4a92697e24da2e9088;hp=1ab8e97adc5c30add67e21e03d56fefdfd20cceb;hpb=50a64e5b0b92772b3aa02c23a64745b51094916b;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/SerialPortLib.h b/MdePkg/Include/Library/SerialPortLib.h index 1ab8e97adc..30b8aa9ccf 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 @@ -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,23 +63,21 @@ 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 Aactual number of bytes read from serial device. **/ UINTN EFIAPI SerialPortRead ( - OUT UINT8 *Buffer, - IN UINTN NumberOfBytes + OUT UINT8 *Buffer, + IN UINTN NumberOfBytes ); /**