xref: /openbsd-src/share/man/man4/lpt.4 (revision 6c8146b2a4e3a67f22e32d96e903e9ab3ef1897b)
1.\"	$OpenBSD: lpt.4,v 1.8 2017/07/07 09:15:59 fcambus 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 $Mdocdate: July 7 2017 $
32.Dt LPT 4
33.Os
34.Sh NAME
35.Nm lpt
36.Nd parallel port driver
37.Sh SYNOPSIS
38.Cd "# alpha"
39.Cd "lpt* at isa? port 0x3bc irq 7"
40.Pp
41.Cd "# amd64"
42.Cd "lpt0 at isa? port 0x378 irq 7"
43.Cd "lpt* at puc?"
44.Pp
45.Cd "# i386"
46.Cd "lpt0 at isa? port 0x378 irq 7"
47.Cd "lpt1 at isa? port 0x278"
48.Cd "lpt2 at isa? port 0x3bc"
49.Cd "lpt* at puc?"
50.Pp
51.Cd "# hppa"
52.Cd "lpt0 at gsc? irq 7"
53.Cd "lpt0 at ssio?"
54.Pp
55.Cd "# sparc64"
56.Cd "lpt* at apio?"
57.Cd "lpt* at ebus?"
58.Sh DESCRIPTION
59This driver provides access to parallel ports.
60.Pp
61The highest bit in the minor (bit 7, or add 128) number selects
62whether to do polling or wait for interrupts.
63If no IRQ is specified in the kernel configuration, or the IRQ specified is
64not available at attach time, only the polling device may be used.
65.Pp
66The next lower bit (bit 6, or add 64) indicates the driver should
67avoid initializing the printer.
68.Pp
69The next lower bit (bit 5, or add 32) requests that the driver do
70automatic LF generation when printing CRs.
71.Sh FILES
72.Bl -tag -width /dev/lpt0 -compact
73.It Pa /dev/lpt0
74first interrupt-driven parallel port device
75.It Pa /dev/lpa0
76first polled parallel port device
77.El
78.Sh SEE ALSO
79.Xr intro 4 ,
80.Xr isa 4 ,
81.Xr ulpt 4
82