CBAUDEX rates (57600 & up)

dave madden (dhm@paradigm.webvision.com)
Thu, 21 Nov 1996 23:10:16 -0800

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



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices