Deleted Added
full compact
mse.c (111748) mse.c (111815)
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 *
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 $
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 = {
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,
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,
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 ---
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 ---