Subject: Re: Adding a new MII device
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-kern
Date: 04/25/2002 21:39:42
On Mon, 22 Apr 2002, Frank van der Linden wrote:

> Index: if_pcn.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/dev/pci/if_pcn.c,v
> retrieving revision 1.8
> diff -c -r1.8 if_pcn.c
> *** if_pcn.c	2002/01/29 04:45:47	1.8
> --- if_pcn.c	2002/04/22 11:48:59
> ***************
> *** 528,533 ****
> --- 528,534 ----
>
>   	switch (PCI_PRODUCT(pa->pa_id)) {
>   	case PCI_PRODUCT_AMD_PCNET_PCI:
> + 	case PCI_PRODUCT_AMD_PCNET_HOME:
>   		/* Beat if_le_pci.c */
>   		return (10);
>   	}
>
I just heard that this didn't work, in fact my friend got a panic:

pcn0 at pci0 dev 12 function 0: AMD PCnet-PCI Ethernet
pcn0: Unknown PCnet-PCI variant rev2, Ethernet address 00:e0:7d:b1:1a:e4
pcn0: interrupting at irq5
pnaphy0 at pcn0 phy29:am79c901 HomePNA 1.0 interface, rev.0
pnaphy0: 10baseT
ifmedia_set: no match for 0x20/0xffffffff
panic: ifmedia_set
stopped in pid0 (swapper) at 0xc026447c: leave

His HomePNA card is Zyxel PPC-10 if my memory serves correctly...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/