summaryrefslogtreecommitdiff
path: root/include/uapi/linux/serial_reg.h
diff options
context:
space:
mode:
authorEd Blake <ed.blake@sondrel.com>2017-09-26 13:40:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 11:17:27 +0300
commit6263368c5b0b758d8639cad37a2a6493c9370425 (patch)
tree5aa7124185ff1b0f0659b8dc8e028b656d671dac /include/uapi/linux/serial_reg.h
parent7464779fa8551b90d5797d4020b0bdb7e6422eb9 (diff)
downloadlinux-6263368c5b0b758d8639cad37a2a6493c9370425.tar.xz
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)