From owner-freebsd-hackers Wed Mar 4 14:36:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA07947 for freebsd-hackers-outgoing; Wed, 4 Mar 1998 14:36:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA07809 for ; Wed, 4 Mar 1998 14:34:38 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id OAA22559; Wed, 4 Mar 1998 14:32:31 -0800 (PST) Message-Id: <199803042232.OAA22559@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: freebsd@isvara.net cc: FreeBSD Hackers Subject: Re: Ethernet card driver In-reply-to: Your message of "Wed, 04 Mar 1998 12:25:01 GMT." <34FD481D.B3CCB346@challenge.isvara.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 04 Mar 1998 14:32:29 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > I'm about to write an ethernet card driver (3Com 3C905), utilizing > all the features of the card (Bus master DMA transfers, etc). Sounds good. > What calls are required to interface to the kernel (I prefer not looking > at other code, and writing from scratch) ? > > The functions {xxinit, xxattach, ...}have quite obvious names for what > they should do, but I am unsure *exactly* what should be done were. The best thing for you to do _is_ to look at other code, for real-world, known-functional examples. The fxp driver is an excellent place to start from your point of view - it's another PCI busmaster ethernet card, with known good performance and excellent reliability. -- \\ 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