diff options
Diffstat (limited to 'drivers/serial/serial_ns16550.h')
-rw-r--r-- | drivers/serial/serial_ns16550.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/serial/serial_ns16550.h b/drivers/serial/serial_ns16550.h index c37d63ca9e..2d941cb8d1 100644 --- a/drivers/serial/serial_ns16550.h +++ b/drivers/serial/serial_ns16550.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /** * @file * @brief Serial NS16550 header @@ -8,11 +9,6 @@ * Register definitions for NS16550 device */ /* - * This file is licensed under - * the terms of the GNU General Public License version 2. This program - * is licensed "as is" without any warranty of any kind, whether express - * or implied. - * * NS16550 Serial Port * originally from linux source (arch/ppc/boot/ns16550.h) * modified slightly to @@ -40,6 +36,7 @@ #define lsr 5 #define msr 6 #define scr 7 +#define cntl 8 #define thr rbr #define iir fcr @@ -77,6 +74,12 @@ #define LSR_TEMT 0x40 /* Xmitter empty */ #define LSR_ERR 0x80 /* Error */ +/* Transmitter FIFO completely empty */ +#define LSR_EMPTY (LSR_THRE | LSR_TEMT) + +#define CNTL_RXEN 0x01 +#define CNTL_TXEN 0x02 + /* useful defaults for LCR */ #define LCR_8N1 0x03 |