Subject: Re: Removing iTE IT87xxF code from the lm(4) driver (new it(4)
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 05/07/2006 22:50:13
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?

I've used code derived from the nsclpcsio_isa.c driver, you can take a look
at the it_isa_match() function.