xref: /openbsd-src/share/man/man4/ast.4 (revision 8500990981f885cbe5e6a4958549cacc238b5ae6)
1.\"	$OpenBSD: ast.4,v 1.9 2003/08/31 19:53:42 jmc Exp $
2.\"	$NetBSD: ast.4,v 1.7 1996/03/16 00:07:07 thorpej Exp $
3.\"
4.\" Copyright (c) 1990, 1991 The Regents of the University of California.
5.\" All rights reserved.
6.\"
7.\" This code is derived from software contributed to Berkeley by
8.\" the Systems Programming Group of the University of Utah Computer
9.\" Science Department.
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright
14.\"    notice, this list of conditions and the following disclaimer.
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\"    notice, this list of conditions and the following disclaimer in the
17.\"    documentation and/or other materials provided with the distribution.
18.\" 3. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     from: @(#)dca.4	5.2 (Berkeley) 3/27/91
35.\"	from: Id: com.4,v 1.1 1993/08/06 11:19:07 cgd Exp
36.\"
37.Dd March 30, 1994
38.Dt AST 4
39.Os
40.Sh NAME
41.Nm ast
42.Nd multiplexing serial communications interface
43.Sh SYNOPSIS
44.Cd "ast0 at isa? port 0x1a0 irq 5"
45.Cd "ast1 at isa? port 0x2a0 irq 6"
46.Cd "com* at ast? slave ?"
47or
48.Cd "pccom* at ast? slave ?"
49.Sh DESCRIPTION
50The
51.Nm
52driver provides support for boards that multiplex together up to four
53.Tn EIA
54.Tn RS-232C
55.Pf ( Tn CCITT
56.Tn V.28 )
57communications interfaces.
58Apparently the original master of hardware using this multiplexing protocol
59was AST.
60.Pp
61Each
62.Nm
63device is the master device for up to four
64.Nm com
65or
66.Nm pccom
67devices.
68The kernel configuration specifies these
69.Nm com
70devices as slave devices of the
71.Nm
72device, as shown in
73.Sx SYNOPSIS .
74The slave ID given for each
75.Nm com
76device determines which bit in the interrupt multiplexing register is
77tested to find interrupts for that device.
78The
79.Tn port
80specification for the
81.Nm
82device is used to compute the base addresses for the
83.Nm com
84subdevices and the port for the interrupt multiplexing register.
85.Pp
86On a real AST card, the jumpers are as follows:
87.Bl -tag -width xxxxx
88.It SW1-1
89Turn ON for irq 2.
90Default is OFF.
91.It SW1-2
92Turn ON for irq 3.
93Default is OFF.
94.It SW1-3
95Turn ON for irq 4.
96Default is OFF.
97.It SW2-1
98Turn ON for irq 5.
99This is ON for the first card, OFF otherwise.
100.It SW2-2
101Turn ON for irq 6.
102This is ON for the second card, OFF otherwise.
103.It SW2-3
104Turn ON for irq 7.
105Default is OFF.
106.It SW3-1
107.Dq Compatible mode .
108The
109.Nm ast
110driver needs extended mode, so leave this OFF.
111.It SW3-2
112IO Address.
113In extended mode, this should be OFF for the first card at
1140x1a0-0x1a7 and ON for the second card at 0x2a0-0x2a7.
115.It SW3-3
116Interrupt sharing.
117Default is OFF.
118.It SW3-4
119Reserved, must be OFF.
120.El
121.Sh FILES
122.Bl -tag -width Pa
123.It Pa /dev/tty0?
124.El
125.Sh SEE ALSO
126.Xr com 4 ,
127.Xr intro 4 ,
128.Xr isa 4
129.Sh HISTORY
130The
131.Nm
132driver was written by Roland McGrath and placed into the public
133domain.
134