Deleted Added
full compact
sysmouse.c (184771) sysmouse.c (193018)
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 184771 2008-11-08 20:40:39Z ed $");
29__FBSDID("$FreeBSD: head/sys/dev/syscons/sysmouse.c 193018 2009-05-29 06:41:23Z 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>

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

159 .tsw_close = smdev_close,
160 .tsw_ioctl = smdev_ioctl,
161 .tsw_param = smdev_param,
162};
163
164static void
165sm_attach_mouse(void *unused)
166{
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>

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

159 .tsw_close = smdev_close,
160 .tsw_ioctl = smdev_ioctl,
161 .tsw_param = smdev_param,
162};
163
164static void
165sm_attach_mouse(void *unused)
166{
167 sysmouse_tty = tty_alloc(&smdev_ttydevsw, NULL, NULL);
167 sysmouse_tty = tty_alloc(&smdev_ttydevsw, NULL);
168 tty_makedev(sysmouse_tty, NULL, "sysmouse");
169}
170
171SYSINIT(sysmouse, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, sm_attach_mouse, NULL);
172
173int
174sysmouse_event(mouse_info_t *info)
175{

--- 74 unchanged lines hidden ---
168 tty_makedev(sysmouse_tty, NULL, "sysmouse");
169}
170
171SYSINIT(sysmouse, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, sm_attach_mouse, NULL);
172
173int
174sysmouse_event(mouse_info_t *info)
175{

--- 74 unchanged lines hidden ---