From owner-freebsd-net@FreeBSD.ORG Wed Oct 8 04:15:23 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 986CA1065694 for ; Wed, 8 Oct 2008 04:15:23 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id 54D458FC27 for ; Wed, 8 Oct 2008 04:15:23 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by gxk14 with SMTP id 14so7449066gxk.19 for ; Tue, 07 Oct 2008 21:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IcZeay9X5RZAA6mf5ZG6efFa6u7x423kfwv+HR580G8=; b=Nsw7hc+dfeVu/PQK4R5LmZBqLw6UmlP2dVu6/1t8Un0pKPKLZRFIuSv/fLUkhZjEAM e+xCopPE/5/zdKxP89sVcEa0+P80AZadl0IFledB9nbffxPxdtFjSVgmooLORLmbbhnq 5E9xixLrcrUUMinW8rsMvP4BK6dcaSsB9V8M4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=eiDoxfxouuPy2kQTM08yk5iaGTXwDo6I1goWPhEvqSV42BuVBq0R0EMjkcGxgn+sAU MC/KneXPID6dDXhxahlJ/INhgmK+C+rrNKifQg35rixwcaB5YVNdbMMUe9U8YfR5lx3s Vek62q20nF+uZkKvKOimTfvyvgPa034tHqpus= Received: by 10.151.153.14 with SMTP id f14mr11078668ybo.99.1223437882472; Tue, 07 Oct 2008 20:51:22 -0700 (PDT) Received: by 10.151.142.19 with HTTP; Tue, 7 Oct 2008 20:51:22 -0700 (PDT) Message-ID: Date: Wed, 8 Oct 2008 11:51:22 +0800 From: "Sepherosa Ziehau" To: "freebsd-net@freebsd.org" In-Reply-To: <48EBB3D6.600@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48EBB3D6.600@incunabulum.net> Subject: Re: How to support an Ethernet PHY without ID registers? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 04:15:23 -0000 On Wed, Oct 8, 2008 at 3:09 AM, Bruce M Simpson wrote: > Hi, > > I have been trying to get FreeBSD onto the Freecom FSG3 Storage Gateway. > It is an xScale based ARM system. > > Whilst the npe(4) driver appears to attach, the PHY does not. It is a > Realtel RTL8305SB switch chip in dual miibus mode. Unfortunately the > RTL8305SB does not have ID registers. The RTL8305SC does, but it's a totally Are you sure you could read from BMSR? Return invalid value from BMSR is the usual cause of miibus attaching/probing failure. For ID1/ID2 reading, you could just fake some values in npe(4)'s miibus_readreg implementation. Best Regards, sephe -- Live Free or Die