Subject: Re: wm(4) versus em(4)
To: Brian Buhrow <>
From: Manuel Bouyer <>
List: tech-kern
Date: 12/07/2006 22:06:24
On Thu, Dec 07, 2006 at 12:14:30PM -0800, Brian Buhrow wrote:
> 	Hello.  recently, I've been trying to get the wm(4) driver to work
> with  some Intel fiber based gigE cards.  I've been having a lot of trouble
> getting the driver to autonegotiate with Cisco 35XX switch gear, and when I
> try to disable autonegotiation, things get even worse.  In looking at the
> driver, it seems like it's out of date with respect to the behaviors of the
> newer Intel 8254x chips, especially the fiber based ones.  The freeBSD and
> OpenBSD folks are using Intel written drivers which seem to deal quite well
> with the various version of the chip.  At this moment, I'm trying to decide
> if it's easier to whip the wm(4) driver into shape, or if it would be
> easier to port the em(4) driver from OpenBSD to NetBSD.  I'm sort of
> leaning toward the latter, but wanted to ask here if anyone has thoughts on
> the matter.

The PHY code would need to be properly extracted and merged in dev/mii at
last. There's a lot of code duplication in there.

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference