]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1459 6f19259b...
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 06:50:31 +0000 (06:50 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 06:50:31 +0000 (06:50 +0000)
EdkModulePkg/Include/Library/SerialPortLib.h
EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c

index cda5ad17dba0d9d5d4bbc75dda880433b8d8def5..153e38cd15fce91ca0c0cc6d608ec23686eea1e1 100644 (file)
@@ -34,8 +34,8 @@ SerialPortInitialize (
 /**\r
   Write data to serial device. \r
  \r
 /**\r
   Write data to serial device. \r
  \r
-  If the buffer is NULL, then ASSERT()\r
-  if NumberOfBytes is zero, then ASSERT()\r
+  If the buffer is NULL, then return 0\r
+  if NumberOfBytes is zero, then return 0\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
@@ -55,8 +55,8 @@ SerialPortWrite (
 /**\r
   Read data from serial device and save the datas in buffer.\r
  \r
 /**\r
   Read data from serial device and save the datas in buffer.\r
  \r
-  If the buffer is NULL, then ASSERT(); \r
-  if NumberOfBytes is zero, then ASSERT(). \r
+  If the buffer is NULL, then return zero;\r
+  if NumberOfBytes is zero, then return zero.\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
index 1c42eb0a37c2b8bd5b35a5044dbfc43cabebaa93..3f2f183be568770de898f5ee2c45c50dfdff0877 100644 (file)
@@ -33,9 +33,6 @@ SerialPortInitialize (
 /**\r
   Write data to serial device. \r
  \r
 /**\r
   Write data to serial device. \r
  \r
-  If the buffer is NULL, then ASSERT(); \r
-  if NumberOfBytes is zero, then ASSERT(). \r
-\r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
@@ -50,9 +47,6 @@ SerialPortWrite (
   IN UINTN     NumberOfBytes\r
 )\r
 {\r
   IN UINTN     NumberOfBytes\r
 )\r
 {\r
-  ASSERT (NULL != Buffer);\r
-  ASSERT (0 != NumberOfBytes);\r
-\r
   return 0;\r
 }\r
 \r
   return 0;\r
 }\r
 \r
@@ -60,9 +54,6 @@ SerialPortWrite (
 /**\r
   Read data from serial device and save the datas in buffer.\r
  \r
 /**\r
   Read data from serial device and save the datas in buffer.\r
  \r
-  If the buffer is NULL, then ASSERT(); \r
-  if NumberOfBytes is zero, then ASSERT(). \r
-\r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
@@ -77,9 +68,6 @@ SerialPortRead (
   IN  UINTN     NumberOfBytes\r
 )\r
 {\r
   IN  UINTN     NumberOfBytes\r
 )\r
 {\r
-  ASSERT (NULL != Buffer);\r
-  ASSERT (0 != NumberOfBytes);\r
-\r
   return 0;\r
 }\r
 \r
   return 0;\r
 }\r
 \r