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 111748 2003-03-02 16:54:40Z des $
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 /* open */ mseopen,
143 /* close */ mseclose,
144 /* read */ mseread,
145 /* write */ nowrite,
146 /* ioctl */ mseioctl,
147 /* poll */ msepoll,
148 /* mmap */ nommap,
149 /* strategy */ nostrategy,
150 /* name */ "mse",
151 /* maj */ CDEV_MAJOR,
152 /* dump */ nodump,
153 /* psize */ nopsize,
154 /* flags */ 0,
155};
156
157static void mseintr(void *);
158static timeout_t msetimeout;
159
160/* Flags */
161#define MSESC_OPEN 0x1
162#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 111748 2003-03-02 16:54:40Z des $
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 /* open */ mseopen,
143 /* close */ mseclose,
144 /* read */ mseread,
145 /* write */ nowrite,
146 /* ioctl */ mseioctl,
147 /* poll */ msepoll,
148 /* mmap */ nommap,
149 /* strategy */ nostrategy,
150 /* name */ "mse",
151 /* maj */ CDEV_MAJOR,
152 /* dump */ nodump,
153 /* psize */ nopsize,
154 /* flags */ 0,
155};
156
157static void mseintr(void *);
158static timeout_t msetimeout;
159
160/* Flags */
161#define MSESC_OPEN 0x1
162#define MSESC_WANT 0x2
--- 759 unchanged lines hidden ---