sysmouse.c (93593) | sysmouse.c (111815) |
---|---|
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 --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 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 * | 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 --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 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 * $FreeBSD: head/sys/dev/syscons/sysmouse.c 93593 2002-04-01 21:31:13Z jhb $ | 26 * $FreeBSD: head/sys/dev/syscons/sysmouse.c 111815 2003-03-03 12:15:54Z phk $ |
27 */ 28 29#include "opt_syscons.h" 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/tty.h> --- 8 unchanged lines hidden (view full) --- 43#define CDEV_MAJOR 12 /* major number, shared with syscons */ 44#define SC_MOUSE 128 /* minor number */ 45 46static d_open_t smopen; 47static d_close_t smclose; 48static d_ioctl_t smioctl; 49 50static struct cdevsw sm_cdevsw = { | 27 */ 28 29#include "opt_syscons.h" 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/tty.h> --- 8 unchanged lines hidden (view full) --- 43#define CDEV_MAJOR 12 /* major number, shared with syscons */ 44#define SC_MOUSE 128 /* minor number */ 45 46static d_open_t smopen; 47static d_close_t smclose; 48static d_ioctl_t smioctl; 49 50static struct cdevsw sm_cdevsw = { |
51 /* open */ smopen, 52 /* close */ smclose, 53 /* read */ ttyread, 54 /* write */ nowrite, 55 /* ioctl */ smioctl, 56 /* poll */ ttypoll, 57 /* mmap */ nommap, 58 /* strategy */ nostrategy, 59 /* name */ "sysmouse", 60 /* maj */ CDEV_MAJOR, 61 /* dump */ nodump, 62 /* psize */ nopsize, 63 /* flags */ D_TTY, | 51 .d_open = smopen, 52 .d_close = smclose, 53 .d_read = ttyread, 54 .d_ioctl = smioctl, 55 .d_poll = ttypoll, 56 .d_name = "sysmouse", 57 .d_maj = CDEV_MAJOR, 58 .d_flags = D_TTY, |
64}; 65 66/* local variables */ 67static struct tty *sysmouse_tty; 68static int mouse_level; /* sysmouse protocol level */ 69static mousestatus_t mouse_status; 70 71static void smstart(struct tty *tp); --- 268 unchanged lines hidden --- | 59}; 60 61/* local variables */ 62static struct tty *sysmouse_tty; 63static int mouse_level; /* sysmouse protocol level */ 64static mousestatus_t mouse_status; 65 66static void smstart(struct tty *tp); --- 268 unchanged lines hidden --- |