Date: Sun, 10 Aug 2008 23:01:23 GMT From: Ed Schouten <ed@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 147114 for review Message-ID: <200808102301.m7AN1N31088050@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147114 Change 147114 by ed@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808102301.m7AN1N31088050>