*BSD News Article 28727


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:2150 comp.os.386bsd.questions:9425
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!cs.umd.edu!mojo.eng.umd.edu!harmonic.eng.umd.edu!chuckr
From: chuckr@glue.umd.edu (Charles B. Robey)
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Subject: Re: FreeBSD doesn't recognize my printer
Followup-To: comp.os.386bsd.bugs,comp.os.386bsd.questions
Date: 26 Mar 1994 16:24:07 GMT
Organization: Project GLUE, University of Maryland, College Park, MD
Lines: 55
Message-ID: <2n1nj7$2bb@mojo.eng.umd.edu>
References: <SWILDNER.94Mar25154003@channelz.GUN.de> <SWILDNER.94Mar25170208@channelz.GUN.de>
NNTP-Posting-Host: harmonic.eng.umd.edu
X-Newsreader: TIN [version 1.2 PL1]

Sascha Wildner (swildner@channelz.GUN.de) wrote:
: In article <SWILDNER.94Mar25154003@channelz.GUN.de> swildner@channelz.GUN.de (Sascha Wildner) writes:

:    I'm using FreeBSD-1.0.2 with a MIO-550 I/O Board and a NEC P2200
:    Pinwriter.

:    I have modified my kernel config the following way:

:    ----------8<----------
:    [...]
:    controller	isa0

:    device		lpa0	at isa? port "IO_LPT1" tty
:    device		lpa1	at isa? port "IO_LPT2" tty
:    device		lpt0	at isa? port "IO_LPT3" tty irq 7 vector lptintr
:    [...]
:    ---------->8----------

:    Upon startup, my system shows the following message:

:    ----------8<----------
:    FreeBSD 1.0.2 (CHANNELZ) #0: Fri Mar 25 15:29:48 MET 1994
:      root@channelz:/usr/src/sys/compile/CHANNELZ
:    CPU: i386DX (386-class CPU)
:    real mem  = 8646656
:    avail mem = 7303168
:    using 134 buffers containing 1097728 bytes of memory
:    Probing for devices on the ISA bus:
:    lpa0 not found at 0x378
:    lpa1 not found at 0x278
:    lpt0 not found at 0x3bc
:    [...]
:    ---------->8----------

:    The manual says that my parallel port is located either at 378 or 278.

: I just tried putting lpt0 at 378 but to no avail.  I also checked my
: I/O Board settings (which were correct).
I've not yet brought up FreeBSD (I'm very anxiously awaiting 1.1) but
under my existing system I noticed that, unlike DOS conventions, the
printer at 0x278 AND the printer at 0x378 both use interrupt 7.  Under
DOS one would use interrupt 5.  In fact, until I looked at my script-
generated space.c, I couldn't understand why things were working wrong.
Is this how printers are handled under FreeBSD as well?  I was lucky
on my system, and one of the two printer cards had an interrupt setting
that was independent of the IO vector setting.  If not, I'd have been
in trouble.

--
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
7608 Topton St.             |
New Carrollton, MD 20784    |
(301) 459-2316              |
----------------------------+-----------------------------------------------