psm.4 (43230) | psm.4 (43725) |
---|---|
1.\" 2.\" Copyright (c) 1997 3.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 1997 3.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 10 unchanged lines hidden (view full) --- 19.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" |
27.\" $Id: psm.4,v 1.13 1998/10/22 14:36:55 bde Exp $ | 27.\" $Id: psm.4,v 1.14 1999/01/26 10:01:01 yokota Exp $ |
28.\" | 28.\" |
29.Dd December 3, 1997 | 29.Dd January 30, 1999 |
30.Dt PSM 4 i386 31.Os FreeBSD 32.Sh NAME 33.Nm psm 34.Nd 35PS/2 mouse style pointing device driver 36.Sh SYNOPSIS 37.Cd "options" \&"PSM_HOOKAPM\&" 38.Cd "options" \&"PSM_RESETAFTERSUSPEND\&" 39.Cd "options" \&"KBD_RESETDELAY=N\&" 40.Cd "options" \&"KBD_MAXWAIT=N\&" 41.Cd "options" \&"PSM_DEBUG=N\&" 42.Cd "options" \&"KBDIO_DEBUG=N\&" | 30.Dt PSM 4 i386 31.Os FreeBSD 32.Sh NAME 33.Nm psm 34.Nd 35PS/2 mouse style pointing device driver 36.Sh SYNOPSIS 37.Cd "options" \&"PSM_HOOKAPM\&" 38.Cd "options" \&"PSM_RESETAFTERSUSPEND\&" 39.Cd "options" \&"KBD_RESETDELAY=N\&" 40.Cd "options" \&"KBD_MAXWAIT=N\&" 41.Cd "options" \&"PSM_DEBUG=N\&" 42.Cd "options" \&"KBDIO_DEBUG=N\&" |
43.Cd "device psm0 at isa? port IO_KBD conflicts tty irq 12" | 43.Cd "device psm0 at isa? tty irq 12" |
44.Sh DESCRIPTION 45The 46.Nm 47driver provides support for the PS/2 mouse style pointing device. 48Currently there can be only one 49.Nm 50device node in the system. | 44.Sh DESCRIPTION 45The 46.Nm 47driver provides support for the PS/2 mouse style pointing device. 48Currently there can be only one 49.Nm 50device node in the system. |
51.Em port IO_KBD 52and 53.Em conflicts 54are required, 55as the PS/2 mouse port is located 56at the auxiliary port of the keyboard controller; the 57.Nm 58driver has to share the same I/O ports with the keyboard driver. 59Note also that there is currently no provision of changing the | 51As the PS/2 mouse port is located 52at the auxiliary port of the keyboard controller, 53the keyboard controller driver, 54.Nm atkbdc , 55must also be configured in the kernel. 56Note that there is currently no provision of changing the |
60.Em irq 61number. 62.Pp 63Basic PS/2 style pointing device has two or three buttons. 64Some devices may have a roller or a wheel and/or additional buttons. 65.Ss Device Resolution 66The PS/2 style pointing device usually has several grades of resolution, 67that is, sensitivity of movement. They are typically 25, 50, 100 and 200 --- 524 unchanged lines hidden (view full) --- 592.It Dv MOUSE_GETSTATE Ar mousestatus_t *status 593The command returns the current state of buttons and 594movement counts as described in 595.Xr mouse 4 . 596.El 597.Sh FILES 598.Bl -tag -width /dev/npsm0 -compact 599.It Pa /dev/psm0 | 57.Em irq 58number. 59.Pp 60Basic PS/2 style pointing device has two or three buttons. 61Some devices may have a roller or a wheel and/or additional buttons. 62.Ss Device Resolution 63The PS/2 style pointing device usually has several grades of resolution, 64that is, sensitivity of movement. They are typically 25, 50, 100 and 200 --- 524 unchanged lines hidden (view full) --- 589.It Dv MOUSE_GETSTATE Ar mousestatus_t *status 590The command returns the current state of buttons and 591movement counts as described in 592.Xr mouse 4 . 593.El 594.Sh FILES 595.Bl -tag -width /dev/npsm0 -compact 596.It Pa /dev/psm0 |
600`non-blocking' device node in the system without 601.Em devfs , 602`blocking' under | 597`non-blocking' device node 598.It Pa /dev/bpsm0 599`blocking' device node under |
603.Em devfs . | 600.Em devfs . |
604.It Pa /dev/npsm0 605`non-blocking' device node under 606.Em devfs . | |
607.El 608.Sh EXAMPLE 609.Dl "options" \&"PSM_HOOKAPM\&" | 601.El 602.Sh EXAMPLE 603.Dl "options" \&"PSM_HOOKAPM\&" |
610.Dl "device psm0 at isa? port IO_KBD conflicts tty irq 12" | 604.Dl "device psm0 at isa? tty irq 12" |
611.Pp 612Add the 613.Nm 614driver to the kernel with the optional code to stimulate the pointing device 615after the `resume' event. 616.Pp | 605.Pp 606Add the 607.Nm 608driver to the kernel with the optional code to stimulate the pointing device 609after the `resume' event. 610.Pp |
617.Dl "device psm0 at isa? port IO_KBD conflicts tty flags 0x024 irq 12" | 611.Dl "device psm0 at isa? tty flags 0x024 irq 12" |
618.Pp 619Set the device resolution high (4) and the acceleration factor to 2. 620.Sh DIAGNOSTICS 621.Pp 622At debug level 0, little information is logged except for the following 623line during boot process: 624.Bd -literal -offset indent 625psm0: device ID X --- 13 unchanged lines hidden (view full) --- 639.Bd -literal -offset indent 640psm0: current command byte:xxxx 641kbdio: TEST_AUX_PORT status:0000 642kbdio: RESET_AUX return code:00fa 643kbdio: RESET_AUX status:00aa 644kbdio: RESET_AUX ID:0000 645[...] 646psm: status 00 02 64 | 612.Pp 613Set the device resolution high (4) and the acceleration factor to 2. 614.Sh DIAGNOSTICS 615.Pp 616At debug level 0, little information is logged except for the following 617line during boot process: 618.Bd -literal -offset indent 619psm0: device ID X --- 13 unchanged lines hidden (view full) --- 633.Bd -literal -offset indent 634psm0: current command byte:xxxx 635kbdio: TEST_AUX_PORT status:0000 636kbdio: RESET_AUX return code:00fa 637kbdio: RESET_AUX status:00aa 638kbdio: RESET_AUX ID:0000 639[...] 640psm: status 00 02 64 |
647psm0 at 0x60-0x64 irq 12 on motherboard | 641psm0 irq 12 on isa |
648psm0: model AAAA, device ID X, N buttons 649psm0: config:00000www, flags:0000uuuu, packet size:M 650psm0: syncmask:xx, syncbits:yy 651.Ed 652.Pp 653The first line shows the command byte value of the keyboard 654controller just before the auxiliary port is probed. 655It usually is 4D, 45, 47 or 65, depending on how the motherboard BIOS --- 82 unchanged lines hidden (view full) --- 738Clicking any button without moving the mouse may also work. 739.Sh BUGS 740The ioctl command 741.Dv MOUSEIOCREAD 742has been removed. It was never functional anyway. 743.Sh SEE ALSO 744.Xr ioctl 2 , 745.Xr syslog 3 , | 642psm0: model AAAA, device ID X, N buttons 643psm0: config:00000www, flags:0000uuuu, packet size:M 644psm0: syncmask:xx, syncbits:yy 645.Ed 646.Pp 647The first line shows the command byte value of the keyboard 648controller just before the auxiliary port is probed. 649It usually is 4D, 45, 47 or 65, depending on how the motherboard BIOS --- 82 unchanged lines hidden (view full) --- 732Clicking any button without moving the mouse may also work. 733.Sh BUGS 734The ioctl command 735.Dv MOUSEIOCREAD 736has been removed. It was never functional anyway. 737.Sh SEE ALSO 738.Xr ioctl 2 , 739.Xr syslog 3 , |
740.Xr atkbdc 4 , |
|
746.Xr mouse 4 , 747.Xr mse 4 , 748.Xr sysmouse 4 , 749.Xr moused 8 , 750.Xr syslogd 8 751.\".Sh HISTORY 752.Sh AUTHORS 753The --- 14 unchanged lines hidden --- | 741.Xr mouse 4 , 742.Xr mse 4 , 743.Xr sysmouse 4 , 744.Xr moused 8 , 745.Xr syslogd 8 746.\".Sh HISTORY 747.Sh AUTHORS 748The --- 14 unchanged lines hidden --- |