From owner-freebsd-hackers Thu Sep 30 14: 7:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (Postfix) with ESMTP id 4FC2A153B0 for ; Thu, 30 Sep 1999 14:07:10 -0700 (PDT) (envelope-from kpielorz@caladan.tdx.co.uk) Received: from localhost (kpielorz@localhost) by caladan.tdx.co.uk (8.9.3/8.9.3/Kp) with ESMTP id WAA38942 for ; Thu, 30 Sep 1999 22:07:09 +0100 (BST) Date: Thu, 30 Sep 1999 22:07:09 +0100 (BST) From: Karl Pielorz To: hackers@freebsd.org Subject: Drivers, templates and beyond 2.2.X Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All, It's now getting to the point where I _have_ to port my old, 2.2.X custom driver to run under 3.X/4.X. I'm a reasnably competant programmer, and creating the driver under 2.2.X wasn't too hard, thanks to help from friends, a ~10 year old book - and the files in /usr/share/examples/drivers A lot has changed since 2.2.X (i.e. probes, handlers, the way ISA drivers are attached etc. - and God knows what else). My questions are: 1. Has anyone got any updated 'skeleton drivers' for ISA devices under 3.X/4.X? (i.e. more up to date files than those in /usr/share/examples/drivers?) 2. Failing #1, which driver is the best driver to print out, and pull apart as an example of "How writing a simple port-mapped ISA card driver" should be done?. I've looked at things like the joystick driver, and some of the sound code etc. - there seems to be a lot of difference in the way the drivers are set out etc. (At least, that seems to be the case to me!). This leaves me a little confused, if I'm going to model my driver on one of the existing ones - which is best? Thanks in advance for any info, Regards, Karl Pielorz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message