From owner-freebsd-questions Fri Apr 21 06:00:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA07139 for questions-outgoing; Fri, 21 Apr 1995 06:00:01 -0700 Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id FAA07123 for ; Fri, 21 Apr 1995 05:59:58 -0700 Received: (dufault@localhost) by hda.com (8.6.9/8.3) id IAA15750; Fri, 21 Apr 1995 08:58:56 -0400 From: Peter Dufault Message-Id: <199504211258.IAA15750@hda.com> Subject: Re: Porting Device Driver To: hill@fluky.mitre.org (William H. Hill) Date: Fri, 21 Apr 1995 08:58:56 -0400 (EDT) Cc: questions@FreeBSD.org, hill@fluky.mitre.org In-Reply-To: <9504141813.AA06179@fluky.mitre.org> from "William H. Hill" at Apr 14, 95 02:13:02 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1212 Sender: questions-owner@FreeBSD.org Precedence: bulk William H. Hill writes: > > > Where can I find information regarding writing device drivers > for FreeBSD? > > I have a driver written (for BSDI) for Adax boards which we use > for X.25, and I'd like to converto to FreeBSD. > > Aside from the obvious differences in arguments passed to driver functions, > which I'm trying to sort out, I'm wondering what else I might run in to. > This is my first venture into device drivers, and I'm told it's fraught > with peril. Any help would be appreciated! I don't know if you ever got any response to this. You shouldn't have too much trouble porting the driver. The "Design and Implementation of the 4.3BSD OS" book by Leffler, McKusick, Karels and Quarterman (Addison Wesley; ISBN 0-201-06196-1) will still apply overall. There are some new quirks having to do with devconf and some new improved functions that aren't documented, but by looking at the source of the other drivers (many of which are in /sys/i386/isa) and asking questions here you shouldn't have much trouble. Peter -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267