summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 05:56:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 05:56:36 +0000
commite93cc51fa192019968437d7a2333e9004e271cb2 (patch)
treec6454b15b3665702af5390ee0f7bc02dd9eaf4ad /sys/arch/i386/isa/pcvt
parentd598ffe508546eaad4314b05f1e7922ba2bd6914 (diff)
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/arch/i386/isa/pcvt')
0 files changed, 0 insertions, 0 deletions