summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_tape.h
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-07-29 11:49:13 +0000
committernate <nate@FreeBSD.org>1993-07-29 11:49:13 +0000
commitfced37b778baf5154655fa9164d6fa35394eb5c5 (patch)
treec866c3641ffe46672d9d64b1fc2088302a45cf20 /sys/scsi/scsi_tape.h
parentbd756598769d4baa81e8f9812d8da44658185e17 (diff)
downloadFreeBSD-src-fced37b778baf5154655fa9164d6fa35394eb5c5.zip
FreeBSD-src-fced37b778baf5154655fa9164d6fa35394eb5c5.tar.gz
Removed PATCHKIT headers and updated our sources to Julian's with
our patches back in. Major changes to the Bustek driver and the Tape driver, the rest are minor.
Diffstat (limited to 'sys/scsi/scsi_tape.h')
-rw-r--r--sys/scsi/scsi_tape.h93
1 files changed, 79 insertions, 14 deletions
diff --git a/sys/scsi/scsi_tape.h b/sys/scsi/scsi_tape.h
index 2b8a82f..f4a26d7 100644
--- a/sys/scsi/scsi_tape.h
+++ b/sys/scsi/scsi_tape.h
@@ -1,20 +1,20 @@
/*
* HISTORY
- * $Log: scsi_tape.h,v $
+ * $Log: scsi_tape.h,v $
+ *
+ * julian - added some special stuff for some OLD scsi tapes (CIPHER
+ * ST150S)
+ *
+ * Revision 1.1.1.1 1993/06/12 14:57:27 rgrimes
+ * Initial import, 0.1 + pk 0.2.4-B1
+ *
+ *
* Revision 1.2 1993/01/26 18:39:08 julian
* add the 'write protected' bit in the device status struct.
*
* Revision 1.1 1992/09/26 22:10:21 julian
* Initial revision
*
- *
- * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
- * -------------------- ----- ----------------------
- * CURRENT PATCH LEVEL: 1 00098
- * -------------------- ----- ----------------------
- *
- * 16 Feb 93 Julian Elischer ADDED for SCSI system
- *
*/
/*
@@ -159,11 +159,76 @@ struct scsi_mode_header_tape
u_char blk_desc_len;
};
+/* A special for the CIPHER ST150S(old drive) */
+struct blk_desc_cipher
+{
+ u_char density;
+ u_char nblocks[3];
+ u_char reserved;
+ u_char blklen[3];
+ u_char sec:1; /* soft error count */
+ u_char aui:1; /* autoload inhibit */
+ u_char :6;
+};
+
+
-#define QIC_120 0x0f
-#define QIC_150 0x10
-#define QIC_320 0x11
-#define QIC_525 0x11
-#define QIC_1320 0x12
+/**********************************************************************
+ from the scsi2 spec
+ Value Tracks Density(bpi) Code Type Reference Note
+ 0x1 9 800 NRZI R X3.22-1983 2
+ 0x2 9 1600 PE R X3.39-1986 2
+ 0x3 9 6250 GCR R X3.54-1986 2
+ 0x5 4/9 8000 GCR C X3.136-1986 1
+ 0x6 9 3200 PE R X3.157-1987 2
+ 0x7 4 6400 IMFM C X3.116-1986 1
+ 0x8 4 8000 GCR CS X3.158-1986 1
+ 0x9 18 37871 GCR C X3B5/87-099 2
+ 0xA 22 6667 MFM C X3B5/86-199 1
+ 0xB 4 1600 PE C X3.56-1986 1
+ 0xC 24 12690 GCR C HI-TC1 1,5
+ 0xD 24 25380 GCR C HI-TC2 1,5
+ 0xF 15 10000 GCR C QIC-120 1,5
+ 0x10 18 10000 GCR C QIC-150 1,5
+ 0x11 26 16000 GCR C QIC-320(525?) 1,5
+ 0x12 30 51667 RLL C QIC-1350 1,5
+ 0x13 1 61000 DDS CS X3B5/88-185A 4
+ 0x14 1 43245 RLL CS X3.202-1991 4
+ 0x15 1 45434 RLL CS ECMA TC17 4
+ 0x16 48 10000 MFM C X3.193-1990 1
+ 0x17 48 42500 MFM C X3B5/91-174 1
+
+ where Code means:
+ NRZI Non Return to Zero, change on ones
+ GCR Group Code Recording
+ PE Phase Encoded
+ IMFM Inverted Modified Frequency Modulation
+ MFM Modified Frequency Modulation
+ DDS Dat Data Storage
+ RLL Run Length Encoding
+
+ where Type means:
+ R Real-to-Real
+ C Cartridge
+ CS cassette
+
+ where Notes means:
+ 1 Serial Recorded
+ 2 Parallel Recorded
+ 3 Old format know as QIC-11
+ 4 Helical Scan
+ 5 Not ANSI standard, rather industry standard.
+
+********************************************************************/
+
+#define HALFINCH_800 0x01
+#define HALFINCH_1600 0x02
+#define HALFINCH_6250 0x03
+#define QIC_24 0x05 /* may be bad, works for CIPHER ST150S XXX */
+#define QIC_120 0x0f
+#define QIC_150 0x10
+#define QIC_320 0x11
+#define QIC_525 0x11
+#define QIC_1320 0x12
OpenPOWER on IntegriCloud