From owner-freebsd-hackers Wed Nov 7 4: 9:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 1422637B418 for ; Wed, 7 Nov 2001 04:09:18 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id C488B81D06; Wed, 7 Nov 2001 06:09:12 -0600 (CST) Date: Wed, 7 Nov 2001 06:09:12 -0600 From: Alfred Perlstein To: Dragon Fire Cc: freebsd-hackers@freebsd.org Subject: Re: PCI Device Drivers Message-ID: <20011107060912.Q89342@elvis.mu.org> References: <008e01c16782$fc4b3080$037d6041@gandalf> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <008e01c16782$fc4b3080$037d6041@gandalf>; from dragonfire820@mediaone.net on Wed, Nov 07, 2001 at 06:54:41AM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dragon Fire [011107 05:55] wrote: > I'm writing a very simple PCI device driver that, basically, needs to > allocate PCI resources, provide 2 ioctls, then deallocate PCI resources on > shutdown. > > The documentation on writing FreeBSD device drivers is sketchy at best. Does > anybody have any good resources? Even a pointer to a simple driver would be > helpful, many of the drivers in the source tree are SCSI or RAID drivers > which are far more complicated than what I need. I've begun ripping these > apart but if there are more resources available I'd like to get my hands on > them. Have a look at the ethernet drivers, if_wi.c is particularly simple and has PCI allocations in it. good luck, -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message