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