Subject: driver checklist
To: None <tech-misc@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: tech-misc
Date: 11/07/2000 11:26:49
	Would it be reasonable to come up with a checklist of
	points for a driver:

	Something like (this list definitely needs sanity checked :)

	- have separate /dev/ic/ chipset driver and per bus frontend
	  including *var.h and *reg.h
	- bus_space and bus_dma
	- if ether use ether_ioctl()
	- if attach fails report diagnostic but not panic
	- handle detach if appropriate
	- handle both big and little endian usage
	- use tsleep() isntead of delay where possible
	- not to use large (>1000?) values of delay except when unavoidable


                David/absolute
			       -- www.netbsd.org: A pmap for every occasion --