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 [EMAIL PROTECTED]