diff options
author | 1995-12-14 05:56:35 +0000 | |
---|---|---|
committer | 1995-12-14 05:56:35 +0000 | |
commit | 6899be971604a2db97734ed08f850d6002af9cf3 (patch) | |
tree | 87e9c41a2c7a56499903cb5797e0dbe32a66b6d1 /sys/dev/ccd.c | |
parent | from netbsd: (diff) | |
download | wireguard-openbsd-6899be971604a2db97734ed08f850d6002af9cf3.tar.xz wireguard-openbsd-6899be971604a2db97734ed08f850d6002af9cf3.zip |
from netbsd:
If the read or write request can fit into a 6-byte cdb, then
use a 6-byte cdb, otherwise use the 10-byte as before.
In sdattach(), make a note if the device is "ancient" (i.e.
inqbuf.version & SID_ANSII == 0).
Implement sdminphys(): if the device is "ancient", shorten the
transfer so it will fit into a 6-byte cdb.
In sdminphys(), add a comment about the semantics of the "length" field
in a 6-byte read/write cdb (namely, length == 0 really means 256), and
that we handle this conservatively by limiting the transfer to 255 blocks.
*sigh* One just never knows how a pre-scsi-1 device is going to behave.
Remove a couple of now unneeded assignments.
Diffstat (limited to 'sys/dev/ccd.c')
0 files changed, 0 insertions, 0 deletions