1822Ssethg /* 2822Ssethg * CDDL HEADER START 3822Ssethg * 4822Ssethg * The contents of this file are subject to the terms of the 5*10087SSeth.Goldberg@Sun.COM * Common Development and Distribution License (the "License"). 6*10087SSeth.Goldberg@Sun.COM * You may not use this file except in compliance with the License. 7822Ssethg * 8822Ssethg * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9822Ssethg * or http://www.opensolaris.org/os/licensing. 10822Ssethg * See the License for the specific language governing permissions 11822Ssethg * and limitations under the License. 12822Ssethg * 13822Ssethg * When distributing Covered Code, include this CDDL HEADER in each 14822Ssethg * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15822Ssethg * If applicable, add the following below this CDDL HEADER, with the 16822Ssethg * fields enclosed by brackets "[]" replaced with your own identifying 17822Ssethg * information: Portions Copyright [yyyy] [name of copyright owner] 18822Ssethg * 19822Ssethg * CDDL HEADER END 20822Ssethg */ 21822Ssethg /* 22*10087SSeth.Goldberg@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10087SSeth.Goldberg@Sun.COM * Use is subject to license terms. 24822Ssethg */ 25822Ssethg 26822Ssethg /* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */ 27822Ssethg /* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */ 28822Ssethg /* All Rights Reserved */ 29822Ssethg 30822Ssethg #ifndef _SYS_MOUSE_H 31822Ssethg #define _SYS_MOUSE_H 32822Ssethg 33822Ssethg #ifdef __cplusplus 34822Ssethg extern "C" { 35822Ssethg #endif 36822Ssethg 37822Ssethg /* 38822Ssethg * AT&T 320 (PS/2 style) Mouse Commands 39822Ssethg */ 40822Ssethg #define MSERESET 0xff /* reset mouse */ 41822Ssethg #define MSERESEND 0xfe /* resend last data stream */ 42*10087SSeth.Goldberg@Sun.COM #define MSEERROR 0xfc /* error */ 43822Ssethg #define MSESETDEF 0xf6 /* set default status */ 44822Ssethg #define MSEOFF 0xf5 /* disable mouse */ 45822Ssethg #define MSEON 0xf4 /* enable mouse */ 46822Ssethg #define MSECHGMOD 0xf3 /* set sampling rate and/or button mode */ 47822Ssethg #define MSEGETDEV 0xf2 /* read device type */ 48822Ssethg #define MSESPROMPT 0xf0 /* set prompt mode (resets stream mode) */ 49822Ssethg #define MSEECHON 0xee /* set echo mode */ 50822Ssethg #define MSEECHOFF 0xec /* reset echo mode */ 51822Ssethg #define MSEREPORT 0xeb /* read mouse report */ 52822Ssethg #define MSESTREAM 0xea /* set Incremental Stream Mode */ 53822Ssethg #define MSESTATREQ 0xe9 /* status request */ 54822Ssethg #define MSESETRES 0xe8 /* set counts per mm. resolution */ 55822Ssethg #define MSESCALE2 0xe7 /* set 2:1 scaling */ 56822Ssethg #define MSESCALE1 0xe6 /* set 1:1 scaling */ 57822Ssethg 58822Ssethg #define MSE_ACK 0xFA /* Acknowledgement byte from 8042 */ 59822Ssethg 60*10087SSeth.Goldberg@Sun.COM /* Post-reset return values */ 61*10087SSeth.Goldberg@Sun.COM #define MSE_AA 0xaa 62*10087SSeth.Goldberg@Sun.COM #define MSE_00 0x00 63822Ssethg 64822Ssethg 65822Ssethg #ifdef __cplusplus 66822Ssethg } 67822Ssethg #endif 68822Ssethg 69822Ssethg #endif /* _SYS_MOUSE_H */ 70