summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-09-03 12:10:44 +0000
committersos <sos@FreeBSD.org>2004-09-03 12:10:44 +0000
commitf4de4acfe415c8a12382bfc9c19e0db082649332 (patch)
tree5dc2d8e6fdb203486ef01bec1005d2fffb03cb81 /sys/dev/ata/ata-all.h
parent42bfd75cfee107adb9e3fd0b3899fa4d0e7f0762 (diff)
downloadFreeBSD-src-f4de4acfe415c8a12382bfc9c19e0db082649332.zip
FreeBSD-src-f4de4acfe415c8a12382bfc9c19e0db082649332.tar.gz
Introduce ata_udelay() that uses tsleep instead of DELAY if possible.
In places where we have long delays that doesn't depend on too accurate timing, use ata_udelay() instead of DELAY() so we dont uselessly spin the CPU if not nessesary;
Diffstat (limited to 'sys/dev/ata/ata-all.h')
-rw-r--r--sys/dev/ata/ata-all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h
index 6d85989..7de6d7f 100644
--- a/sys/dev/ata/ata-all.h
+++ b/sys/dev/ata/ata-all.h
@@ -390,6 +390,7 @@ int ata_attach(device_t dev);
int ata_detach(device_t dev);
int ata_suspend(device_t dev);
int ata_resume(device_t dev);
+void ata_udelay(int interval);
int ata_printf(struct ata_channel *ch, int device, const char *fmt, ...) __printflike(3, 4);
int ata_prtdev(struct ata_device *atadev, const char *fmt, ...) __printflike(2, 3);
void ata_set_name(struct ata_device *atadev, char *name, int lun);
OpenPOWER on IntegriCloud