Subject: Re: Removing iTE IT87xxF code from the lm(4) driver (new it(4) driver)
To: Juan RP <juan@xtrarom.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 05/08/2006 16:13:33
On Mon, May 08, 2006 at 12:08:49AM +0200, Juan RP wrote:
> On Sun, 7 May 2006 16:43:40 -0400
> Thor Lancelot Simon <tls@rek.tjls.com> wrote:
> 
> > On Sun, May 07, 2006 at 09:43:10PM +0200, Juan RP wrote:
> > > 
> > > Hi,
> > > 
> > > I've adapted the it(4) driver from OpenBSD to work on NetBSD/envsys.
> > > There is one improvement as well, for example this driver does not
> > > need to specify the port address on the kernel config anymore.
> > > 
> > > The IT87xxF driver can be located at the 0x280, 0x290, 0xc00 and 0xd00
> > > port addresses, so I've added code to check in these addresses.
> > 
> > Generally, it's not a great idea to poke (or even peek) around on the
> > ISA bus looking for a device, because other things at those addresses
> > might object.  In particular, 0x280 is a common address for ISA
> > Ethernet cards.  Are you *sure* the probe is nondestructive?
> 
> Looks like the check for the 0x280 port address might be problematic, because
> there are some network cards using same address. I removed it from the code,
> anyway I've only seen IT87xxF hw on 0x290, 0xc00 or 0xd00.

Unfotunably there may be other devices on these addresses as well.
PCMCIA adapters may be mapped in this range.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--