From owner-freebsd-hackers Mon Dec 8 17:08:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA07738 for hackers-outgoing; Mon, 8 Dec 1997 17:08:48 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA07709 for ; Mon, 8 Dec 1997 17:08:33 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id LAA07171; Tue, 9 Dec 1997 11:33:11 +1030 (CST) Message-Id: <199712090103.LAA07171@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Karl Pielorz cc: hackers@freebsd.org Subject: Re: Writing Device drivers for 2.2.X etc' In-reply-to: Your message of "Mon, 08 Dec 1997 23:26:27 -0000." <348C8223.4FF22185@tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Dec 1997 11:33:07 +1030 From: Mike Smith Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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