Bug 662 - LINT kernel config line for for parallel port doesn't work
Summary: LINT kernel config line for for parallel port doesn't work
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-08-09 01:50 UTC by David Muir Sharnoff
Modified: 1995-08-12 18:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Muir Sharnoff 1995-08-09 01:50:00 UTC
	I build my kernel configs by starting with the LINT kernel
	and cutting out everything that I don't think I'll need.  The
	GENERIC kernel doesn't have everything one might want so this
	is really the only way to do it.

	In the process, I kept the LINT kernel's config line for the
	parallel port.  It didn't probe.

Fix: 

Use the GENERIC kernel's parallel port config line instead
Comment 1 Joerg Wunsch 1995-08-09 07:58:53 UTC
As David Muir Sharnoff wrote:
> 
> 
> 	I build my kernel configs by starting with the LINT kernel
> 	and cutting out everything that I don't think I'll need.  The
> 	GENERIC kernel doesn't have everything one might want so this
> 	is really the only way to do it.
> 
> 	In the process, I kept the LINT kernel's config line for the
> 	parallel port.  It didn't probe.  

Hmm, pilot error.

j@uriah 72% fgrep LPT3 /sys/i386/isa/*
/sys/i386/isa/isa.h:#define     IO_LPT3         0x3BC           /* Monochome Adapter Printer Port */

What's ``more generic''?  The MDA printer port, or the non-MDA default
of 0x378?

IMHO, this has been chosen since the BIOS does also probe 0x3BC first,
and will assign it to LPT1: under DOS if present (so the 0x378 port
will become LPT2: then).

David, can i close this?  Other opinions?
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
Comment 2 David Muir Sharnoff 1995-08-09 18:04:50 UTC
* As David Muir Sharnoff wrote:
* > 
* > 
* > 	I build my kernel configs by starting with the LINT kernel
* > 	and cutting out everything that I don't think I'll need.  The
* > 	GENERIC kernel doesn't have everything one might want so this
* > 	is really the only way to do it.
* > 
* > 	In the process, I kept the LINT kernel's config line for the
* > 	parallel port.  It didn't probe.  
* 
* Hmm, pilot error.
* 
* j@uriah 72% fgrep LPT3 /sys/i386/isa/*
* /sys/i386/isa/isa.h:#define     IO_LPT3         0x3BC           /* Monochome Adapter Printer Port */
* 
* What's ``more generic''?  The MDA printer port, or the non-MDA default
* of 0x378?
* 
* IMHO, this has been chosen since the BIOS does also probe 0x3BC first,
* and will assign it to LPT1: under DOS if present (so the 0x378 port
* will become LPT2: then).
* 
* David, can i close this?  Other opinions?

If there is some utility in what the LINT kernel does, then I would
request that there be comment in there explaining the 
difference so that other people who build kernel configs from the
LINT kernel rather than the (rather stripped) GENERIC kernel
don't run into the same problem.

Builing from the LINT kernel isn't the right idea.  Perhaps the
kernel that is on the boot floppy should be a GENERIC.small as opposed
to a GENERIC that has all the things that someone sane might want.

-Dave
Comment 3 Joerg Wunsch 1995-08-10 07:22:41 UTC
As David Muir Sharnoff wrote:
> 
> If there is some utility in what the LINT kernel does, then I would
> request that there be comment in there explaining the 
> difference so that other people who build kernel configs from the
> LINT kernel rather than the (rather stripped) GENERIC kernel
> don't run into the same problem.

The LINT kernel should probably mention both, the `port?' and the
explicit port address variants.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
Comment 4 Joerg Wunsch 1995-08-12 18:21:25 UTC
As David Muir Sharnoff wrote:
> 
> * IMHO, this has been chosen since the BIOS does also probe 0x3BC first,
> * and will assign it to LPT1: under DOS if present (so the 0x378 port
> * will become LPT2: then).
> * 
> * David, can i close this?  Other opinions?
> 
> If there is some utility in what the LINT kernel does, then I would
> request that there be comment in there explaining the 
> difference so that other people who build kernel configs from the
> LINT kernel rather than the (rather stripped) GENERIC kernel
> don't run into the same problem.

Documented in LINT.  I'm going to close the PR now.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
Comment 5 Joerg Wunsch freebsd_committer freebsd_triage 1995-08-12 18:27:49 UTC
State Changed
From-To: open->closed

Comment added in: 

revision 1.192 
date: 1995/08/11 17:18:42;  author: joerg;  state: Exp;  lines: +8 -2 
Document two specials of the `lpt' driver: the port address can be 
specified as `?', and the irq and vector clauses may be omitted, 
forcing the port into polled mode. 

of sys/i386/conf/LINT.