From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 17 17:16:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20EC016A402 for ; Tue, 17 Apr 2007 17:16:36 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 38CE713C468 for ; Tue, 17 Apr 2007 17:16:34 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l3HHGPlI098936; Tue, 17 Apr 2007 21:16:25 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l3HHGNmu098933; Tue, 17 Apr 2007 21:16:24 +0400 (MSD) (envelope-from yar) Date: Tue, 17 Apr 2007 21:16:23 +0400 From: Yar Tikhiy To: "M. Warner Losh" Message-ID: <20070417171622.GB95814@comp.chem.msu.su> References: <1176096815.4064.6.camel@hiro.auspc.com.au> <20070409.222300.-1350498722.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070409.222300.-1350498722.imp@bsdimp.com> User-Agent: Mutt/1.5.9i Cc: freebsd-hackers@freebsd.org, alan@fromorbit.com Subject: Re: RFI: Ethernet driver ported from Linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 17:16:36 -0000 On Mon, Apr 09, 2007 at 10:23:00PM -0600, M. Warner Losh wrote: > In message: <1176096815.4064.6.camel@hiro.auspc.com.au> > Alan Garfield writes: > : I'd like to port/re-write this driver for FreeBSD but I cannot find > : enough documentation and examples of a basic Ethernet driver for > : FreeBSD. (if_wlan and if_ef look like good candidates but if_clone and > : the miibus confuse me a bit and there isn't any clear docs on them) > : > : Can someone point me in the direction of an example or the relevant man > : pages I should be reading to help with this. > : > : The device driver for Linux seems quite simple. > : > : Any help would be gratefully appreciated. > > In addition to the other advise, you might also look at if_ed.c. It > is a little complicated since it talks to real hardware, and that > hardware is, ummm, a little icky. That little thing Alan is writing a driver for should be simpler and clearer than the ed(4) hw, so Alan's driver will be a source of knowledge itself when it's complete. :-) It can be a good companion for if_edsc, as the latter doesn't work with hardware at all and fails to illustrate some important points due to that. -- Yar