summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-03-05 09:43:30 +0000
committersos <sos@FreeBSD.org>1999-03-05 09:43:30 +0000
commit84b9188bc6d2104df298fac795d1e2977c6dea6e (patch)
treeb3beba461d45b95646d0e8117c5a8d4cfcd92d74 /sys/dev/ata/atapi-tape.c
parent801213cd08eae6e66a4b862813a82db6a997140f (diff)
downloadFreeBSD-src-84b9188bc6d2104df298fac795d1e2977c6dea6e.zip
FreeBSD-src-84b9188bc6d2104df298fac795d1e2977c6dea6e.tar.gz
Now all actual probing of both ATA & ATAPI devices are done after
interrupts are enabled, this kills the last "unwanted interrupts" (and there is no ugly hacks like in the old driver to avoid them). COmmand interrupt devices are now supported, this applies mostly to older CDROM's and apparently also the ZIP. Fixed problems: Number of total sectors wrong on some older drives. Fixed by not using the LBA size unless we know its valid. There has also been more general code clenaups, some reorgs also.
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index c51521d..d938cc2 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: atapi-tape.c,v 1.1 1999/03/01 21:19:18 sos Exp $
+ * $Id: atapi-tape.c,v 1.2 1999/03/03 21:10:29 sos Exp $
*/
#include "ata.h"
@@ -209,7 +209,7 @@ ast_describe(struct ast_softc *stp)
printf("\n");
}
-static int32_t
+static int
astopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
{
int32_t lun = UNIT(dev);
@@ -228,7 +228,7 @@ astopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
return 0;
}
-static int32_t
+static int
astclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
{
int32_t lun = UNIT(dev);
@@ -257,19 +257,19 @@ astclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
return 0;
}
-static int32_t
+static int
astread(dev_t dev, struct uio *uio, int32_t ioflag)
{
return physio(aststrategy, NULL, dev, 1, minphys, uio);
}
-static int32_t
+static int
astwrite(dev_t dev, struct uio *uio, int32_t ioflag)
{
return physio(aststrategy, NULL, dev, 0, minphys, uio);
}
-static int32_t
+static int
astioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
{
int32_t lun = UNIT(dev);
OpenPOWER on IntegriCloud