Subject: Re: driver framewaork docs?
To: None <rasputin@idoru.mine.nu>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 06/10/2002 18:32:32
You could start with autoconf(9) and driver(9), and then follow
xrefs and further look at the sources.
Jaromir
rasputin@idoru.mine.nu wrote:
>
> This is a bit of a long shot, but is there a document anywhere
> that explains how a driver is constructed?
>
> In particular, I'm trying to understand how the eap driver works on i386,
> with a mind to adding a new codec (using FreeBSD's pcm(4) as a reference,
> although their driver isn't designed the same way).
>
> Trouble is I'm finding it hard to follow the source alone - it's quite
> difficult to see where the codecs are defined for example
> (I stress this is PEBKAC, not a problem with the NetBSD source; C-wise,
> I'm just past the 'teach yourself XX in 24 hours' level).
>
> I'd rather have a crack at hacking it myself than buy a new card,
> plus I've needed an excuse to look into the kernel source for ages...
> - just thought I'd aks if there were any useful docs I should know about,
> and figured you guys must've learnt somewhere....
>
> Google seemed to draw a blank, so thought I'd ask here.
>
> --
> Rasputin :: Jack of All Trades - Master of Nuns
>
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-