summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-11-25 15:05:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-19 15:01:20 +0100
commit3398cc4f2b1592148a2ebabc5a2df3e303d4e77c (patch)
tree6efe36d39a28beafdde3c9596bfe0de92f60d2f6 /include/uapi
parent67a9aee7815d10e9227e32c3c7ea26726284eaef (diff)
downloadlinux-stable-3398cc4f2b1592148a2ebabc5a2df3e303d4e77c.tar.gz
linux-stable-3398cc4f2b1592148a2ebabc5a2df3e303d4e77c.tar.bz2
linux-stable-3398cc4f2b1592148a2ebabc5a2df3e303d4e77c.zip
serial: 8250: Add IIR FIFOs enabled field properly
Don't use magic literals & comments but define a real field instead for UART_IIR_FIFO_ENABLED and name also the values. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20221125130509.8482-5-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/serial_reg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/serial_reg.h b/include/uapi/linux/serial_reg.h
index bab3b39266cc..19aef5b0b049 100644
--- a/include/uapi/linux/serial_reg.h
+++ b/include/uapi/linux/serial_reg.h
@@ -44,6 +44,10 @@
#define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */
#define UART_IIR_XOFF 0x10 /* OMAP XOFF/Special Character */
#define UART_IIR_CTS_RTS_DSR 0x20 /* OMAP CTS/RTS/DSR Change */
+#define UART_IIR_FIFO_ENABLED 0xc0 /* FIFOs enabled / port type identification */
+#define UART_IIR_FIFO_ENABLED_8250 0x00 /* 8250: no FIFO */
+#define UART_IIR_FIFO_ENABLED_16550 0x80 /* 16550: (broken/unusable) FIFO */
+#define UART_IIR_FIFO_ENABLED_16550A 0xc0 /* 16550A: FIFO enabled */
#define UART_FCR 2 /* Out: FIFO Control Register */
#define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */