Skip site navigation (1)Skip section navigation (2)
Date:      03 Jul 2000 22:09:36 -0400
From:      Nat Lanza <magus@cs.cmu.edu>
To:        Mike Smith <msmith@freebsd.org>
Cc:        scsi@freebsd.org, hackers@freebsd.org
Subject:   Re: SCSI HBA device detection?
Message-ID:  <uoc66qm4pen.fsf@hurlame.pdl.cs.cmu.edu>
In-Reply-To: Mike Smith's message of "Mon, 03 Jul 2000 18:46:30 -0700"
References:  <200007040146.SAA00380@mass.osd.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith <msmith@freebsd.org> writes:

> 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.

I already have code for handling the basic SCSI commands (I'm really
porting a scsi-ramdisk driver from Linux rather than writing from
scratch). The bit I'm curious about are which XPT actions I'll need to 
support other than XPT_PATH_INQ and XPT_SCSI_IO.

> If you're writing a generic ramdisk, this is a really masochistic way to 
> go about doing it.  8)

It's really a mix of an exercise in writing a CAM HBA driver and a
first step towards a SCSI-over-IP driver. Also, a SCSI ramdisk can be
handy for some of the benchmarking and tracing we do.


--nat

-- 
nat lanza --------------------- research programmer, parallel data lab, cmu scs
magus@cs.cmu.edu -------------------------------- http://www.cs.cmu.edu/~magus/
there are no whole truths; all truths are half-truths -- alfred north whitehead


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?uoc66qm4pen.fsf>