[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Driver development, recommended reading?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Driver development, recommended reading?
- From: Ted Unangst <tedu_(_at_)_zeitbombe_(_dot_)_org>
- Date: Tue, 29 Jul 2003 17:58:35 -0400 (EDT)
On Sat, 26 Jul 2003, Marc Balmer wrote:
> Is here any recommended reading (electronic or paperware) for OpenBSD
> device driver development besides the existing sources?
not especially. just got this, so if you're ok with german, see
seems pretty complete if you're into writing a floppy driver for vaxen.
probably of a lot less use if you're doing an ethernet driver. drivers
for different subsystems can probably have more differences than
jason may have the best advice. find something that conforms to the
interface, and then modify. if you're writing ethernet, taking if_rl.c
and doing s/rl_/mynic_/ and then turning the body of each function into a
printf is a start.
man pages exist for autoconf, bus_dma, and bus_space. personally, i don't
think it's possible to learn how to use bus_space by reading the man
pages. you have to cut and paste from an existing driver.
someone's writing down your mistakes
someone's documenting your downfall
Visit your host, monkey.org