]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Clean up BaseSerialPortLib16550 to remove references and checks for Carrier Detect...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Feb 2011 01:19:59 +0000 (01:19 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Feb 2011 01:19:59 +0000 (01:19 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11300 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c

index 17c60d379be86006eb72cff93496fb0741e5dc8b..04d8ca194934ead73b66e684dd539f97237ab0c9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   16550 UART Serial Port library functions\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2011, 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
@@ -38,7 +38,6 @@
 #define   B_UART_LSR_TEMT     BIT6\r
 #define R_UART_MSR            6\r
 #define   B_UART_MSR_CTS      BIT4\r
-#define   B_UART_MSR_DCD      BIT7\r
 \r
 /**\r
   Read an 8-bit 16550 register.  If PcdSerialUseMmio is TRUE, then the value is read from \r
@@ -194,9 +193,9 @@ SerialPortWrite (
   IN UINTN     NumberOfBytes\r
 )\r
 {\r
-  UINTN  Result;\r
-  UINTN  Index;\r
-  UINTN  FifoSize;\r
+  UINTN    Result;\r
+  UINTN    Index;\r
+  UINTN    FifoSize;\r
 \r
   if (Buffer == NULL) {\r
     return 0;\r
@@ -213,7 +212,7 @@ SerialPortWrite (
       FifoSize = 64;\r
     }\r
   }\r
-  \r
+\r
   Result = NumberOfBytes;\r
   while (NumberOfBytes != 0) {\r
     //\r
@@ -230,7 +229,7 @@ SerialPortWrite (
         //\r
         // Wait for notification from peer to send data\r
         //\r
-        while ((SerialPortReadRegister (R_UART_MSR) & (B_UART_MSR_CTS | B_UART_MSR_DCD)) == B_UART_MSR_DCD);\r
+        while ((SerialPortReadRegister (R_UART_MSR) & (B_UART_MSR_CTS)) == 0);\r
       }\r
       \r
       //\r