From owner-freebsd-hackers Thu Jan 30 3:50:50 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B72537B401 for ; Thu, 30 Jan 2003 03:50:48 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C45943E4A for ; Thu, 30 Jan 2003 03:50:47 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr2.xmission.com with spam-scanned (Exim 3.35 #1) id 18eDCn-0000DL-02 for freebsd-hackers@freebsd.org; Thu, 30 Jan 2003 04:50:05 -0700 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 18eD9I-0007MM-02 for freebsd-hackers@freebsd.org; Thu, 30 Jan 2003 04:46:28 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id h0UBkO021632 for freebsd-hackers@freebsd.org; Thu, 30 Jan 2003 22:16:25 +1030 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 30 Jan 2003 22:16:24 +1030 From: Greg Lewis To: freebsd-hackers@freebsd.org Subject: VIA Rhine III (MII without any phy!) Message-ID: <20030130221623.A21565@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-1.7 required=8.0 tests=SIGNATURE_SHORT_DENSE,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT,X_AUTH_WARNING version=2.43 X-Spam-Level: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I've recently acquired a motherboard with a VIA Rhine III onboard NIC. I couldn't see support for this in the current vr(4) driver in either -current or -stable and am trying to add support for it. Having not done any kernel hacking before I'd appreciate some pointers if someone would be so kind. Finding patches like that in http://www.uwsg.iu.edu/hypermail/linux/kernel/0204.1/0887.html which added the driver to the Linux kernel simply by adding the chip id's to their driver, I thought I'd give the same thing a try. I added the appropriate code to if_vrreg.h and if_vr.c and the chip now seems to detect at least partially: vr0: port 0xd400-0xd4ff mem 0xea001000-0xea0010ff irq 5 at device 14.0 on pci0 vr0: Ethernet address: 00:40:63:c2:49:3a However, I then get the dreaded: vr0: MII without any phy! device_probe_and_attach: vr0 attach returned 6 This seems to come up a number of times in the archives, but I don't see an explanation or solution to it. ENXIO implies the device isn't configured, yet I'm using GENERIC as my config at the moment and that has both vr and miibus configured into it. I would appreciate any pointers anyone can give. I'm quite prepared to do more research/hacking, I'd just like a push in the right direction :). Apologies for not providing a diff for the two files, but all that I've done is add these two lines to if_vrreg.h: #define VIA_DEVICEID_RHINE_III 0x3106 #define VIA_DEVICEID_RHINE_III_M 0x3053 (in the VIA Rhine device IDs section) and added these lines to the vr_devs[] struct in if_vr.c { VIA_VENDORID, VIA_DEVICEID_RHINE_III, "VIA VT6105 Rhine III 10/100BaseTX" }, { VIA_VENDORID, VIA_DEVICEID_RHINE_III_M, "VIA VT6105M Rhine III 10/100BaseTX" }, I've also found what looks to be good documentation for the chip on the VIA web site, so I should be able to track down appropriate information as necessary. Thanks! -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message