Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 00:42:07 -0700
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Nanda Kumar <nanda@procsys.com>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Some more clarifications
Message-ID:  <20000229004207.A20006@panzer.kdm.org>
In-Reply-To: <38BB731F.7E33@procsys.com>; from nanda@procsys.com on Tue, Feb 29, 2000 at 01:08:37PM %2B0530
References:  <38BB731F.7E33@procsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 29, 2000 at 13:08:37 +0530, Nanda Kumar wrote:
> Hi,
> 
> I went through some more details regarding SCSI block driver and CAM
> interface and i have some more questions
> 
> 1). Our firmware expects the SCSI CDB,path id,target id,lun number etc.
> from the host.  But for the purpose of communicating with the firmware
> regarding statistics,firmware upgrade etc. the driver should support
> IOCTL interface. Hence i think i have to write the driver as HBA driver
> under CAM SCSI layer. But how do i interface with the IOCTL ?

Well, the DPT driver does something like that.  It is a CAM HBA driver that
also has its own separate ioctl routine.

So you can have a separate character device interface for the HBA driver's
firmware routines, statistics and so forth.

The primary interface to the driver would be via the CAM XPT<->SIM
interface, but you would also be able to do maintenance from the character
device driver associated with your HBA driver.

Anything that utilizes SCSI commands can be accomplished via the standard
CAM peripheral drivers (da, cd, sa, pass, etc.).  Anything that needs
hardware-specific commands can use the ioctl interface in your driver.

Ken
-- 
Kenneth Merry
ken@kdm.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




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