summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseSerialPortLibNull
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-26 04:36:05 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-26 04:36:05 +0000
commit718715141abc0253f369ca55cce3b69c82913ee2 (patch)
tree019211862f4e6f7b3d68153461d222fd6cfaf668 /MdePkg/Library/BaseSerialPortLibNull
parent3e5c323866e6f424f15ab7f59595d8929846354e (diff)
downloadedk2-718715141abc0253f369ca55cce3b69c82913ee2.tar.gz
edk2-718715141abc0253f369ca55cce3b69c82913ee2.tar.bz2
edk2-718715141abc0253f369ca55cce3b69c82913ee2.zip
Function headers in .h and .c files synchronized with spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6728 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseSerialPortLibNull')
-rw-r--r--MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
index ff1d14baba..fef62abe61 100644
--- a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
+++ b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
@@ -44,9 +44,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.
@@ -69,14 +67,19 @@ SerialPortWrite (
/**
- Reads data from a serial device into a buffer.
+ Read data from serial device and save the datas in buffer.
+
+ 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 to read from the serial device.
+ @param NumberOfBytes Number of bytes which will be read.
- @retval 0 NumberOfBytes is 0.
- @retval >0 The number of bytes read from the serial device.
- If this value is less than NumberOfBytes, then the read operation failed.
+ @retval 0 Read data failed, No data is to be read.
+ @retval >0 Aactual number of bytes read from serial device.
**/
UINTN