sysmouse.c (182109) | sysmouse.c (184771) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/syscons/sysmouse.c 182109 2008-08-24 15:20:44Z ed $"); | 29__FBSDID("$FreeBSD: head/sys/dev/syscons/sysmouse.c 184771 2008-11-08 20:40:39Z ed $"); |
30 31#include "opt_syscons.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/priv.h> 36#include <sys/serial.h> 37#include <sys/tty.h> --- 105 unchanged lines hidden (view full) --- 143static int 144smdev_param(struct tty *tp, struct termios *t) 145{ 146 147 /* 148 * Set the output baud rate to zero. The mouse device supports 149 * no output, so we don't want to waste buffers. 150 */ | 30 31#include "opt_syscons.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/priv.h> 36#include <sys/serial.h> 37#include <sys/tty.h> --- 105 unchanged lines hidden (view full) --- 143static int 144smdev_param(struct tty *tp, struct termios *t) 145{ 146 147 /* 148 * Set the output baud rate to zero. The mouse device supports 149 * no output, so we don't want to waste buffers. 150 */ |
151 t->c_ispeed = TTYDEF_SPEED_PSEUDO; | 151 t->c_ispeed = TTYDEF_SPEED; |
152 t->c_ospeed = B0; 153 154 return (0); 155} 156 157static struct ttydevsw smdev_ttydevsw = { 158 .tsw_flags = TF_NOPREFIX, 159 .tsw_close = smdev_close, --- 90 unchanged lines hidden --- | 152 t->c_ospeed = B0; 153 154 return (0); 155} 156 157static struct ttydevsw smdev_ttydevsw = { 158 .tsw_flags = TF_NOPREFIX, 159 .tsw_close = smdev_close, --- 90 unchanged lines hidden --- |