]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
Fix issue when BaseDebugLibSerialPort is combined with BaseSerialPortLibNull. It...
[mirror_edk2.git] / MdePkg / Library / BaseSerialPortLibNull / BaseSerialPortLibNull.c
index e4542d00cef05a5be4c7091f5f28fc16d799c10d..d44fa523c2d89f1b2251f55ea7963954255f84c2 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   Null Serial Port library instance with empty functions.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  http://opensource.org/licenses/bsd-license.php.\r
 \r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -14,8 +14,6 @@
 \r
 \r
 #include <Base.h>\r
-\r
-\r
 #include <Library/SerialPortLib.h>\r
 \r
 /**\r
@@ -35,7 +33,7 @@ SerialPortInitialize (
   VOID\r
   )\r
 {\r
-  return RETURN_UNSUPPORTED;\r
+  return RETURN_SUCCESS;\r
 }\r
 \r
 /**\r
@@ -47,8 +45,8 @@ SerialPortInitialize (
   If Buffer is NULL, then ASSERT(). \r
   If NumberOfBytes is zero, then return 0.\r
 \r
-  @param  Buffer           Pointer to the data buffer to be written.\r
-  @param  NumberOfBytes    Number of bytes to written to the serial device.\r
+  @param  Buffer           The pointer to the data buffer to be written.\r
+  @param  NumberOfBytes    The number of bytes to written to the serial device.\r
 \r
   @retval 0                NumberOfBytes is 0.\r
   @retval >0               The number of bytes written to the serial device.  \r
@@ -75,11 +73,11 @@ SerialPortWrite (
   If Buffer is NULL, then ASSERT(). \r
   If NumberOfBytes is zero, then return 0.\r
 \r
-  @param  Buffer           Pointer to the data buffer to store the data read from the serial device.\r
-  @param  NumberOfBytes    Number of bytes which will be read.\r
+  @param  Buffer           The pointer to the data buffer to store the data read from the serial device.\r
+  @param  NumberOfBytes    The number of bytes which will be read.\r
 \r
-  @retval 0                Read data failed, No data is to be read.\r
-  @retval >0               Aactual number of bytes read from serial device.\r
+  @retval 0                Read data failed; No data is to be read.\r
+  @retval >0               The actual number of bytes read from serial device.\r
 \r
 **/\r
 UINTN\r