aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/serial_reg.h
diff options
context:
space:
mode:
authorEd Blake <ed.blake@sondrel.com>2017-09-26 11:40:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 10:17:27 +0200
commit6263368c5b0b758d8639cad37a2a6493c9370425 (patch)
tree5aa7124185ff1b0f0659b8dc8e028b656d671dac /include/uapi/linux/serial_reg.h
parentserial: sh-sci: suppress warning for ports without dma channels (diff)
downloadlinux-dev-6263368c5b0b758d8639cad37a2a6493c9370425.tar.xz
linux-dev-6263368c5b0b758d8639cad37a2a6493c9370425.zip
serial: Add define for max baud rate divisor
Add a define for the maximum baud rate divisor, to improve code readability. Signed-off-by: Ed Blake <ed.blake@sondrel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/serial_reg.h')
-rw-r--r--include/uapi/linux/serial_reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/serial_reg.h b/include/uapi/linux/serial_reg.h
index 5db76880b4ad..dea05724c760 100644
--- a/include/uapi/linux/serial_reg.h
+++ b/include/uapi/linux/serial_reg.h
@@ -157,6 +157,7 @@
*/
#define UART_DLL 0 /* Out: Divisor Latch Low */
#define UART_DLM 1 /* Out: Divisor Latch High */
+#define UART_DIV_MAX 0xFFFF /* Max divisor value */
/*
* LCR=0xBF (or DLAB=1 for 16C660)