Subject: Re: Removing iTE IT87xxF code from the lm(4) driver (new it(4) driver)
To: Thor Lancelot Simon <tls@rek.tjls.com>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 05/08/2006 00:04:07
--uR2Be0xXxbzP+34t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 07, 2006 at 04:43:40PM -0400, Thor Lancelot Simon wrote:
> On Sun, May 07, 2006 at 09:43:10PM +0200, Juan RP wrote:
> >=20
> > Hi,
> >=20
> > 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.
> >=20
> > 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.
>=20
> 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?

The alternative is simply to add a commented line to GENERIC.  That way
the user will only enable it if s/he wants to try it;  you don't always
know the address when you test.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--uR2Be0xXxbzP+34t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQEVAwUBRF5u19goQloHrPnoAQLMyQgAgfd3kQm0P7rChhlUcClbzFVWOkyBS4e7
ezbgMVVywCAyFEfdhobvHW0R8ifMyjFZntHM1kGKfjUq5rg9D8kBXP4zsaV7ppt4
dgv5TIW9tf0rpb/EP9pnwZgjMrb9VUZY++yFqF6SpTBZGbTNpqX/bxA2mG11OAbE
ce3bREF2uoqdQhdQdNLyZLw6BhcUWvIcAsld7btFDt0z9O5W1vwyTDmreZkngPTK
qkWv4QK49EffNxWx3dQIF2gTpnwgwI5ZIbtmsWSNjxGH7V75/vaWdb/F1reAosXj
15KQsl8byxvcDxwbRmaR0aakt/AgTDVxa+8yXC0ruac5am18aXP+3w==
=fcc6
-----END PGP SIGNATURE-----

--uR2Be0xXxbzP+34t--