xref: /illumos-gate/usr/src/uts/common/sys/mouse.h (revision b4203d75)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
515bfc6b7SSeth Goldberg  * Common Development and Distribution License (the "License").
615bfc6b7SSeth Goldberg  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
2215bfc6b7SSeth Goldberg  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2315bfc6b7SSeth Goldberg  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate /*	Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.	*/
277c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T	*/
28*b4203d75SMarcel Telka /*	  All Rights Reserved	*/
297c478bd9Sstevel@tonic-gate 
307c478bd9Sstevel@tonic-gate #ifndef	_SYS_MOUSE_H
317c478bd9Sstevel@tonic-gate #define	_SYS_MOUSE_H
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
347c478bd9Sstevel@tonic-gate extern "C" {
357c478bd9Sstevel@tonic-gate #endif
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate /*
387c478bd9Sstevel@tonic-gate  * AT&T 320 (PS/2 style) Mouse Commands
397c478bd9Sstevel@tonic-gate  */
407c478bd9Sstevel@tonic-gate #define	MSERESET	0xff	/* reset mouse */
417c478bd9Sstevel@tonic-gate #define	MSERESEND	0xfe	/* resend last data stream */
4215bfc6b7SSeth Goldberg #define	MSEERROR	0xfc	/* error */
437c478bd9Sstevel@tonic-gate #define	MSESETDEF	0xf6	/* set default status */
447c478bd9Sstevel@tonic-gate #define	MSEOFF		0xf5	/* disable mouse */
457c478bd9Sstevel@tonic-gate #define	MSEON		0xf4	/* enable mouse */
467c478bd9Sstevel@tonic-gate #define	MSECHGMOD	0xf3	/* set sampling rate and/or button mode */
477c478bd9Sstevel@tonic-gate #define	MSEGETDEV	0xf2	/* read device type */
487c478bd9Sstevel@tonic-gate #define	MSESPROMPT	0xf0	/* set prompt mode (resets stream mode) */
497c478bd9Sstevel@tonic-gate #define	MSEECHON	0xee	/* set echo mode */
507c478bd9Sstevel@tonic-gate #define	MSEECHOFF	0xec	/* reset echo mode */
517c478bd9Sstevel@tonic-gate #define	MSEREPORT	0xeb	/* read mouse report */
527c478bd9Sstevel@tonic-gate #define	MSESTREAM	0xea	/* set Incremental Stream Mode */
537c478bd9Sstevel@tonic-gate #define	MSESTATREQ	0xe9	/* status request */
547c478bd9Sstevel@tonic-gate #define	MSESETRES	0xe8	/* set counts per mm. resolution */
557c478bd9Sstevel@tonic-gate #define	MSESCALE2	0xe7	/* set 2:1 scaling */
567c478bd9Sstevel@tonic-gate #define	MSESCALE1	0xe6	/* set 1:1 scaling */
577c478bd9Sstevel@tonic-gate 
587c478bd9Sstevel@tonic-gate #define	MSE_ACK		0xFA	/* Acknowledgement byte from 8042 */
597c478bd9Sstevel@tonic-gate 
6015bfc6b7SSeth Goldberg /* Post-reset return values */
6115bfc6b7SSeth Goldberg #define	MSE_AA		0xaa
6215bfc6b7SSeth Goldberg #define	MSE_00		0x00
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
667c478bd9Sstevel@tonic-gate }
677c478bd9Sstevel@tonic-gate #endif
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate #endif	/* _SYS_MOUSE_H */
70