Date: Tue, 09 Dec 1997 11:33:07 +1030 From: Mike Smith <mike@smith.net.au> To: Karl Pielorz <kpielorz@tdx.co.uk> Cc: hackers@freebsd.org Subject: Re: Writing Device drivers for 2.2.X etc' Message-ID: <199712090103.LAA07171@word.smith.net.au> In-Reply-To: Your message of "Mon, 08 Dec 1997 23:26:27 -0000." <348C8223.4FF22185@tdx.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> The templates also don't seem to mention major / minor device numbers either - > unless they 'were' taken care of in conf.c at some point in the past? Editing conf.c would have forced you to think about major numbers. Minor numbers have always been driver-specific. > Can anyone point the way to some up to date (i.e. 2.2.2+ etc.) info on the net > about writing device drivers for BSD - i.e. up to date templates etc.? for > nice simple ISA cards, or just code stubs? - Or are there any drivers in BSD > which are nice and simple for using as templates allready? Have a look at /usr/share/examples/drivers/make_device_driver.sh. Note that this defaults to major 20, which is for local testing. Once you're reasonably happy with your driver (and if you decide to give it away) we can arrange a new number for you... mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712090103.LAA07171>