diff --git a/share/man/man4/man4.sparc/Makefile b/share/man/man4/man4.sparc/Makefile index a9c6db805bcb..8c0d0dcdedc8 100644 --- a/share/man/man4/man4.sparc/Makefile +++ b/share/man/man4/man4.sparc/Makefile @@ -1,8 +1,8 @@ # from: @(#)Makefile 8.2 (Berkeley) 2/16/94 -# $Id: Makefile,v 1.5 1996/06/21 23:07:59 pk Exp $ +# $Id: Makefile,v 1.6 1996/06/22 21:35:14 pk Exp $ MAN= bwtwo.4 cgeight.4 cgfour.4 cgsix.4 cgthree.4 cgtwo.4 \ - fd.4 le.4 mem.4 openprom.4 tcx.4 + fd.4 kbd.4 le.4 mem.4 ms.4 openprom.4 tcx.4 MLINKS= mem.4 kmem.4 MLINKS= fd.4 fdc.4 MANSUBDIR=/sparc diff --git a/share/man/man4/man4.sparc/fd.4 b/share/man/man4/man4.sparc/fd.4 new file mode 100644 index 000000000000..d0ac5224c8da --- /dev/null +++ b/share/man/man4/man4.sparc/fd.4 @@ -0,0 +1,65 @@ +.\" $NetBSD: fd.4,v 1.1 1996/06/22 21:35:15 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 23, 1996 +.Dt FD 4 sparc +.Os +.Sh NAME +.Nm fd +.Nd Sparcstation floppy drive +.Sh SYNOPSIS +.Cd "fdc0 at mainbus0" Pq sun4c +.Cd "fdc0 at obio0" Pq sun4m +.Cd "fd* at fdc0" +.Sh DESCRIPTION +This is the driver for the built-in disquette station found on the +Sparcstation 1, and (optionally) other desktop Sparc systems. +.Pp +Bits +.Bq 0-4 +of the minor device number of the special files referring to this +device encode the floppy density as follows: +.Bl -tag -width indent -offset indent +.It 0 +3.5'' 1.44MB disquettes. +.It 1 +3.5'' 1.2MB disquettes. +.El +.Sh SEE ALSO +.Xr eject 1 +.Sh BUGS +This driver does not work well with Intel 82077-based controllers +.Pq which are commonly found on sun4m machines . diff --git a/share/man/man4/man4.sparc/kbd.4 b/share/man/man4/man4.sparc/kbd.4 new file mode 100644 index 000000000000..d1f53235ffcb --- /dev/null +++ b/share/man/man4/man4.sparc/kbd.4 @@ -0,0 +1,164 @@ +.\" $NetBSD: kbd.4,v 1.1 1996/06/22 21:35:16 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 22, 1996 +.Dt KBD 4 sparc +.Os +.Sh NAME +.Nm kbd +.Nd workstation keyboard +.Sh SYNOPSIS +.Cd "pseudo-device kbd" +.Sh DESCRIPTION +The +.Nm +driver provides an interface to the workstation console keyboard. +.Dq type 2 , +.Dq type 3 , +and +.Dq type 4 +keyboards are supported. All types generate keycodes encoding the +key identity and motion (up or down) as the keys are pressed and released. +The +.Nm +driver either passes the keycodes to an application as they come in, or +translates them into ASCII characters first according to a set of built-in +tables. +If the keyboard is configured as the device +to be used for system console input +.Pq see Xr openprom 4 , +it will be internally connected to the +.Pa /dev/console +device special file, which can be used as a +.Xr tty 4 +device. +The device special file +.Pa /dev/kbd +is used to get direct access to the keyboard input stream. The following +ioctl's are supported (mostly just enough to keep the X11 server going): +.Bl -tag -width KIOCSDIRECT +.It KIOCTRANS +Set translation mode. The argument is of type +.Fa "int *" , +the only value supported is +.Dv TR_UNTRANS_EVENT . +.It KIOCGTRANS +Get translation mode. The argument is of type +.Fa "int *" . +.Dv TR_UNTRANS_EVENT +is always returned. +.It KIOCGETKEY +Fill in old-style key station translation. The argument is of type +.Fa "struct okiockey *" . +.It KIOCCMD +Send a command to the keyboard. The argument is of type +.Fa "int *" , +and can have one of the following values: +.Bl -tag -width KBD_CMD_NOCLICK +.It KBD_CMD_BELL +Start the keyboard beeper. +.It KBD_CMD_NOBELL +Stop the keyboard beeper. +.It KBD_CMD_CLICK +Instruct the keyboard to make extra noise when touching keys. +.It KBD_CMD_NOCLICK +Instruct the keyboard to.. oh well.. +.El +.It KIOCTYPE +Get keyboard type. The argument is of type +.Fa "int *" , +in which one of the values +.Dv KB_SUN2 , +.Dv KB_SUN3 +or +.Dv KB_SUN4 +will be returned. +.It KIOCSDIRECT +Route the keyboard input stream through the (SunOS) compatible event module. +The argument is of type +.Fa "int *" , +a non-zero value will put the driver into +.Dq event +mode, while a value of zero will make it return to +.Dq ASCII translation +mode. +.It KIOCSKEY +Set key station translation. The argument is of type +.Fa "struct kiockey *" +.Pq see Pa /usr/include/machine/kbio.h No for more details . +.It KIOCGKEY +Get key station translation. The argument is of type +.Fa "struct kiockey *" . +.It KIOCLAYOUT +Get keyboard layout +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +in which the uninterpreted result of the +.Dv KBD_CMD_GLAYOUT +keyboard command is returned +.Po on Dv KBDUN4 +type keyboards this will be the setting of a DIP switch bank +.Pc . +.It KIOCSLED +Set LED state +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +and is the inclusive OR of the following flags: +.Pp +.Bl -tag -width LED_SCROLL_LOCK -compact +.It LED_NUM_LOCK +.It LED_COMPOSE +.It LED_SCROLL_LOCK +.It LED_CAPS_LOCK +.El +.Pp +Each of these flags turn on the LED in the obvious key. +.It KIOCSLED +Get LED state +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +in which the current LED state is returned. +.El +.Sh SEE ALSO +.Xr ms 4 +.Sh BUGS +.Nm +is hardwired to the built-in +.Em zs1 +serial port. diff --git a/share/man/man4/man4.sparc/ms.4 b/share/man/man4/man4.sparc/ms.4 new file mode 100644 index 000000000000..e43cee08ab22 --- /dev/null +++ b/share/man/man4/man4.sparc/ms.4 @@ -0,0 +1,91 @@ +.\" $NetBSD: ms.4,v 1.1 1996/06/22 21:35:17 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 22, 1996 +.Dt KBD 4 sparc +.Os +.Sh NAME +.Nm mouse +.Nd workstation mouse +.Sh SYNOPSIS +.Cd "pseudo-device mouse" +.Sh DESCRIPTION +The +.Nm +driver provides an interface to the workstation console mouse. +This +.Tn Mouse Systems +three-button device produces five-byte blobs of the form: +.Pp +.Bd -literal -offset indent +b dx dy dx dy +.Ed +.Pp +where +.Dq b +is the button state, encoded as +.Li 0x80|(~buttons) +-- there are three buttons (4=left, 2=middle, 1=right) -- +and +.Dq \&dx +and +.Dq \&dy +are X and Y delta values, none of which are in the range +.Bq Li 0x80..0x87 . +.Pp +The device special file +.Pa /dev/mouse +is used to get direct access to the mouse input stream. The following +ioctl's are supported (mostly just enough to keep the X11 server going): +.Bl -tag -width VUIDSFORMAT +.It VUIDSFORMAT +Set translation mode. The argument is of type +.Fa "int *" , +the only value supported is +.Dv VUID_FIRM_EVENT . +.It VUIDGFORMAT +Get translation mode. The argument is of type +.Fa "int *" . +.Dv VUID_FIRM_EVENT +is always returned. +.El +.Sh SEE ALSO +.Xr kbd 4 +.Sh BUGS +.Nm +is hardwired to the built-in +.Em zs1 +serial port. diff --git a/share/man/man4/man4.sun3/fd.4 b/share/man/man4/man4.sun3/fd.4 new file mode 100644 index 000000000000..d0ac5224c8da --- /dev/null +++ b/share/man/man4/man4.sun3/fd.4 @@ -0,0 +1,65 @@ +.\" $NetBSD: fd.4,v 1.1 1996/06/22 21:35:15 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 23, 1996 +.Dt FD 4 sparc +.Os +.Sh NAME +.Nm fd +.Nd Sparcstation floppy drive +.Sh SYNOPSIS +.Cd "fdc0 at mainbus0" Pq sun4c +.Cd "fdc0 at obio0" Pq sun4m +.Cd "fd* at fdc0" +.Sh DESCRIPTION +This is the driver for the built-in disquette station found on the +Sparcstation 1, and (optionally) other desktop Sparc systems. +.Pp +Bits +.Bq 0-4 +of the minor device number of the special files referring to this +device encode the floppy density as follows: +.Bl -tag -width indent -offset indent +.It 0 +3.5'' 1.44MB disquettes. +.It 1 +3.5'' 1.2MB disquettes. +.El +.Sh SEE ALSO +.Xr eject 1 +.Sh BUGS +This driver does not work well with Intel 82077-based controllers +.Pq which are commonly found on sun4m machines . diff --git a/share/man/man4/man4.sun3/kbd.4 b/share/man/man4/man4.sun3/kbd.4 new file mode 100644 index 000000000000..d1f53235ffcb --- /dev/null +++ b/share/man/man4/man4.sun3/kbd.4 @@ -0,0 +1,164 @@ +.\" $NetBSD: kbd.4,v 1.1 1996/06/22 21:35:16 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 22, 1996 +.Dt KBD 4 sparc +.Os +.Sh NAME +.Nm kbd +.Nd workstation keyboard +.Sh SYNOPSIS +.Cd "pseudo-device kbd" +.Sh DESCRIPTION +The +.Nm +driver provides an interface to the workstation console keyboard. +.Dq type 2 , +.Dq type 3 , +and +.Dq type 4 +keyboards are supported. All types generate keycodes encoding the +key identity and motion (up or down) as the keys are pressed and released. +The +.Nm +driver either passes the keycodes to an application as they come in, or +translates them into ASCII characters first according to a set of built-in +tables. +If the keyboard is configured as the device +to be used for system console input +.Pq see Xr openprom 4 , +it will be internally connected to the +.Pa /dev/console +device special file, which can be used as a +.Xr tty 4 +device. +The device special file +.Pa /dev/kbd +is used to get direct access to the keyboard input stream. The following +ioctl's are supported (mostly just enough to keep the X11 server going): +.Bl -tag -width KIOCSDIRECT +.It KIOCTRANS +Set translation mode. The argument is of type +.Fa "int *" , +the only value supported is +.Dv TR_UNTRANS_EVENT . +.It KIOCGTRANS +Get translation mode. The argument is of type +.Fa "int *" . +.Dv TR_UNTRANS_EVENT +is always returned. +.It KIOCGETKEY +Fill in old-style key station translation. The argument is of type +.Fa "struct okiockey *" . +.It KIOCCMD +Send a command to the keyboard. The argument is of type +.Fa "int *" , +and can have one of the following values: +.Bl -tag -width KBD_CMD_NOCLICK +.It KBD_CMD_BELL +Start the keyboard beeper. +.It KBD_CMD_NOBELL +Stop the keyboard beeper. +.It KBD_CMD_CLICK +Instruct the keyboard to make extra noise when touching keys. +.It KBD_CMD_NOCLICK +Instruct the keyboard to.. oh well.. +.El +.It KIOCTYPE +Get keyboard type. The argument is of type +.Fa "int *" , +in which one of the values +.Dv KB_SUN2 , +.Dv KB_SUN3 +or +.Dv KB_SUN4 +will be returned. +.It KIOCSDIRECT +Route the keyboard input stream through the (SunOS) compatible event module. +The argument is of type +.Fa "int *" , +a non-zero value will put the driver into +.Dq event +mode, while a value of zero will make it return to +.Dq ASCII translation +mode. +.It KIOCSKEY +Set key station translation. The argument is of type +.Fa "struct kiockey *" +.Pq see Pa /usr/include/machine/kbio.h No for more details . +.It KIOCGKEY +Get key station translation. The argument is of type +.Fa "struct kiockey *" . +.It KIOCLAYOUT +Get keyboard layout +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +in which the uninterpreted result of the +.Dv KBD_CMD_GLAYOUT +keyboard command is returned +.Po on Dv KBDUN4 +type keyboards this will be the setting of a DIP switch bank +.Pc . +.It KIOCSLED +Set LED state +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +and is the inclusive OR of the following flags: +.Pp +.Bl -tag -width LED_SCROLL_LOCK -compact +.It LED_NUM_LOCK +.It LED_COMPOSE +.It LED_SCROLL_LOCK +.It LED_CAPS_LOCK +.El +.Pp +Each of these flags turn on the LED in the obvious key. +.It KIOCSLED +Get LED state +.Pq Do type 4 Dc only . +The argument is of type +.Fa "int *" , +in which the current LED state is returned. +.El +.Sh SEE ALSO +.Xr ms 4 +.Sh BUGS +.Nm +is hardwired to the built-in +.Em zs1 +serial port. diff --git a/share/man/man4/man4.sun3/ms.4 b/share/man/man4/man4.sun3/ms.4 new file mode 100644 index 000000000000..e43cee08ab22 --- /dev/null +++ b/share/man/man4/man4.sun3/ms.4 @@ -0,0 +1,91 @@ +.\" $NetBSD: ms.4,v 1.1 1996/06/22 21:35:17 pk Exp $ +.\" +.\" Copyright (c) 1996 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" This code is derived from software contributed to The NetBSD Foundation +.\" by Paul Kranenburg. +.\" +.\" 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 the NetBSD +.\" Foundation, Inc. and its contributors. +.\" 4. Neither the name of The NetBSD Foundation nor the names of its +.\" contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``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 REGENTS OR CONTRIBUTORS 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 June 22, 1996 +.Dt KBD 4 sparc +.Os +.Sh NAME +.Nm mouse +.Nd workstation mouse +.Sh SYNOPSIS +.Cd "pseudo-device mouse" +.Sh DESCRIPTION +The +.Nm +driver provides an interface to the workstation console mouse. +This +.Tn Mouse Systems +three-button device produces five-byte blobs of the form: +.Pp +.Bd -literal -offset indent +b dx dy dx dy +.Ed +.Pp +where +.Dq b +is the button state, encoded as +.Li 0x80|(~buttons) +-- there are three buttons (4=left, 2=middle, 1=right) -- +and +.Dq \&dx +and +.Dq \&dy +are X and Y delta values, none of which are in the range +.Bq Li 0x80..0x87 . +.Pp +The device special file +.Pa /dev/mouse +is used to get direct access to the mouse input stream. The following +ioctl's are supported (mostly just enough to keep the X11 server going): +.Bl -tag -width VUIDSFORMAT +.It VUIDSFORMAT +Set translation mode. The argument is of type +.Fa "int *" , +the only value supported is +.Dv VUID_FIRM_EVENT . +.It VUIDGFORMAT +Get translation mode. The argument is of type +.Fa "int *" . +.Dv VUID_FIRM_EVENT +is always returned. +.El +.Sh SEE ALSO +.Xr kbd 4 +.Sh BUGS +.Nm +is hardwired to the built-in +.Em zs1 +serial port.