From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 10 04:24:20 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 57F4416A406 for ; Tue, 10 Apr 2007 04:24:20 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1B5FD13C487 for ; Tue, 10 Apr 2007 04:24:20 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l3A4MoUC066517; Mon, 9 Apr 2007 22:22:51 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 09 Apr 2007 22:23:00 -0600 (MDT) Message-Id: <20070409.222300.-1350498722.imp@bsdimp.com> To: alan@fromorbit.com From: "M. Warner Losh" In-Reply-To: <1176096815.4064.6.camel@hiro.auspc.com.au> References: <1176096815.4064.6.camel@hiro.auspc.com.au> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 09 Apr 2007 22:22:51 -0600 (MDT) Cc: freebsd-hackers@freebsd.org 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, 10 Apr 2007 04:24:20 -0000 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. Warner