summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Library/SerialPortLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Library/SerialPortLib.h')
-rw-r--r--MdePkg/Include/Library/SerialPortLib.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/MdePkg/Include/Library/SerialPortLib.h b/MdePkg/Include/Library/SerialPortLib.h
index e6a55eefa4..30b8aa9ccf 100644
--- a/MdePkg/Include/Library/SerialPortLib.h
+++ b/MdePkg/Include/Library/SerialPortLib.h
@@ -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.
@@ -65,16 +63,14 @@ 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