From owner-freebsd-scsi Wed Feb 5 14:55:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA19610 for freebsd-scsi-outgoing; Wed, 5 Feb 1997 14:55:14 -0800 (PST) Received: from sendero.i-connect.net ([206.190.144.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA19597 for ; Wed, 5 Feb 1997 14:55:10 -0800 (PST) Received: (from shimon@localhost) by sendero.i-connect.net (8.8.5/8.8.4) id PAA05831 for freebsd-scsi@freebsd.org; Wed, 5 Feb 1997 15:54:19 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1-alpha [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 05 Feb 1997 15:44:31 -0800 (PST) Organization: iConnect Corp. From: Simon Shapiro To: freebsd-scsi@freebsd.org Subject: RE: Some SCSI Questions... Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Y'all, Me again, with more questions: 1. I want to port cdwrite 2.0 from Linux (and get rid but have no clue what the userland API to the generic device (userland SCB) is. Can someone please help me with: a. What is the /dev entry? b. What options in config do I need to turn on? c. (At least) header file pathname to API 2. In writing a SCSI device driver, how does one differentiate a device reset from bus reset from HBA reset? I can guess, that an HBA reset may come as a device reset flag in the xs struct, destined for the HBA's target ID. But on which bus? Based on the Unit number? We have an HBA which has three busses. We can have multiple of these HBA's in the system. We set the HBA softc struct as an array (linked list, actually) of softc structures. In each softc we have an array of scsi_link structures to manage that. But question #2 is not answered by that, to my understanding. In other words; We need to differentiate (in the case of an HBA reset) between resetting the HBA itself, resetting any given bus attached to the HBA and resetting a device attached. If the HBA does target mode, we could argue, that the device reset, applies to the HBA as a target, not to the HBA as a controller. Right? Thanx! Simon