summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-fd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-11-12 20:41:24 +0000
committersos <sos@FreeBSD.org>2000-11-12 20:41:24 +0000
commitc2971789cc079e18aad42dd1f7e9120dd18bc0ed (patch)
tree56290f2bc1382d58b3f31930dd6962ed69ffc697 /sys/dev/ata/atapi-fd.c
parentd17388a5b237b0370d7e306255870c472cf2a4ef (diff)
downloadFreeBSD-src-c2971789cc079e18aad42dd1f7e9120dd18bc0ed.zip
FreeBSD-src-c2971789cc079e18aad42dd1f7e9120dd18bc0ed.tar.gz
Better handling of immediate commands, mainly to solve timeouts
in the atapi-tape code...
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
-rw-r--r--sys/dev/ata/atapi-fd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index 3f985ef..62f844d 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -412,14 +412,10 @@ afd_eject(struct afd_softc *fdp, int close)
static int
afd_start_stop(struct afd_softc *fdp, int start)
{
- int8_t ccb[16] = { ATAPI_START_STOP, 0x01, 0, 0, start,
+ int8_t ccb[16] = { ATAPI_START_STOP, 0, 0, 0, start,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
- int error;
- error = atapi_queue_cmd(fdp->atp, ccb, NULL, 0, 0, 10, NULL, NULL);
- if (error)
- return error;
- return atapi_wait_ready(fdp->atp, 30);
+ return atapi_queue_cmd(fdp->atp, ccb, NULL, 0, 0, 30, NULL, NULL);
}
static int
OpenPOWER on IntegriCloud