From owner-freebsd-scsi Wed Mar 1 0: 8:21 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id 2B41237BE24 for ; Wed, 1 Mar 2000 00:08:18 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id AAA04798; Wed, 1 Mar 2000 00:07:40 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003010807.AAA04798@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: nanda@procsys.com Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: IOCTL support in SCSI block driver In-reply-to: Your message of "Wed, 01 Mar 2000 13:26:48 +0530." <38BCCD40.355A@procsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Mar 2000 00:07:40 -0800 From: Mike Smith Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > No. The key issue here, and one that you still haven't answered is: Does > > your RAID device take SCSI commands, or does it have a different > > interface? > > Our RAID device takes SCSI commands. Typically the parameters passed to > the firmware includes SCSI CDB,path id,target id,LUN number,data > direction flag,SCSI tag queing attribute,data buffer pointers etc. > Status returned consists of SCSI status and sense information. Ok. In that case, you're right on the target for using CAM. > But my driver should also handle the IOCTL support for proprietary > communication which will be used by a JAVA based Array Manager program > for the purpose of getting statistics and configuring the card. Can i > pass IOCTLs directly to the HAB SCSI CAM driver ? No. You will want to create a per-adapter device instance that takes the bus/target/lun information and passes it along with the ioctl data to the firmware. You can see an instance of this in the Mylex driver I referenced previously. > I want to avoid writing another character driver just for the sake of > IOCTL handling we could do this in Linux and Windows NT. You don't need another entire driver; just a few extra lines to instantiate a control interface node for the adapter. -- \\ 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