X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=MdeModulePkg%2FBus%2FPci%2FPciSioSerialDxe%2FSerialIo.c;h=31d5ab42ecfa36ac3bd7954a8a6b567d1d47b73f;hb=195f673f6270aaf73dd34b75f1da26451b63c316;hp=c0682e93b6668e00d1458a2c7970757b72b75206;hpb=2048c585b46d240d76e3097917cbbfe43a7be88e;p=mirror_edk2.git diff --git a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/SerialIo.c b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/SerialIo.c index c0682e93b6..31d5ab42ec 100644 --- a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/SerialIo.c +++ b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/SerialIo.c @@ -1,7 +1,7 @@ /** @file SerialIo implementation for PCI or SIO UARTs. -Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
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 @@ -92,7 +92,7 @@ VerifyUartParameters ( ((DataBits >= 6) && (DataBits <= 8) && (StopBits == OneFiveStopBits)) ) { return FALSE; - } + } // // Do not verify the baud rate if clock rate is unknown (0). @@ -169,8 +169,8 @@ VerifyUartParameters ( } // - // ActualBaudRate is higher than requested baud rate and more than 4% - // higher than the requested value. Increment Divisor if it is less + // ActualBaudRate is higher than requested baud rate and more than 4% + // higher than the requested value. Increment Divisor if it is less // than MAX_UINT16 and computed baud rate with new divisor. // if (ComputedDivisor == MAX_UINT16) { @@ -212,7 +212,7 @@ SerialFifoFull ( /** Detect whether specific FIFO is empty or not. - + @param Fifo A pointer to the Data Structure SERIAL_DEV_FIFO @return whether specific FIFO is empty or not @@ -363,7 +363,7 @@ SerialReceiveTransmit ( Data = READ_RBR (SerialDevice); SerialFifoAdd (&SerialDevice->Receive, Data); - + // // For full handshake flow control, if receive buffer full // tell the peer to stop sending data. @@ -1065,7 +1065,7 @@ SerialWrite ( NULL ) ); - + for (Index = 0; Index < *BufferSize; Index++) { SerialFifoAdd (&SerialDevice->Transmit, CharBuffer[Index]);