From owner-freebsd-scsi Mon Jul 3 18:43:46 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from mass.osd.bsdi.com (mg136-135.ricochet.net [204.179.136.135]) by hub.freebsd.org (Postfix) with ESMTP id 25EA037C1B6; Mon, 3 Jul 2000 18:42:21 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id SAA00380; Mon, 3 Jul 2000 18:46:35 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200007040146.SAA00380@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nat Lanza Cc: scsi@freebsd.org, hackers@freebsd.org Subject: Re: SCSI HBA device detection? In-reply-to: Your message of "23 Jun 2000 13:10:26 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Jul 2000 18:46:30 -0700 From: Mike Smith Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm writing a SCSI HBA driver that simulates a bus with some > ramdisk-backed disks attached to it. I've read through the HBA > tutorial in Daemon News, but I'm still unsure how to tell the system > about my pretend disk devices. I suspect part of the problem is that > I don't actually have real devices or a real IO bus. If this is meant to be an exercise in writing a CAM HBA driver, then you need to teach your disk-emulation code about the basic SCSI commands (INQUIRY, TEST UNIT READY, etc). The SCSI infrastructure will use these commands to automatically detect your drives. If you're writing a generic ramdisk, this is a really masochistic way to go about doing it. 8) -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message