From owner-freebsd-scsi Thu Aug 8 15: 8:51 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B0D837B400 for ; Thu, 8 Aug 2002 15:08:49 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 46F2F43E6E for ; Thu, 8 Aug 2002 15:08:47 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 20873 invoked by uid 1000); 8 Aug 2002 22:08:48 -0000 Date: Thu, 8 Aug 2002 15:08:48 -0700 (PDT) From: Nate Lawson To: =?X-UNKNOWN?Q?Jean-fran=E7ois_Dalbosco?= Cc: freebsd-scsi@FreeBSD.org Subject: Re: still don't work :o( In-Reply-To: <200208080913.g789DOtP027235@enserg.enserg.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 8 Aug 2002, Jean-françois Dalbosco wrote: > 1. when i send a READ_6 opcode to the device it fullfills the > databuffer with a series of characters. They are not really what i'm > expecting but they do come from the device since i've been able to > recognize 'on the fly' a string that has something to do with the > device name. The device is a sort of Memory Disk and i was wondering > from where those data could spring out? No idea what your device is, but the data could be a boot block, device-specific storage, etc. > 2. my second question is how specific a driver can be? or in other > words does the specificity of a device only resides in the specificity > of its command opcodes or is there any other specificity that the > Passthrough driver couldn't deal with? > > thanks a lot for your help. The passthrough driver just sends the CCB to the SIM based on the path. It's up to your SIM to execute the command and the target's firmware to perform the requested operation. Try looking at the code to camcontrol/libcam. They correctly implement commands like INQUIRY that should be useful to you in learning how CAM works. has some useful premade structs for SCSI-2 commands. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message