From c2971789cc079e18aad42dd1f7e9120dd18bc0ed Mon Sep 17 00:00:00 2001 From: sos Date: Sun, 12 Nov 2000 20:41:24 +0000 Subject: Better handling of immediate commands, mainly to solve timeouts in the atapi-tape code... --- sys/dev/ata/atapi-fd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/dev/ata/atapi-fd.c') 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 -- cgit v1.1