Subject: Re: Intel mobile mt gigabit ethernet?
To: None <port-i386@netbsd.org>
From: None <jonl@yubyub.net>
List: port-i386
Date: 06/14/2003 12:24:20
jonl@yubyub.net said:
> Does anybody have any info on the Intel MT Mobile gigabit ethernet?  We
> support a few types of Intel gigabit interfaces; I was wondering if this
> chip is similar to any existing drivers (or do we support this chip
> already?).
>
> This chip is in my thinkpad t40.

I took a look around - it seems the chip is related to the Intel 82540EM.

So, I weaseled around in src/sys/dev/pci, and added the Mobile chip as a
supported config of if_wm.c by hacking pcidevs.h, pcidata_dev.h and
if_wm.c

It seems to work:

wm0 at pci2 dev 1 function 0: Intel i82540EM (LM) Mobile 1000BASE-T
Ethernet, rev. 3
wm0: interrupting at irq 11
wm0: Ethernet address 00:09:6b:53:56:1d
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 4
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto

I've started dhclient, which obtained an addr from my dhcp server no prob.
 It did complain about a packet size mismatch, but the kernel didn't
complain at all (IDK if this is "normal" or not for dhclient or my dhcp
server).

It's been stable for about an hour of network use or so.

If anyone has any better info about this chip, please do let me know.  For
now, this hack seems to work.

Patches:

if_wm.c:

494a495,498
> 	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_82540EM_LM,
> 	  "Intel i82540EM (LM) Mobile 1000BASE-T Ethernet",
> 	  WM_T_82540,		WMP_F_1000T },
>

pcidevs.h:

1353a1354
> #define	PCI_PRODUCT_INTEL_82540EM_LM	0x101e		/* i82540EM (LM) Mobile
Gigabit Ethernet */

pcidevs_data.h:

3414a3415,3420
> 	    PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82540EM_LM,
> 	    0,
> 	    "Intel",
> 	    "i82540EM (LM) Mobile Gigabit Ethernet",
> 	},
> 	{


-- 
-Jon