summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/scsi/st.txt6
-rw-r--r--drivers/scsi/st.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/Documentation/scsi/st.txt b/Documentation/scsi/st.txt
index 685bf3582abe..f346abbdd6ff 100644
--- a/Documentation/scsi/st.txt
+++ b/Documentation/scsi/st.txt
@@ -112,10 +112,8 @@ attempted).
112 112
113MINOR NUMBERS 113MINOR NUMBERS
114 114
115The tape driver currently supports 128 drives by default. This number 115The tape driver currently supports up to 2^17 drives if 4 modes for
116can be increased by editing st.h and recompiling the driver if 116each drive are used.
117necessary. The upper limit is 2^17 drives if 4 modes for each drive
118are used.
119 117
120The minor numbers consist of the following bit fields: 118The minor numbers consist of the following bit fields:
121 119
diff --git a/drivers/scsi/st.h b/drivers/scsi/st.h
index b7a07c7bf4f8..f3eee0f9f40c 100644
--- a/drivers/scsi/st.h
+++ b/drivers/scsi/st.h
@@ -78,7 +78,7 @@ struct st_modedef {
78#define ST_MODE_SHIFT (7 - ST_NBR_MODE_BITS) 78#define ST_MODE_SHIFT (7 - ST_NBR_MODE_BITS)
79#define ST_MODE_MASK ((ST_NBR_MODES - 1) << ST_MODE_SHIFT) 79#define ST_MODE_MASK ((ST_NBR_MODES - 1) << ST_MODE_SHIFT)
80 80
81#define ST_MAX_TAPES 128 81#define ST_MAX_TAPES (1 << (20 - (ST_NBR_MODE_BITS + 1)))
82#define ST_MAX_TAPE_ENTRIES (ST_MAX_TAPES << (ST_NBR_MODE_BITS + 1)) 82#define ST_MAX_TAPE_ENTRIES (ST_MAX_TAPES << (ST_NBR_MODE_BITS + 1))
83 83
84/* The status related to each partition */ 84/* The status related to each partition */