Deleted Added
full compact
sysmouse.c (126078) sysmouse.c (126080)
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 126078 2004-02-21 20:41:11Z phk $");
29__FBSDID("$FreeBSD: head/sys/dev/syscons/sysmouse.c 126080 2004-02-21 21:10:55Z phk $");
30
31#include "opt_syscons.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/conf.h>
36#include <sys/tty.h>
37#include <sys/kernel.h>

--- 6 unchanged lines hidden (view full) ---

44
45#define SC_MOUSE 128 /* minor number */
46
47static d_open_t smopen;
48static d_close_t smclose;
49static d_ioctl_t smioctl;
50
51static struct cdevsw sm_cdevsw = {
30
31#include "opt_syscons.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/conf.h>
36#include <sys/tty.h>
37#include <sys/kernel.h>

--- 6 unchanged lines hidden (view full) ---

44
45#define SC_MOUSE 128 /* minor number */
46
47static d_open_t smopen;
48static d_close_t smclose;
49static d_ioctl_t smioctl;
50
51static struct cdevsw sm_cdevsw = {
52 .d_version = D_VERSION,
52 .d_open = smopen,
53 .d_close = smclose,
54 .d_ioctl = smioctl,
55 .d_name = "sysmouse",
53 .d_open = smopen,
54 .d_close = smclose,
55 .d_ioctl = smioctl,
56 .d_name = "sysmouse",
56 .d_flags = D_TTY,
57 .d_flags = D_TTY | D_NEEDGIANT,
57};
58
59/* local variables */
60static struct tty *sysmouse_tty;
61static int mouse_level; /* sysmouse protocol level */
62static mousestatus_t mouse_status;
63
64static void smstart(struct tty *tp);

--- 267 unchanged lines hidden ---
58};
59
60/* local variables */
61static struct tty *sysmouse_tty;
62static int mouse_level; /* sysmouse protocol level */
63static mousestatus_t mouse_status;
64
65static void smstart(struct tty *tp);

--- 267 unchanged lines hidden ---