From owner-freebsd-hackers Wed Dec 9 17:40:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA01260 for freebsd-hackers-outgoing; Wed, 9 Dec 1998 17:40:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (ppp-db.dialup.hilink.com.au [203.2.144.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA01250 for ; Wed, 9 Dec 1998 17:40:30 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id RAA01712; Wed, 9 Dec 1998 17:23:44 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812100123.RAA01712@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bill Paul cc: hackers@FreeBSD.ORG Subject: Re: Code review request (new MII support) In-reply-to: Your message of "Wed, 09 Dec 1998 16:57:04 EST." <199812092157.QAA22754@skynet.ctr.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Dec 1998 17:23:44 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The past couple of days I've been experimenting with the MII/PHY > support code from NetBSD (sys/dev/mii). This code provides support > for MII transceivers attached to ethernet controllers. Many (hell, most) > of the fast ethernet controllers on the market today include support > for MII-compliant transceivers. At the moment, all of the drivers for > ethernet cards that use MII transceivers have their own MII support > code, and handle autonegotiation and media selection themselves. The > result is a fair amount of duplicated code. Funny, I remember saying this a while back. Nice to see that someone's doing the real work on it though. 8) > Getting it to work properly on FreeBSD was complicated by the fact that > NetBSD makes copious use of and src/kern/subr_autoconf.c > for device configuration, whereas we have all but forgotten about them. > (I assume this is because somebody out there has an incredibly spiffy > replacement that will do everything they do plus more, right? Right? > Uh... hello, is this thing on? *tap* *tap*) Correct. You want to be talking to Doug Rabson (dfr), and perhaps Nick Hibma (n_hibma) and Nicolas Souchu (nsouch) (all @freebsd.org). We do indeed have a very spiffy new bus infrastructure, which would take to your situation here very well. > What I would like are comments and suggestions, particularly about > how to improve the way the code is configured into the kernel; what I > did for now is just a quick hack to get everything built. To see the new bus code in action, look at eg. sys/dev/iic. Nick was also working on some sample bus/driver code. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message