xref: /openbsd-src/share/man/man4/hsq.4 (revision 2b0358df1d88d06ef4139321dd05bd5e05d91eaf)
1.\"	$OpenBSD: hsq.4,v 1.16 2008/05/21 19:05:51 kettenis Exp $
2.\"	from: OpenBSD: ast.4,v 1.5 1999/07/09 13:35:43 aaron Exp
3.\"	from: NetBSD: ast.4,v 1.7 1996/03/16 00:07:07 thorpej Exp
4.\"
5.\" Copyright (c) 1990, 1991 The Regents of the University of California.
6.\" All rights reserved.
7.\"
8.\" This code is derived from software contributed to Berkeley by
9.\" the Systems Programming Group of the University of Utah Computer
10.\" Science Department.
11.\" Redistribution and use in source and binary forms, with or without
12.\" modification, are permitted provided that the following conditions
13.\" are met:
14.\" 1. Redistributions of source code must retain the above copyright
15.\"    notice, this list of conditions and the following disclaimer.
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\"    notice, this list of conditions and the following disclaimer in the
18.\"    documentation and/or other materials provided with the distribution.
19.\" 3. Neither the name of the University nor the names of its contributors
20.\"    may be used to endorse or promote products derived from this software
21.\"    without specific prior written permission.
22.\"
23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\"     from: @(#)dca.4	5.2 (Berkeley) 3/27/91
36.\"	from: Id: com.4,v 1.1 1993/08/06 11:19:07 cgd Exp
37.\"
38.Dd $Mdocdate: May 21 2008 $
39.Dt HSQ 4
40.Os
41.Sh NAME
42.Nm hsq
43.Nd multiplexing serial communications interface
44.Sh SYNOPSIS
45.Cd "hsq0 at isa? port 0x140 irq 10"
46.Cd "com* at hsq?"
47.Sh DESCRIPTION
48The
49.Nm
50driver provides support for Hostess (Comtrol Corporation,
51www.comtrol.com) and compatible boards that multiplex together
52up to four
53.Tn EIA
54.Tn RS-232C
55.Pf ( Tn CCITT
56.Tn V.28 )
57communications interfaces.
58.Pp
59Each
60.Nm
61device is the master device for up to four
62.Nm com
63devices.
64The kernel configuration specifies these
65.Nm com
66devices as slave devices of the
67.Nm
68device, as shown in
69.Sx SYNOPSIS .
70The slave ID given for each
71.Nm com
72device determines which bit in the interrupt multiplexing register is
73tested to find interrupts for that device.
74The
75.Tn port
76specification for the
77.Nm
78device is used to compute the base addresses for the
79.Nm com
80subdevices (they are equal to
81.Tn port
82+ ID * 8) and the port for the interrupt multiplexing register
83(it is equal to
84.Tn port
85+ 7).
86More technical details on how the driver works can be found in
87the big comment at the beginning of the driver's source code.
88.Pp
89Information on setup of card's configuration switches should be taken
90from Comtrol Corporation's web site, since the author wrote and tested
91the driver only with Hostess-compatible cards.
92.Sh FILES
93.Bl -tag -width Pa -compact
94.It Pa /dev/tty0?
95.It Pa /dev/cua0?
96.El
97.Sh SEE ALSO
98.Xr com 4 ,
99.Xr intro 4 ,
100.Xr isa 4
101.Sh HISTORY
102The
103.Nm
104driver was written by Denis A. Doroshenko based on the
105.Xr ast 4
106driver.
107