Don't use magic literals & comments but define a real field instead for UART_IIR_FIFO_ENABLED and name also the values.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -44,6 +44,10 @@ · 43 unmodified lines | |||
| 44 | #define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */ | 44 | #define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */ |
| 45 | #define UART_IIR_XOFF 0x10 /* OMAP XOFF/Special Character */ | 45 | #define UART_IIR_XOFF 0x10 /* OMAP XOFF/Special Character */ |
| 46 | #define UART_IIR_CTS_RTS_DSR 0x20 /* OMAP CTS/RTS/DSR Change */ | 46 | #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 */ | ||
| 47 | 51 | ||
| 48 | #define UART_FCR 2 /* Out: FIFO Control Register */ | 52 | #define UART_FCR 2 /* Out: FIFO Control Register */ |
| 49 | #define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */ | 53 | #define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */ |