]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c
EmbeddedPkg: Fix various typos
[mirror_edk2.git] / EmbeddedPkg / Library / GdbSerialLib / GdbSerialLib.c
index 7ea976ff9d17c01f92cebb9e3d1a45d0c40bb640..088e23e0d89f41e163a6b5cb3add5d8b2c1af670 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
-  Basic serial IO abstaction for GDB\r
+  Basic serial IO abstraction for GDB\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 \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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 //---------------------------------------------\r
 // UART Register Bit Defines\r
 //---------------------------------------------\r
-#define LSR_TXRDY               0x20\r
-#define LSR_RXDA                0x01\r
-#define DLAB                    0x01\r
-#define ENABLE_FIFO             0x01\r
-#define CLEAR_FIFOS             0x06\r
+#define LSR_TXRDY               0x20U\r
+#define LSR_RXDA                0x01U\r
+#define DLAB                    0x01U\r
+#define ENABLE_FIFO             0x01U\r
+#define CLEAR_FIFOS             0x06U\r
 \r
 \r
 \r
@@ -86,7 +80,7 @@ GdbSerialLibConstructor (
 \r
 \r
 /**\r
-  Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,\r
+  Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,\r
   data buts, and stop bits on a serial device. This call is optional as the serial\r
   port will be set up with defaults base on PCD values.\r
 \r
@@ -95,13 +89,13 @@ GdbSerialLibConstructor (
   @param  Parity           The type of parity to use on this serial device. A Parity value of\r
                            DefaultParity will use the device's default parity value.\r
   @param  DataBits         The number of data bits to use on the serial device. A DataBits\r
-                           vaule of 0 will use the device's default data bit setting.\r
+                           value of 0 will use the device's default data bit setting.\r
   @param  StopBits         The number of stop bits to use on this serial device. A StopBits\r
                            value of DefaultStopBits will use the device's default number of\r
                            stop bits.\r
 \r
   @retval EFI_SUCCESS      The device was configured.\r
-  @retval EFI_DEVICE_ERROR The serial device could not be coonfigured.\r
+  @retval EFI_DEVICE_ERROR The serial device could not be configured.\r
 \r
 **/\r
 RETURN_STATUS\r
@@ -165,8 +159,8 @@ GdbSerialInit (
   Check to see if a character is available from GDB. Do not read the character as that is\r
   done via GdbGetChar().\r
 \r
-  @return TRUE  - Character availible\r
-  @return FALSE - Character not availible\r
+  @return TRUE  - Character available\r
+  @return FALSE - Character not available\r
 \r
 **/\r
 BOOLEAN\r