]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
Resolve the build break caused by changes to DxeCore.
[mirror_edk2.git] / EdkModulePkg / Library / EdkSerialPortLibNull / SerialPortLibNull.c
index af9b95705f5a934db6293fcf4405affacc718154..3f2f183be568770de898f5ee2c45c50dfdff0877 100644 (file)
 \r
 **/\r
 \r
-/**\r
+/*\r
 \r
   Programmed hardware of Serial port.\r
 \r
+  @return    Always return EFI_UNSUPPORTED.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -31,9 +33,6 @@ SerialPortInitialize (
 /**\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
@@ -44,8 +43,8 @@ SerialPortInitialize (
 UINTN\r
 EFIAPI\r
 SerialPortWrite (\r
-  IN UINT8        *Buffer,\r
-  IN UINTN        NumberOfBytes\r
+  IN UINT8     *Buffer,\r
+  IN UINTN     NumberOfBytes\r
 )\r
 {\r
   return 0;\r
@@ -55,9 +54,6 @@ SerialPortWrite (
 /**\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
@@ -68,8 +64,8 @@ SerialPortWrite (
 UINTN\r
 EFIAPI\r
 SerialPortRead (\r
-  OUT UINT8    *Buffer,\r
-  IN  UINTN    NumberOfBytes\r
+  OUT UINT8     *Buffer,\r
+  IN  UINTN     NumberOfBytes\r
 )\r
 {\r
   return 0;\r