From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 9 06:09:49 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 3206316A405 for ; Mon, 9 Apr 2007 06:09:49 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id C849A13C459 for ; Mon, 9 Apr 2007 06:09:48 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 2DDD31CC58; Mon, 9 Apr 2007 18:09:47 +1200 (NZST) Date: Mon, 9 Apr 2007 18:09:47 +1200 From: Andrew Thompson To: Alan Garfield Message-ID: <20070409060947.GE64415@heff.fud.org.nz> References: <1176096815.4064.6.camel@hiro.auspc.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1176096815.4064.6.camel@hiro.auspc.com.au> User-Agent: Mutt/1.5.13 (2006-08-11) 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: Mon, 09 Apr 2007 06:09:49 -0000 On Mon, Apr 09, 2007 at 03:33:35PM +1000, Alan Garfield wrote: > Hello all! > > I've got a couple of Sun Fire V20z (re-badged NewISys E2100) which have > little dedicated Service Processor on-board running Linux. The "SP" can > communicate via IPMI and also by Ethernet. It talks Ethernet to the SP > by using two small fifo buffers in the PRS via the LPC. > > -- > > 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. You should look at the edsc driver, its a dummy ethernet driver and a template for writing one. http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_edsc.c Andrew