Subject: Re: Serial port strangeness?
To: John Klos <john@ziaspace.com>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 07/20/2007 18:59:06
On Fri, Jul 20, 2007 at 05:46:03PM +0000, John Klos wrote:
> Hello,
> 
> On a rather generic ECS motherboard with an AMD processor (64 bit capable, 
> but I'm running i386), I'm seeing strange port configurations. This is 
> with NetBSD-4 from yesterday:
> 
> com3 at acpi0 (PNP0501-1)
> com3: io 0x3f8-0x3ff irq 4
> com3: ns16550a, working fifo
> lpt3 at acpi0 (PNP0401-1)
> lpt3: io 0x378-0x37f,0x778-0x77b irq 7 drq 3
> 
> There are no other com or lpt ports.
> 
> Normally, I wouldn't care what the "com" number is, because it always 
> starts at tty00. However, I can't use tty00 - my serial port shows up as 
> tty03. 0x3f8 has always been the first com port...
> 
> Is this a bug? An accident? A "feature"?

A feature :-)
com[0-2] are explicitely matched at isa? but you are using an ACPI kernel
and they are found there first (and ordered by the bios acpi tables).

(The 'at isa' entries fail because the ioaddr is already in use.)

Unfortunately the acpi code can't be made to match on an ioaddr....

	David

-- 
David Laight: david@l8s.co.uk