xref: /titanic_51/usr/src/uts/common/sys/mouse.h (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 /*	Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.	*/
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 #ifndef	_SYS_MOUSE_H
31 #define	_SYS_MOUSE_H
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 /*
38  * AT&T 320 (PS/2 style) Mouse Commands
39  */
40 #define	MSERESET	0xff	/* reset mouse */
41 #define	MSERESEND	0xfe	/* resend last data stream */
42 #define	MSEERROR	0xfc	/* error */
43 #define	MSESETDEF	0xf6	/* set default status */
44 #define	MSEOFF		0xf5	/* disable mouse */
45 #define	MSEON		0xf4	/* enable mouse */
46 #define	MSECHGMOD	0xf3	/* set sampling rate and/or button mode */
47 #define	MSEGETDEV	0xf2	/* read device type */
48 #define	MSESPROMPT	0xf0	/* set prompt mode (resets stream mode) */
49 #define	MSEECHON	0xee	/* set echo mode */
50 #define	MSEECHOFF	0xec	/* reset echo mode */
51 #define	MSEREPORT	0xeb	/* read mouse report */
52 #define	MSESTREAM	0xea	/* set Incremental Stream Mode */
53 #define	MSESTATREQ	0xe9	/* status request */
54 #define	MSESETRES	0xe8	/* set counts per mm. resolution */
55 #define	MSESCALE2	0xe7	/* set 2:1 scaling */
56 #define	MSESCALE1	0xe6	/* set 1:1 scaling */
57 
58 #define	MSE_ACK		0xFA	/* Acknowledgement byte from 8042 */
59 
60 /* Post-reset return values */
61 #define	MSE_AA		0xaa
62 #define	MSE_00		0x00
63 
64 
65 #ifdef	__cplusplus
66 }
67 #endif
68 
69 #endif	/* _SYS_MOUSE_H */
70