RFI: Ethernet driver ported from Linux

Andrew Thompson thompsa at freebsd.org
Mon Apr 9 06:09:49 UTC 2007


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


More information about the freebsd-hackers mailing list