1.\" $OpenBSD: lpt.4,v 1.7 2007/06/20 17:44:07 kettenis 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: June 20 2007 $ 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.Cd "lpt0 at ssio?" 46.Pp 47.Cd "# sparc64" 48.Cd "lpt* at apio?" 49.Cd "lpt* at ebus?" 50.Sh DESCRIPTION 51This driver provides access to parallel ports. 52.Pp 53The highest bit in the minor (bit 7, or add 128) number selects 54whether to do polling or wait for interrupts. 55If no IRQ is specified in the kernel configuration, or the IRQ specified is 56not available at attach time, only the polling device may be used. 57.Pp 58The next lower bit (bit 6, or add 64) indicates the driver should 59avoid initializing the printer. 60.Pp 61The next lower bit (bit 5, or add 32) requests that the driver do 62automatic LF generation when printing CRs. 63.Sh FILES 64.Bl -tag -width /dev/lpt0 -compact 65.It Pa /dev/lpt0 66first interrupt-driven parallel port device 67.It Pa /dev/lpa0 68first polled parallel port device 69.El 70.Sh SEE ALSO 71.Xr intro 4 , 72.Xr isa 4 , 73.Xr ulpt 4 74