diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-28 13:19:42 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-28 13:19:42 +0000 |
commit | 685a08f618f1d6486b02feef5b92ac3394ea6396 (patch) | |
tree | f25bfc481f2cb006b34dbf02b521cbcb41bb9726 /sys/scsi/scsi_tape.h | |
parent | 076633a669c18cf80f86ceecd10b4d49f02cd834 (diff) | |
download | FreeBSD-src-685a08f618f1d6486b02feef5b92ac3394ea6396.zip FreeBSD-src-685a08f618f1d6486b02feef5b92ac3394ea6396.tar.gz |
Andreas Klemm's tape erase patches from 1.1.5.1
Submitted by: andreas
Diffstat (limited to 'sys/scsi/scsi_tape.h')
-rw-r--r-- | sys/scsi/scsi_tape.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/scsi/scsi_tape.h b/sys/scsi/scsi_tape.h index 920a781..3741136 100644 --- a/sys/scsi/scsi_tape.h +++ b/sys/scsi/scsi_tape.h @@ -21,7 +21,7 @@ /* * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: scsi_tape.h,v 1.8 1993/11/18 05:02:57 rgrimes Exp $ + * $Id: scsi_tape.h,v 1.9 1994/09/28 20:16:42 se Exp $ */ #ifndef SCSI_SCSI_TAPE_H #define SCSI_SCSI_TAPE_H 1 @@ -72,6 +72,23 @@ struct scsi_rewind u_char control; } rewind; +/* +** Tape erase - AKL: Andreas Klemm <andreas@knobel.gun.de> +*/ +struct scsi_erase +{ + u_char op_code; + u_char byte2; +#define SE_LONG 0x01 /* + ** Archive Viper 2525 doesn't allow short + ** erase, other tapes possibly don't allow + ** that, too. + */ +#define SE_IMMED 0x02 + u_char unused[3]; + u_char control; +} erase; + struct scsi_load { u_char op_code; @@ -104,6 +121,7 @@ struct scsi_blk_limits #define WRITE_COMMAND_TAPE 0x0a #define WRITE_FILEMARKS 0x10 #define SPACE 0x11 +#define ERASE 0x19 /* AKL */ #define LOAD_UNLOAD 0x1b /* same as above */ |