*BSD News Article 29118


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!hippo.ru.ac.za!Braae!g89r4222
From: csgr@cs.ru.ac.za (Geoff Rehmet)
Subject: FreeBSD1.1 BETA lpt probe (was Re: yet more FreeBSD-1.1-BETA install bugs)
Message-ID: <CnxM1o.AnL@hippo.ru.ac.za>
Sender: news@hippo.ru.ac.za (Usenet News Admin)
Reply-To: csgr@cs.ru.ac.za
Organization: Rhodes University, Grahamstown, South Africa
References: <Cn7vwo.2z0@cosy.sbg.ac.at> <2n71jn$6c3@Germany.EU.net> <JKH.94Mar29161752@sentnl.ilo.dec.com> <2nc8mk$8lf@germany.eu.net> <2o1772$6qe@pdq.coe.montana.edu>
Date: Fri, 8 Apr 1994 08:25:00 GMT
Lines: 120

In <2o1772$6qe@pdq.coe.montana.edu> nate@bsd.coe.montana.edu (Nate Williams) writes:

>In article <2nc8mk$8lf@germany.eu.net>,
>Bernard Steiner <bs@Germany.EU.net> wrote:
>>|> If you want any assurance of reaching anybody at all, the thing to
>>|> do is send to:	freebsd-bugs@freefall.cdrom.com
>>
>>Will do so quite soon now to go on ranting about the lp[at]probe().

>I think Geoff has just fixed the lpt probe problems recently.

I yes, the lpt probe code has been changed a lot, and the new probe
code is in 1.1BETA - it just isn't documented (aarrgghh - my fault).
(The man page only went in on Wednesday)

Please note: as far as I am concerned lpa is defunct, and should (well
actually, if I have my way WILL) be removed soon.  Nobody supports
lpa - don't use it!

For those still having problems with the lpt probe, here is the man 
page from FreeBSD-current for lpt(4).  (Please note that lptcontrol(1)
and the associated ioctl will only be available in FreeBSD 1.2)

My suggested generic lpt config lines would be:

device lpt0 at isa? port? tty irq 7 vector lptintr
device lpt1 at isa? port? tty
device lpt2 at isa? port? tty

(The first port will use it's interrupt, the other 2 don't)

The config which I run has the following config lines for
lpt:
device          lpt0    at isa? port "IO_LPT1" tty irq 7 vector lptintr
device          lpt1    at isa? port "IO_LPT2" tty irq 5 vector lptintr

Devices specified with port? will have their port addresses probed 
from the BIOS.

/usr/src/share/man/man4/man4.i386/lpt.4
--------------------------------------------------------------------
.\"
.\" Copyright (c) 1993 Christopher G. Demetriou
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"      This product includes software developed by Christopher G. Demetriou.
.\" 3. The name of the author may not be used to endorse or promote products
.\"    derived from this software withough specific prior written permission
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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.
.\"
.\"	from: lpt.4,v 1.1 1993/08/06 10:34:12 cgd Exp
.\"
.Dd August 28, 1993
.Dt LPT 4 i386
.Os FreeBSD
.Sh NAME
.Nm lpt
.Nd
Parallel port driver
.Sh SYNOPSIS
For interrupt-driven ports:
.Cd "device lpt0 at isa? port" \&"IO_LPT1\&" tty irq 7 vector lptintr
.Cd "device lpt1 at isa? port" \&"IO_LPT2\&" tty irq 7 vector lptintr
.Cd "device lpt2 at isa? port" \&"IO_LPT3\&" tty irq 7 vector lptintr
.sp
For BIOS-probed ports:
.Cd "device lpt0 at isa? port? tty irq 7 vector lptintr"
.sp
For polled ports:
.Cd "device lpt0 at isa? port? tty"
.Cd "device lpt1 at isa? port" \&"IO_LPT2\&" tty
.Sh DESCRIPTION
This driver provides access to parallel ports. 
.sp
The driver can be configured either to be either interrupt-driven, or 
to poll the printer.  Ports that are configured to be 
interrupt-driven can be switched to polled mode by using the
.Xr lptcontrol 1
command.
.sp
This driver replaces the functionality of the 
.Xr lpa 4
driver, which is now defunct.
.Sh FILES
.Bl -tag -width Pa -compact
.It Pa /dev/lpt0
first parallel port driver
.El
.Sh SEE ALSO
.Xr lptcontrol 1
.Sh BUGS
There are lots of them, especially in cheap parallel port implementations.
.Pp
This driver could still stand a rewrite.
--------------------------------------------------------------------
--
 Geoff Rehmet, Computer Science Department,   | ____   _ o         /\
 Rhodes University,  South Africa             |___  _-\_<,        /\/\/\
   email : csgr@cs.ru.ac.za                   |    (*)/'(*)    /\/\/\/\/\
         : geoff@neptune.ru.ac.za             |