xref: /openbsd-src/share/man/man4/lpt.4 (revision daf88648c0e349d5c02e1504293082072c981640)
1.\"	$OpenBSD: lpt.4,v 1.5 2002/12/31 16:22:26 miod Exp $
2.\"
3.\" Copyright (c) 1993 Christopher G. Demetriou
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. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"      This product includes software developed by Christopher G. Demetriou.
17.\" 3. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30.\"
31.Dd August 6, 1993
32.Dt LPT 4
33.Os
34.Sh NAME
35.Nm lpt
36.Nd parallel port driver
37.Sh SYNOPSIS
38.Cd "# alpha/i386"
39.Cd "lpt0 at isa? port 0x378 irq 7"
40.Cd "lpt1 at isa? port 0x278"
41.Cd "lpt2 at isa? port 0x3bc"
42.Pp
43.Cd "# hppa"
44.Cd "lpt0 at gsc? irq 7"
45.Pp
46.Cd "# sparc64"
47.Cd "lpt* at apio?"
48.Cd "lpt* at ebus?"
49.Sh DESCRIPTION
50This driver provides access to parallel ports.
51.Pp
52The highest bit in the minor (bit 7, or add 128) number selects
53whether to do polling or wait for interrupts.
54If no IRQ is specified in the kernel configuration, or the IRQ specified is
55not available at attach time, only the polling device may be used.
56.Pp
57The next lower bit (bit 6, or add 64) indicates the driver should
58avoid initializing the printer.
59.Pp
60The next lower bit (bit 5, or add 32) requests that the driver do
61automatic LF generation when printing CRs.
62.Sh FILES
63.Bl -tag -width /dev/lpt0 -compact
64.It Pa /dev/lpt0
65first interrupt-driven parallel port device
66.It Pa /dev/lpa0
67first polled parallel port device
68.El
69.Sh SEE ALSO
70.Xr intro 4 ,
71.Xr isa 4 ,
72.Xr ulpt 4
73