1/*
2 * Copyright 1992 by the University of Guelph
3 *
4 * Permission to use, copy and modify this
5 * software and its documentation for any purpose and without
6 * fee is hereby granted, provided that the above copyright
7 * notice appear in all copies and that both that copyright
8 * notice and this permission notice appear in supporting
9 * documentation.
10 * University of Guelph makes no representations about the suitability of
11 * this software for any purpose. It is provided "as is"
12 * without express or implied warranty.
13 *
14 * $FreeBSD: head/sys/dev/mse/mse.c 111815 2003-03-03 12:15:54Z phk $
15 */
16/*
17 * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
18 * the X386 port, courtesy of
19 * Rick Macklem, rick@snowhite.cis.uoguelph.ca
20 * Caveats: The driver currently uses spltty(), but doesn't use any
21 * generic tty code. It could use splmse() (that only masks off the
22 * bus mouse interrupt, but that would require hacking in i386/isa/icu.s.
--- 111 unchanged lines hidden (view full) ---
134static d_open_t mseopen;
135static d_close_t mseclose;
136static d_read_t mseread;
137static d_ioctl_t mseioctl;
138static d_poll_t msepoll;
139
140#define CDEV_MAJOR 27
141static struct cdevsw mse_cdevsw = {
142 .d_open = mseopen,
143 .d_close = mseclose,
144 .d_read = mseread,
145 .d_ioctl = mseioctl,
146 .d_poll = msepoll,
147 .d_name = "mse",
148 .d_maj = CDEV_MAJOR,
149};
150
151static void mseintr(void *);
152static timeout_t msetimeout;
153
154/* Flags */
155#define MSESC_OPEN 0x1
156#define MSESC_WANT 0x2
--- 759 unchanged lines hidden ---
2 * Copyright 1992 by the University of Guelph
3 *
4 * Permission to use, copy and modify this
5 * software and its documentation for any purpose and without
6 * fee is hereby granted, provided that the above copyright
7 * notice appear in all copies and that both that copyright
8 * notice and this permission notice appear in supporting
9 * documentation.
10 * University of Guelph makes no representations about the suitability of
11 * this software for any purpose. It is provided "as is"
12 * without express or implied warranty.
13 *
14 * $FreeBSD: head/sys/dev/mse/mse.c 111815 2003-03-03 12:15:54Z phk $
15 */
16/*
17 * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
18 * the X386 port, courtesy of
19 * Rick Macklem, rick@snowhite.cis.uoguelph.ca
20 * Caveats: The driver currently uses spltty(), but doesn't use any
21 * generic tty code. It could use splmse() (that only masks off the
22 * bus mouse interrupt, but that would require hacking in i386/isa/icu.s.
--- 111 unchanged lines hidden (view full) ---
134static d_open_t mseopen;
135static d_close_t mseclose;
136static d_read_t mseread;
137static d_ioctl_t mseioctl;
138static d_poll_t msepoll;
139
140#define CDEV_MAJOR 27
141static struct cdevsw mse_cdevsw = {
142 .d_open = mseopen,
143 .d_close = mseclose,
144 .d_read = mseread,
145 .d_ioctl = mseioctl,
146 .d_poll = msepoll,
147 .d_name = "mse",
148 .d_maj = CDEV_MAJOR,
149};
150
151static void mseintr(void *);
152static timeout_t msetimeout;
153
154/* Flags */
155#define MSESC_OPEN 0x1
156#define MSESC_WANT 0x2
--- 759 unchanged lines hidden ---