summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/BaseSerialPortLib16550
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-04 01:19:59 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-04 01:19:59 +0000
commitdb662a64a62a42e2c8cdc3ab86c1a6b832f2dc4e (patch)
tree26d31e806f90dca1a362ba02391d90eef8dfeba9 /MdeModulePkg/Library/BaseSerialPortLib16550
parentb739d70ee5d4dc93e3192972cf851ee11932950f (diff)
downloadedk2-db662a64a62a42e2c8cdc3ab86c1a6b832f2dc4e.tar.gz
edk2-db662a64a62a42e2c8cdc3ab86c1a6b832f2dc4e.tar.bz2
edk2-db662a64a62a42e2c8cdc3ab86c1a6b832f2dc4e.zip
Clean up BaseSerialPortLib16550 to remove references and checks for Carrier Detect(CD). This is not required for this library implementation. The only signals used for Hardware Flow Control are RTS/CTS.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11300 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/BaseSerialPortLib16550')
-rw-r--r--MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c
index 17c60d379b..04d8ca1949 100644
--- a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c
+++ b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c
@@ -1,7 +1,7 @@
/** @file
16550 UART Serial Port library functions
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -38,7 +38,6 @@
#define B_UART_LSR_TEMT BIT6
#define R_UART_MSR 6
#define B_UART_MSR_CTS BIT4
-#define B_UART_MSR_DCD BIT7
/**
Read an 8-bit 16550 register. If PcdSerialUseMmio is TRUE, then the value is read from
@@ -194,9 +193,9 @@ SerialPortWrite (
IN UINTN NumberOfBytes
)
{
- UINTN Result;
- UINTN Index;
- UINTN FifoSize;
+ UINTN Result;
+ UINTN Index;
+ UINTN FifoSize;
if (Buffer == NULL) {
return 0;
@@ -213,7 +212,7 @@ SerialPortWrite (
FifoSize = 64;
}
}
-
+
Result = NumberOfBytes;
while (NumberOfBytes != 0) {
//
@@ -230,7 +229,7 @@ SerialPortWrite (
//
// Wait for notification from peer to send data
//
- while ((SerialPortReadRegister (R_UART_MSR) & (B_UART_MSR_CTS | B_UART_MSR_DCD)) == B_UART_MSR_DCD);
+ while ((SerialPortReadRegister (R_UART_MSR) & (B_UART_MSR_CTS)) == 0);
}
//