summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2001-02-06 16:44:25 +0000
committersos <sos@FreeBSD.org>2001-02-06 16:44:25 +0000
commit4793d374a0033084a4f9740552e348cfc927d67d (patch)
tree8bc04e5eb148942dcd6b0b92a9d6c20c296a27c1 /sys/dev/ata/atapi-tape.c
parent68da07f7352180f928c486026cdadea9fb3f4254 (diff)
downloadFreeBSD-src-4793d374a0033084a4f9740552e348cfc927d67d.zip
FreeBSD-src-4793d374a0033084a4f9740552e348cfc927d67d.tar.gz
Introduce busspace instead of the good old in/out instructions.
Not pretty but it works (I hope)...
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index 05d80ca..da55714 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -555,7 +555,7 @@ ast_write_filemark(struct ast_softc *stp, u_int8_t function)
error = atapi_queue_cmd(stp->atp, ccb, NULL, 0, 0, 10, NULL, NULL);
if (error)
return error;
- return atapi_wait_ready(stp->atp, 10*60);
+ return atapi_wait_dsc(stp->atp, 10*60);
}
static int
@@ -594,7 +594,7 @@ ast_locate(struct ast_softc *stp, int hard, u_int32_t pos)
error = atapi_queue_cmd(stp->atp, ccb, NULL, 0, 0, 10, NULL, NULL);
if (error)
return error;
- return atapi_wait_ready(stp->atp, 60*60);
+ return atapi_wait_dsc(stp->atp, 60*60);
}
static int
@@ -621,7 +621,7 @@ ast_load_unload(struct ast_softc *stp, u_int8_t function)
tsleep((caddr_t)&error, PRIBIO, "astlu", 1 * hz);
if (function == SS_EJECT)
return 0;
- return atapi_wait_ready(stp->atp, 60*60);
+ return atapi_wait_dsc(stp->atp, 60*60);
}
static int
@@ -634,7 +634,7 @@ ast_rewind(struct ast_softc *stp)
error = atapi_queue_cmd(stp->atp, ccb, NULL, 0, 0, 10, NULL, NULL);
if (error)
return error;
- return atapi_wait_ready(stp->atp, 60*60);
+ return atapi_wait_dsc(stp->atp, 60*60);
}
static int
OpenPOWER on IntegriCloud