Subject: Re: Driver development question
To: steven.grunza@dgms.com <steven.grunza@dgms.com>
From: Bill Sommerfeld <wes@thunk.epilogue.com>
List: port-sparc
Date: 07/01/1999 15:53:03
> Step 1)  Modified /sys/conf/files to add the following two lines:
> 
> pseudo-device td
> 
> file dev/testdata.c		td

Since you need a "td.h" file, this should be either:

file dev/testdata.c		td needs-flag
	(if you want a flag in td.h if there are any TD devices)

file dev/testdata.c		td needs-count
	(if you want td.h to define NTD equal to the number of TD
	 devices defined in the config file)

....

> Step 6)  Created /sys/arch/sparc/compile/{my_machine}/td.h which 
> contains the following line:
> 
> #define NTD	0

td.h should be created automatically by config if you use "needs-flag"
or "needs-count" in the files file.


				- Bill