aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2004-01-11 22:08:34 +0000
committerSøren Schmidt <sos@FreeBSD.org>2004-01-11 22:08:34 +0000
commita7a120f64953015e887cb0b10fb7d8643fc91a27 (patch)
tree257dd7f1dda826312c0f73c67ce8a715f993fd74 /sys/dev/ata/atapi-tape.c
parentfd4b744b5b4ab8e22da814dc1d1419674032c8e2 (diff)
downloadsrc-a7a120f64953015e887cb0b10fb7d8643fc91a27.tar.gz
src-a7a120f64953015e887cb0b10fb7d8643fc91a27.zip
Overhaul of the timeout/reinit framework. This should clear up most
of the leftovers from the old version that really doesn't work anymore. Add a reset function for host-end of the ATA channel. This is needed for the SiI3112 in order to whack it back to reality if a device locks up the SATA interface (thereby preventing that we can reset the device). The result is that ATA now recovers from the timeouts that happens with the SiI3112A and more or less all disks based on old PATA electronics with a Marvell PATA->SATA converter. This includes lots of the popular SATA dongles and the WDC Raptor disks..
Notes
Notes: svn path=/head/; revision=124403
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index f442258e4c18..1a5d6cacae2b 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 1998 - 2003 Søren Schmidt <sos@FreeBSD.org>
+ * Copyright (c) 1998 - 2004 Søren Schmidt <sos@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <sys/bus.h>
#include <sys/mtio.h>
#include <sys/devicestat.h>
+#include <sys/sema.h>
#include <sys/taskqueue.h>
#include <machine/bus.h>
#include <dev/ata/ata-all.h>