PMS(4)                OpenBSD Programmer's Manual (Alpha)               PMS(4)

NAME
     pms - PS/2 auxiliary port mouse driver

SYNOPSIS
     pms0 at pcppi?

DESCRIPTION
     This driver provides an interface to a PS/2 auxiliary port mice.  The
     driver offers two modes of operation, both a raw and the old style trans-
     lated input stream.  The translating portion of the driver provides Bus-
     Mouse codes; in raw mode no translations are performed.  The pms driver
     provides three ioctls for getting mouse status and changing modes.  They
     are defined in the following include:

           #include <machine/mouse.h>

     The MOUSEIOCREAD ioctl is used to read the current mouse stats, and takes
     the struct mouseinfo as an argument to store the data in.

     The MOUSEIOCSRAW ioctl puts the device into raw mode, if it is not al-
     ready, and the MOUSEIOCSCOOKED ioctl puts it into translated (or cooked)
     mode.  If the mode of the pms device driver changes, all pending but not
     yet read input is flushed.

FILES
     /dev/psm0                         PS/2 mouse device file, defaulting to
                                       raw mode
     /dev/pms0                         PS/2 mouse device file, defaulting to
                                       translating mode

OpenBSD 3.0                    October 12, 1996                              1
