Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: dave madden <dhm@paradigm.webvision.com>
Subject: CBAUDEX rates (57600 &amp; up)
Date: Thu, 21 Nov 1996 23:10:16 -0800	[thread overview]
Message-ID: <9ff8bc26f9294bd0af9de59dd4f6ff00.axp-list@archive.invalid> (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

                 reply	other threads:[~1996-11-22  7:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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