2004-02-04 17:27:18 +03:00
|
|
|
.\" $NetBSD: lpt.4,v 1.8 2004/02/04 14:27:18 wiz Exp $
|
2004-01-23 18:49:41 +03:00
|
|
|
.\"
|
2004-01-20 02:22:23 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1993 Christopher G. Demetriou
|
|
|
|
.\" Copyright (c) 1994 Geoffrey M. Rehmet
|
|
|
|
.\" Copyright (c) 1999 Nicolas Souchu
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD: src/share/man/man4/lpt.4,v 1.9.2.2 2001/08/17 13:08:38 ru Exp $
|
|
|
|
.\"
|
2004-02-04 00:37:00 +03:00
|
|
|
.Dd February 3, 2004
|
2004-01-20 02:22:23 +03:00
|
|
|
.Dt LPT 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm lpt
|
|
|
|
.Nd generic printer device driver
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "lpt* at ppbus?"
|
|
|
|
.Cd options LPT_DEBUG
|
|
|
|
.Cd options LPT_VERBOSE
|
|
|
|
.Sh DESCRIPTION
|
2004-01-23 18:33:13 +03:00
|
|
|
The
|
2004-01-20 02:22:23 +03:00
|
|
|
.Nm
|
|
|
|
driver is the port of the lpt driver to the
|
|
|
|
.Xr ppbus 4
|
|
|
|
system.
|
|
|
|
.Pp
|
2004-01-28 22:54:15 +03:00
|
|
|
The purpose of this driver is to allow parallel port sharing with
|
2004-01-23 18:59:18 +03:00
|
|
|
other parallel devices.
|
2004-01-20 02:22:23 +03:00
|
|
|
See
|
|
|
|
.Xr ppbus 4
|
|
|
|
for more information about the parallel port bus system.
|
|
|
|
.Pp
|
2004-01-23 18:59:18 +03:00
|
|
|
The parallel port bus is reserved by
|
|
|
|
.Nm
|
|
|
|
when the printer device is opened and released when the device is
|
|
|
|
closed.
|
2004-01-20 02:22:23 +03:00
|
|
|
.Pp
|
2004-02-04 00:35:57 +03:00
|
|
|
Ports can be configured to use interrupts, DMA, IEEE negotiations, and IEEE
|
2004-01-23 18:59:18 +03:00
|
|
|
compliant transfer modes by using the
|
2004-01-20 02:22:23 +03:00
|
|
|
.Xr lptctl 8
|
2004-01-23 18:33:13 +03:00
|
|
|
command, with modes depending on the hardware available.
|
2004-01-20 02:22:23 +03:00
|
|
|
.Sh FILES
|
2004-02-04 00:35:57 +03:00
|
|
|
.Bl -tag -width "/dev/lpt0xxxx" -compact
|
2004-01-20 02:22:23 +03:00
|
|
|
.It Pa /dev/lpt?
|
2004-02-04 00:35:57 +03:00
|
|
|
parallel port device
|
|
|
|
.It Pa /dev/lpt?ctl
|
|
|
|
parallel port control device
|
2004-01-20 02:22:23 +03:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2004-01-23 18:33:13 +03:00
|
|
|
.Xr atppc 4 ,
|
|
|
|
.Xr ppbus 4 ,
|
2004-01-20 02:22:23 +03:00
|
|
|
.Xr lptctl 8 ,
|
2004-01-23 18:33:13 +03:00
|
|
|
.Xr mknod 8
|
2004-01-20 02:22:23 +03:00
|
|
|
.Sh HISTORY
|
2004-02-04 17:27:18 +03:00
|
|
|
This driver is derived from the
|
2004-01-23 18:59:18 +03:00
|
|
|
.Fx
|
2004-02-04 17:27:18 +03:00
|
|
|
ppbus and also from the historic
|
2004-01-23 18:59:18 +03:00
|
|
|
.Nx
|
2004-02-04 17:27:18 +03:00
|
|
|
drivers.
|
2004-02-04 00:35:57 +03:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver used to assign special meaning for some bits of device minor.
|
2004-02-04 17:27:18 +03:00
|
|
|
This was dropped in ppbus-based
|
2004-02-04 00:35:57 +03:00
|
|
|
.Nm
|
|
|
|
in favour of configuration via
|
|
|
|
.Xr lptctl 8 .
|
2004-01-20 02:22:23 +03:00
|
|
|
.Sh AUTHORS
|
2004-01-23 18:59:18 +03:00
|
|
|
This manual page was based on the
|
|
|
|
.Fx
|
|
|
|
.Nm lpt
|
|
|
|
manual page.
|
|
|
|
The information has been updated for the
|
|
|
|
.Nx
|
|
|
|
port by Gary Thorpe.
|