Subject: Re: Multiple PHYs
To: None <tech-kern@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 05/08/2000 10:10:21
On Sat, May 06, 2000 at 08:41:30PM +0200, Lennart Augustsson wrote:

 > aue0 at uhub1 port 2
 > aue0: LINKSYS Inc. LINKSYS USB Adapter, rev 1.10/1.01, addr 7
 > aue0: Ethernet address 00:e0:98:75:09:e1
 > ukphy0 at aue0 phy 0: Generic IEEE 802.3u media interface
 > ukphy0: OUI 0x001018, model 0x0021, rev. 2
 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 > ukphy1 at aue0 phy 2: Generic IEEE 802.3u media interface
 > ukphy1: OUI 0x00001a, model 0x0039, rev. 3
 > ukphy1: 10baseT
 > ukphy2 at aue0 phy 3: Generic IEEE 802.3u media interface
 > ukphy2: OUI 0x00001a, model 0x0037, rev. 1
 > ukphy2: 10baseT, 10baseT-FDX, auto
 > 
 > So it seems that this adapter has three different PHYs.  Is this something
 > I have to worry about when I configure the interface, or will it just work
 > by some magic?

You actually have different "instance" numbers for each of the duplicate
media that you have to specify in order for the MII code to select the
right one.

 > Also, I guess that one of these messages is wrong since one of the PHYs
 > should be a HomePNA PHY.

802.3u doesn't specify HomePNA.  HomePNA PHYs present a 10baseT capability,
and it is the responsibility of host software to detect that the PHY is
a HomePNA model, and map that to a HomePNA cabaility for the user's
convenience.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>