i've never seen a good guide, but i've found that something that approximates it is to simply "diff" the openbsd and netbsd driver sources, for a driver in netbsd derived from openbsd. that way you see what someone else has done already, and picking the right example or set of examples can be very enlightening.. .mrg.