Subject: Re: Removing iTE IT87xxF code from the lm(4) driver (new it(4) driver)
To: Juan RP <juan@xtrarom.org>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-kern
Date: 05/08/2006 09:46:09
On 5/8/06, Juan RP <juan@xtrarom.org> 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 0xd0=
0
> > > 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, bec=
ause
> there are some network cards using same address. I removed it from the co=
de,
> anyway I've only seen IT87xxF hw on 0x290, 0xc00 or 0xd00.

And some other network cards might use these addresses too, as well as
any other ISA peripheral I guess.  If it causes problems for some
address, it is very likely that it will cause problems for others too.

--
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/