mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
From: Sergey Ryzhkov, Serge Vakulenko
E-mail: <sir@kiae.su>, <vak@zebub.msk.su> added new /dev/wt entries for wt.c version 1.3 8) Some controllers support only 1024 block length. Setting WT_BSIZE bit in device minor number turns on this mode. Minor number structure: 0bfffuuu Fields: uuu - Unit number. It's possible to install up to three tape controllers on the same machine, using DRQs 1..3. Hence, unit number can lie in range 0..2. fff - Tape format number: 0 - /dev/rwt0 - default density (auto select) 1 - /dev/rwt0a - QIC 11 (obsolete) 2 - /dev/rwt0b - QIC 24 (60 megabytes) 3 - /dev/rwt0c - QIC 120 (120 megabytes) 4 - /dev/rwt0d - QIC 150 (150 megabytes) 5 - /dev/rwt0e - QIC 300 (300 megabytes?) 6 - /dev/rwt0f - QIC 600 (600 megabytes?) b - Long block size flag. With this bit set, the driver will perform all i/o operations with the controller using 1024-byte blocks, instead of 512 ones. Some controllers need it (CMS for example). If you Wangtek controller does not stream well, you can try to use /dev/rWt0 device instead of /dev/rwt0 (uncomment needed lines in /dev/MAKEDEV to create it). Block interface (writing blocks less than 2048 bytes) is not functioning pwoperly. Use raw interface instead. Thanks to all who helped to test it on the following hardware: Controller Drive Volume Interface Thanks to --------------------------------------------------------------------------- Archive SC-499 Archive 2150L 150 Meg QIC-02 KIAE CMS? ? 150 Meg QIC-02 KIAE Everex EV 831/833 ? ? QIC-36 Joergen Haegg Wangtek ASSY Wangtek 60 Meg QIC-02 Ken Whedbee Tecmar QT150i? Wangtek 5150EQ ? QIC-02? Marko Teiste ? Wangtek 5099EK 60 Meg QIC-36 Robert Shien Archive SC400S ? 60 Meg ? Warren Toomey
This commit is contained in:
parent
8b4d35c5ee
commit
d79c566f9d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=860
24
etc/MAKEDEV
24
etc/MAKEDEV
@ -71,7 +71,7 @@
|
||||
# tw* xten power controller
|
||||
# snd* various sound cards
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.15 1993/11/06 23:22:23 wollman Exp $
|
||||
# $Id: MAKEDEV,v 1.16 1993/11/22 05:40:49 rgrimes Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -118,15 +118,23 @@ std)
|
||||
wt*)
|
||||
umask 2 ; u=`expr $i : '..\(.*\)'`
|
||||
if [ x$u = x ]; then u=0; fi
|
||||
rm -f rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
|
||||
mknod rwt${u} c 10 `expr 0 + $u` # 150 megabytes
|
||||
rm -f r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
|
||||
mknod rwt${u} c 10 `expr 0 + $u`# default density, 512b blocks
|
||||
mknod nrwt${u} c 10 `expr 4 + $u`
|
||||
mknod rwt${u}a c 10 `expr 8 + $u` # 120 megabytes
|
||||
mknod nrwt${u}a c 10 `expr 12 + $u`
|
||||
mknod rwt${u}b c 10 `expr 16 + $u` # 60 megabytes
|
||||
# mknod rWt${u} c 10 `expr 64 + $u` # default density, 1024b blocks
|
||||
# mknod nrWt${u} c 10 `expr 68 + $u`
|
||||
mknod rwt${u}b c 10 `expr 16 + $u` # 60 megabytes
|
||||
mknod nrwt${u}b c 10 `expr 20 + $u`
|
||||
chown root.operator rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
|
||||
umask 77;
|
||||
mknod rwt${u}c c 10 `expr 24 + $u` # 120 megabytes
|
||||
mknod nrwt${u}c c 10 `expr 28 + $u`
|
||||
mknod rwt${u}d c 10 `expr 32 + $u` # 150 megabytes
|
||||
mknod nrwt${u}d c 10 `expr 36 + $u`
|
||||
# mknod rwt${u}e c 10 `expr 40 + $u` # 300 megabytes?
|
||||
# mknod nrwt${u}e c 10 `expr 44 + $u`
|
||||
# mknod rwt${u}f c 10 `expr 48 + $u` # 600 megabytes?
|
||||
# mknod nrwt${u}f c 10 `expr 52 + $u`
|
||||
chown root.operator r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
|
||||
umask 77
|
||||
;;
|
||||
|
||||
fd*|sd*|wd*)
|
||||
|
@ -71,7 +71,7 @@
|
||||
# tw* xten power controller
|
||||
# snd* various sound cards
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.15 1993/11/06 23:22:23 wollman Exp $
|
||||
# $Id: MAKEDEV,v 1.16 1993/11/22 05:40:49 rgrimes Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -118,15 +118,23 @@ std)
|
||||
wt*)
|
||||
umask 2 ; u=`expr $i : '..\(.*\)'`
|
||||
if [ x$u = x ]; then u=0; fi
|
||||
rm -f rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
|
||||
mknod rwt${u} c 10 `expr 0 + $u` # 150 megabytes
|
||||
rm -f r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
|
||||
mknod rwt${u} c 10 `expr 0 + $u`# default density, 512b blocks
|
||||
mknod nrwt${u} c 10 `expr 4 + $u`
|
||||
mknod rwt${u}a c 10 `expr 8 + $u` # 120 megabytes
|
||||
mknod nrwt${u}a c 10 `expr 12 + $u`
|
||||
mknod rwt${u}b c 10 `expr 16 + $u` # 60 megabytes
|
||||
# mknod rWt${u} c 10 `expr 64 + $u` # default density, 1024b blocks
|
||||
# mknod nrWt${u} c 10 `expr 68 + $u`
|
||||
mknod rwt${u}b c 10 `expr 16 + $u` # 60 megabytes
|
||||
mknod nrwt${u}b c 10 `expr 20 + $u`
|
||||
chown root.operator rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
|
||||
umask 77;
|
||||
mknod rwt${u}c c 10 `expr 24 + $u` # 120 megabytes
|
||||
mknod nrwt${u}c c 10 `expr 28 + $u`
|
||||
mknod rwt${u}d c 10 `expr 32 + $u` # 150 megabytes
|
||||
mknod nrwt${u}d c 10 `expr 36 + $u`
|
||||
# mknod rwt${u}e c 10 `expr 40 + $u` # 300 megabytes?
|
||||
# mknod nrwt${u}e c 10 `expr 44 + $u`
|
||||
# mknod rwt${u}f c 10 `expr 48 + $u` # 600 megabytes?
|
||||
# mknod nrwt${u}f c 10 `expr 52 + $u`
|
||||
chown root.operator r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
|
||||
umask 77
|
||||
;;
|
||||
|
||||
fd*|sd*|wd*)
|
||||
|
Loading…
Reference in New Issue
Block a user