Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 18:46:30 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Nat Lanza <magus@cs.cmu.edu>
Cc:        scsi@freebsd.org, hackers@freebsd.org
Subject:   Re: SCSI HBA device detection? 
Message-ID:  <200007040146.SAA00380@mass.osd.bsdi.com>
In-Reply-To: Your message of "23 Jun 2000 13:10:26 EDT." <uoc66r0iarh.fsf@hurlame.pdl.cs.cmu.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007040146.SAA00380>