diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-11-11 19:15:20 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-11-11 19:15:20 +0000 |
commit | c9d286581e3e58b2095df8618faddb7286679c36 (patch) | |
tree | 43e38bba9f78c8e5762d1540018556699b368df9 /sys | |
parent | 1ce06cb454c63a9a37ae7ca6e283bc4a10ab33ae (diff) |
SCSI commands do not send data in both directions in the data phase.
Fixes DMA bug Angelos was seeing with DVD stuff.
Happy ripping!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/cd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 1c606dd73e8..5953133319a 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.49 1999/11/09 23:14:19 angelos Exp $ */ +/* $OpenBSD: cd.c,v 1.50 1999/11/11 19:15:19 csapuntz Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -1655,7 +1655,7 @@ dvd_auth(cd, a) dvd_copy_challenge(&buf[4], a->hsc.chal); error = scsi_scsi_cmd(cd->sc_link, &cmd, sizeof(cmd), buf, 16, CDRETRIES, 30000, NULL, - SCSI_DATA_OUT|SCSI_DATA_IN); + SCSI_DATA_OUT); if (error) return (error); a->type = DVD_LU_SEND_KEY1; @@ -1669,7 +1669,7 @@ dvd_auth(cd, a) dvd_copy_key(&buf[4], a->hsk.key); error = scsi_scsi_cmd(cd->sc_link, &cmd, sizeof(cmd), buf, 12, CDRETRIES, 30000, NULL, - SCSI_DATA_OUT|SCSI_DATA_IN); + SCSI_DATA_OUT); if (error) { a->type = DVD_AUTH_FAILURE; return (error); |