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