| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Message-ID: <380E8C88.21109B28@interlog.com> Date: Wed, 20 Oct 1999 23:46:16 -0400 From: Douglas Gilbert <dgilbert@interlog.com> MIME-Version: 1.0 To: charles anderson <anderson@CS.ColoState.EDU> CC: linux-scsi@vger.rutgers.edu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit charles anderson wrote: > > The generic scsi documentation says group 6 (device-specific) > commands, with operation code 0xC0, must be 12-byte commands. When I > 'write" an sg struct containing a 12-byte 0xC0 command, it returns > okay, but when I 'write' on sg struct containing a 6-byte 0xC0 > command, it returns a -1 return code. My problem is that the device I > am controlling is designed for 6-byte 0xC0 commands. What can I do to > pass the 6-byte commands through to the device? I am using an Adaptec > 1480 pcmcia card with the aic7xxx driver. Chuck, There is an awkward way around that with the SG_NXT_CMD_LEN ioctl() in kernels 2.2.10 and above. The documentation you should be reading is in the kernel source tree, probably at /usr/src/linux/Documentation/scsi-generic.txt . It discusses that command. If you feel adventurous then try the new sg interface at http://www.torque.net/sg [follow interface link] It has just been updated and amongst other things makes a fair amount of information available in the /proc/scsi/sg directory and does direct IO. [The latter needs some symbols exported.] Doug Gilbert - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.rutgers.edu
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |