History

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.

Ilpo Järvinen committed 3 years ago

Commit 3398cc41 parent 67a9aee2 files · +11 −10Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/serial_reg.h+4−0
@@ -44,6 +44,10 @@ · 43 unmodified lines
4444 #define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */
4545 #define UART_IIR_XOFF 0x10 /* OMAP XOFF/Special Character */
4646 #define UART_IIR_CTS_RTS_DSR 0x20 /* OMAP CTS/RTS/DSR Change */
47+#define UART_IIR_FIFO_ENABLED 0xc0 /* FIFOs enabled / port type identification */
48+#define UART_IIR_FIFO_ENABLED_8250 0x00 /* 8250: no FIFO */
49+#define UART_IIR_FIFO_ENABLED_16550 0x80 /* 16550: (broken/unusable) FIFO */
50+#define UART_IIR_FIFO_ENABLED_16550A 0xc0 /* 16550A: FIFO enabled */
4751
4852 #define UART_FCR 2 /* Out: FIFO Control Register */
4953 #define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t