xref: /netbsd-src/share/man/man4/man4.hppa/gsckbc.4 (revision 549aa5640fd486189db2ca05c6579e863feab712)
1.\"	$NetBSD: gsckbc.4,v 1.3 2022/06/13 17:26:34 andvar Exp $
2.\"
3.\" Copyright (c) 2002 Jochen Kunz.
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:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. The name of Jochen Kunz may not be used to endorse or promote
15.\"    products derived from this software without specific prior
16.\"    written permission.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY JOCHEN KUNZ
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL JOCHEN KUNZ
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE.
29.Dd February 17, 2017
30.Dt GSCKBC 4 hppa
31.Os
32.Sh NAME
33.Nm gsckbc
34.Nd GSC PS/2 keyboard and mouse interface
35.Sh SYNOPSIS
36.Cd "gsckbc* at gsc?"
37.Cd "pckbd*  at gsckbc?"
38.Cd "pms*    at gsckbc?"
39.Sh DESCRIPTION
40The
41.Nm
42device is a machine dependent front end to the
43.Xr pckbport 9
44interface.
45It attaches to the GSC PS/2 keyboard and mouse interface found in LASI chips.
46.Sh DIAGNOSTICS
47.Bl -diag
48.It "gsckbc_attach: can't map I/O space"
49The driver was not able to map the device registers during attachment.
50The device will not be usable.
51.It "can't find master device"
52An error occurred during attachment of the keyboard port so the mouse port
53can't be attached too.
54.El
55.Sh SEE ALSO
56.Xr hppa/gsc 4 ,
57.Xr hppa/intro 4 ,
58.Xr hppa/io 4 ,
59.Xr hppa/lasi 4 ,
60.Xr pckbport 9
61.Sh HISTORY
62The
63.Nm
64driver appeared in
65.Nx 2.0 .
66.Sh AUTHORS
67.An Jochen Kunz
68.Sh BUGS
69Actually the two PS/2 ports are a single device and share a single interrupt.
70The firmware lists them as individual devices in the firmware device tree.
71This illusion is kept to map the firmware device tree as close as possible
72to the kernel device tree.
73The first device is called master, gets the interrupt and the other is the
74slave.
75Assumption: Master attaches first, gets the interrupt and has lower HPA.
76So it is important that the master device, usually the keyboard port,
77attaches first to make the slave, usually the mouse port, usable.
78