Date: Wed, 7 Nov 2001 06:09:12 -0600 From: Alfred Perlstein <bright@mu.org> To: Dragon Fire <dragonfire820@mediaone.net> Cc: freebsd-hackers@freebsd.org Subject: Re: PCI Device Drivers Message-ID: <20011107060912.Q89342@elvis.mu.org> In-Reply-To: <008e01c16782$fc4b3080$037d6041@gandalf>; from dragonfire820@mediaone.net on Wed, Nov 07, 2001 at 06:54:41AM -0500 References: <008e01c16782$fc4b3080$037d6041@gandalf>
next in thread | previous in thread | raw e-mail | index | archive | help
* Dragon Fire <dragonfire820@mediaone.net> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011107060912.Q89342>
