Annotation of sys/arch/vax/dec/vsmsvar.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: vsmsvar.h,v 1.1 2006/08/27 16:52:15 miod Exp $ */
2: /*
3: * Copyright (c) 1992, 1993
4: * The Regents of the University of California. All rights reserved.
5: *
6: * This software was developed by the Computer Systems Engineering group
7: * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
8: * contributed to Berkeley.
9: *
10: * All advertising materials mentioning features or use of this software
11: * must display the following acknowledgement:
12: * This product includes software developed by the University of
13: * California, Lawrence Berkeley Laboratory.
14: *
15: * Redistribution and use in source and binary forms, with or without
16: * modification, are permitted provided that the following conditions
17: * are met:
18: * 1. Redistributions of source code must retain the above copyright
19: * notice, this list of conditions and the following disclaimer.
20: * 2. Redistributions in binary form must reproduce the above copyright
21: * notice, this list of conditions and the following disclaimer in the
22: * documentation and/or other materials provided with the distribution.
23: * 3. Neither the name of the University nor the names of its contributors
24: * may be used to endorse or promote products derived from this software
25: * without specific prior written permission.
26: *
27: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37: * SUCH DAMAGE.
38: *
39: * @(#)ms.c 8.1 (Berkeley) 6/11/93
40: */
41:
42: /*
43: * Command characters for the mouse.
44: */
45: #define MOUSE_SELF_TEST 'T'
46: #define MOUSE_INCREMENTAL 'R'
47:
48: /*
49: * Mouse output bits.
50: *
51: * MOUSE_START_FRAME Start of report frame bit.
52: * MOUSE_X_SIGN Sign bit for X.
53: * MOUSE_Y_SIGN Sign bit for Y.
54: * MOUSE_X_OFFSET X offset to start cursor at.
55: * MOUSE_Y_OFFSET Y offset to start cursor at.
56: */
57: #define MOUSE_START_FRAME 0x80
58: #define MOUSE_X_SIGN 0x10
59: #define MOUSE_Y_SIGN 0x08
60:
61: /*
62: * Definitions for mouse buttons
63: */
64: #define RIGHT_BUTTON 0x01
65: #define MIDDLE_BUTTON 0x02
66: #define LEFT_BUTTON 0x04
67:
68: struct lkms_softc { /* driver status information */
69: struct device dzms_dev; /* required first: base device */
70:
71: int sc_enabled; /* input enabled? */
72: int sc_selftest;
73:
74: int inputstate;
75: u_int buttons;
76: int dx, dy;
77:
78: struct device *sc_wsmousedev;
79: };
80:
81: int lkms_ioctl(void *, u_long, caddr_t, int, struct proc *);
82: int lkms_input(void *, int);
CVSweb