Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add speeds B500000 to B4000000 in increments of 500000.



details:   https://anonhg.NetBSD.org/src/rev/e6f92f7ec8b2
branches:  trunk
changeset: 446489:e6f92f7ec8b2
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Dec 07 19:01:11 2018 +0000

description:
Add speeds B500000 to B4000000 in increments of 500000.

Motivated by picocom checking for the existance of these at compile
time, and therefor previously not being able able to use picocom to
access the consoles of modern Rockchip SoCs (for example RK3399) running
at B1500000.

diffstat:

 sys/sys/termios.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 178c8dd4780b -r e6f92f7ec8b2 sys/sys/termios.h
--- a/sys/sys/termios.h Fri Dec 07 18:46:27 2018 +0000
+++ b/sys/sys/termios.h Fri Dec 07 19:01:11 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: termios.h,v 1.35 2018/12/07 18:45:13 jakllsch Exp $    */
+/*     $NetBSD: termios.h,v 1.36 2018/12/07 19:01:11 jakllsch Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1993, 1994
@@ -237,7 +237,15 @@
 #define B115200        115200U
 #define B230400        230400U
 #define B460800        460800U
+#define B500000        500000U
 #define B921600        921600U
+#define B1000000       1000000U
+#define B1500000       1500000U
+#define B2000000       2000000U
+#define B2500000       2500000U
+#define B3000000       3000000U
+#define B3500000       3500000U
+#define B4000000       4000000U
 #define EXTA           19200U
 #define EXTB           38400U
 #endif  /* defined(_NETBSD_SOURCE) */



Home | Main Index | Thread Index | Old Index