From owner-freebsd-scsi Wed Jun 26 14:53:30 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA18164 for freebsd-scsi-outgoing; Wed, 26 Jun 1996 14:53:30 -0700 (PDT) Received: from burdell.cc.gatech.edu (root@burdell.cc.gatech.edu [130.207.3.207]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA18129 for ; Wed, 26 Jun 1996 14:53:25 -0700 (PDT) Received: from oscar.cc.gatech.edu (cau@oscar.cc.gatech.edu [130.207.107.12]) by burdell.cc.gatech.edu (8.7.5/8.6.9) with ESMTP id RAA19010 for ; Wed, 26 Jun 1996 17:53:16 -0400 (EDT) Received: (from cau@localhost) by oscar.cc.gatech.edu (8.7.5/8.6.9) id RAA13593 for freebsd-scsi@freebsd.org; Wed, 26 Jun 1996 17:53:15 -0400 (EDT) From: cau@cc.gatech.edu (Carlos Ugarte) Message-Id: <199606262153.RAA13593@oscar.cc.gatech.edu> Subject: help writing a new SCSI device driver To: freebsd-scsi@freebsd.org Date: Wed, 26 Jun 1996 17:53:15 -0400 (EDT) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi there, A few months back I asked for some help/pointers in writing a device driver for a currently unsupported SCSI host adapter (Future Domain 16xx, using the TMC-18xx chipset). Unfortunately, I haven't been able to start on it until now, and I have a few questions... I've looked through the new (red) daemon book, through the ddwg tutorial at http://www.freebsd.org/tutorials, through some of the existing drivers (seagate.c, aha1542.c, aic6360.c), and through some of the SCSI header files (/sys/scsi/...). From these, I've got a pretty good idea of what some things are (xx_probe(), xx_attach(), the structures) but not others. This is the first time I'm writing anything SCSI; I've also been reading part of the SCSI drafts. Could someone give me a description of the following? I'd like to know what they are supposed to do (description, what to return, whatever). -xx_init() - is this required? I see it in the drivers, but not as one of the elements of the scsi_* structures... -xx_scsi_cmd() -xx_minphys() -xx_adapter_info() -xxintr() -KVTOPHYS, PHYSTOKV -splbio(), splx(), other spl() calls I'm using the Linux driver as well as an older (apparently nonworking) version of a driver for the FD-1670 sent me by Julian Elischer as a base for my work. If anyone has any suggestions, I'd be glad to hear them (drivers/SCSI/etc). Thanks in advance. Carlos -- Carlos A. Ugarte cau@cc.gatech.edu Author of PageMage, a virtual desktop util for OS/2 http://www.cc.gatech.edu/people/home/cau/ If you understand what you're doing, you are not learning anything