Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* CBAUDEX rates (57600 & up)
@ 1996-11-22  7:10 dave madden
  0 siblings, 0 replies; only message in thread
From: dave madden @ 1996-11-22  7:10 UTC (permalink / raw)


I've found a bug in /usr/include/asm/termbits.h (RH4.0/2.0.18).  The
baud-rate-handling code in linux/drivers/char/serial.c is designed to
work around the ugly baud rate specification scheme in
linux/include/asm-i386/termbits.h, but it doesn't work with the
redesigned, elegant scheme for the Alpha.  This patch fixes things,
but you have to recompile your kernel and possibly some programs that
use CBAUD or CBAUDEX (minicom apparently does not use them in a way
that requires recompilation; I'll be trying ppp next).

d.

*** termbits.h.buggy	Thu Nov 21 18:02:30 1996
--- termbits.h	Thu Nov 21 18:03:42 1996
***************
*** 101,107 ****
  #define XTABS	01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
  
  /* c_cflag bit meaning */
! #define CBAUD	0000017
  #define  B0	0000000		/* hang up */
  #define  B50	0000001
  #define  B75	0000002
--- 101,107 ----
  #define XTABS	01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
  
  /* c_cflag bit meaning */
! #define CBAUD	0000037
  #define  B0	0000000		/* hang up */
  #define  B50	0000001
  #define  B75	0000002
***************
*** 120,126 ****
  #define  B38400	0000017
  #define EXTA B19200
  #define EXTB B38400
! #define CBAUDEX 0000020
  #define  B57600   00020
  #define  B115200  00021
  #define  B230400  00022
--- 120,126 ----
  #define  B38400	0000017
  #define EXTA B19200
  #define EXTB B38400
! #define CBAUDEX 0000000
  #define  B57600   00020
  #define  B115200  00021
  #define  B230400  00022

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-11-22  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-22  7:10 CBAUDEX rates (57600 & up) dave madden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox