1996-12-03 21:16:35 +03:00
|
|
|
.\" $NetBSD: pms.4,v 1.8 1996/12/03 18:16:35 perry Exp $
|
1993-08-06 14:10:55 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1993 Christopher G. Demetriou
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Christopher G. Demetriou.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
1994-01-29 04:43:03 +03:00
|
|
|
.\" derived from this software without specific prior written permission
|
1993-08-06 14:10:55 +04:00
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd August 6, 1993
|
|
|
|
.Dt PMS 4 i386
|
|
|
|
.Os NetBSD 0.8a
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pms
|
|
|
|
.Nd
|
1993-10-31 01:20:11 +03:00
|
|
|
PS/2 auxiliary port mouse driver
|
1993-08-06 14:10:55 +04:00
|
|
|
.Sh SYNOPSIS
|
1996-10-15 23:07:37 +04:00
|
|
|
.Cd "pms0 at pckbd? irq 12
|
1993-08-06 14:10:55 +04:00
|
|
|
.Sh DESCRIPTION
|
1996-10-15 23:07:37 +04:00
|
|
|
This driver provides an interface to a PS/2 auxiliary port mice. The driver
|
|
|
|
internally converts the PS/2 mouse output into the busmouse protocol.
|
|
|
|
.Pp
|
|
|
|
Information can be retrieved from the driver using an ioctl() call or
|
|
|
|
by reading the device directly using read().
|
|
|
|
.Pp
|
|
|
|
The MOUSEIOCREAD ioctl, found in machine/mouse.h, returns a struct mouseinfo.
|
|
|
|
.Pp
|
|
|
|
When reading the mouse device directly, each change of button state or
|
1996-11-12 22:27:29 +03:00
|
|
|
mouse movement generates a five byte event. The format of this message
|
|
|
|
is described in
|
1996-12-03 21:16:35 +03:00
|
|
|
.Xr busmouse 4
|
1993-08-06 14:10:55 +04:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width Pa -compact
|
|
|
|
.It Pa /dev/pms0
|
1993-10-31 01:20:11 +03:00
|
|
|
PS/2 mouse device file
|
1993-08-06 14:10:55 +04:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1996-10-15 23:07:37 +04:00
|
|
|
.Xr ioctl 2 ,
|
1993-08-06 14:10:55 +04:00
|
|
|
.Xr lms 4 ,
|
1996-11-12 22:27:29 +03:00
|
|
|
.Xr mms 4 ,
|
|
|
|
.Xr busmouse 4
|