From owner-freebsd-hardware Sun Aug 8 23:57:15 1999 Delivered-To: freebsd-hardware@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id A91E21513B for ; Sun, 8 Aug 1999 23:57:13 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with ESMTP id CAA18453; Mon, 9 Aug 1999 02:55:24 -0400 (EDT) Date: Mon, 9 Aug 1999 02:55:23 -0400 (EDT) From: "Matthew N. Dodd" To: Robert Watson Cc: freebsd-hardware@FreeBSD.ORG Subject: Re: kern/12275: Patches to add support for new chipset (fwd) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 8 Aug 1999, Robert Watson wrote: > Given that the card doesn't work without the lines as I have them, I think > that the current arrangement is actually the correct one. See below. Great. Like I said, I was blindly guessing in an attmept to make sense of the bulk of the patch. > > > Any chance that we can identify the PHY used by these cards and make sure > > we're dealing with one of them before we go reading and writing to one > > blindly? What if Diamond changes PHYs? > > The AM79C979 datsheet (p178) defines bits 1 - 0 of BCR49 as follows: > > 1-0 PHY_SEL PHY Select. These bits define the active PHY as follows: > 00 10BASE-T PHY > 01 HomePNA PHY > 10 External PHY > 11 Reserved/Undefined Ah. If its an internal PHY its likely not an MII PHY. > As far as I can tell, there does not seem to be a way to probe for > available PHY's. At least on the card I have, there is only a phone-net > port, so I'm not sure why they don't auto-assign the PHY. I'll look into > this further though--perhaps this should be influenced by the interface > link state, or the like. BSD/OS has a nice feature wherein (I believe) > interfaces can generate their own lists of link types and ifconfig can be > used to dynmically list and select from among these, with custom strings. Where is the datasheet for this chip? > > Anyhow, I don't see these design issues getting in the way of adding > > functionality. > > > > Regenerate your patch and I'll commit it. (unless someone else wants to.) > > Sounds great. I'll investigate further, but I think just hard-assigning > the PHY is the best solution for the time being. Indeed. Give me a patch with your debuging stuff deleted and I'll commit to -current. We can investigate the bells and whistles later. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message