PERFORCE change 147114 for review
Ed Schouten
ed at FreeBSD.org
Sun Aug 10 23:01:24 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147114
Change 147114 by ed at ed_mekker on 2008/08/10 23:01:13
Make a proper definition for the forced baud rate for pseudo-devices.
Affected files ...
.. //depot/projects/mpsafetty/sys/dev/syscons/sysmouse.c#2 edit
.. //depot/projects/mpsafetty/sys/kern/tty.c#19 edit
.. //depot/projects/mpsafetty/sys/sys/ttydefaults.h#2 edit
Differences ...
==== //depot/projects/mpsafetty/sys/dev/syscons/sysmouse.c#2 (text+ko) ====
@@ -148,11 +148,12 @@
static int
smdev_param(struct tty *tp, struct termios *t)
{
+
/*
* Set the output baud rate to zero. The mouse device supports
* no output, so we don't want to waste buffers.
*/
- t->c_ispeed = B115200;
+ t->c_ispeed = TTYDEF_SPEED_PSEUDO;
t->c_ospeed = B0;
return (0);
==== //depot/projects/mpsafetty/sys/kern/tty.c#19 (text+ko) ====
@@ -809,7 +809,7 @@
{
/* Use a fake baud rate, we're not a real device. */
- t->c_ispeed = t->c_ospeed = B38400;
+ t->c_ispeed = t->c_ospeed = TTYDEF_SPEED_PSEUDO;
return (0);
}
==== //depot/projects/mpsafetty/sys/sys/ttydefaults.h#2 (text+ko) ====
@@ -52,6 +52,7 @@
#define TTYDEF_LFLAG TTYDEF_LFLAG_ECHO
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#define TTYDEF_SPEED (B9600)
+#define TTYDEF_SPEED_PSEUDO (B38400)
/*
* Control Character Defaults
More information about the p4-projects
mailing list