summaryrefslogtreecommitdiff
path: root/share/man/man4/man4.hp300
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-08-03 21:46:59 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-08-03 21:46:59 +0000
commite710973823a9bbc5e904b1e829a0707e61ff21c5 (patch)
treeb089733d9e628b19e64a9e7909e96308a3f8877f /share/man/man4/man4.hp300
parent64d5018aaa427d0e10165c038e59678b058e4f55 (diff)
Replace the old 4.4BSD scsi code used on hp300 with a ``real'' driver
interfaced with the MI scsi code. Adapted from NetBSD with some changes (especially to get tape and old cd-rom drives to not cause the driver to spin during probe). Tested by millert@ and I, ok millert@
Diffstat (limited to 'share/man/man4/man4.hp300')
-rw-r--r--share/man/man4/man4.hp300/Makefile6
-rw-r--r--share/man/man4/man4.hp300/ct.48
-rw-r--r--share/man/man4/man4.hp300/dio.410
-rw-r--r--share/man/man4/man4.hp300/hd.48
-rw-r--r--share/man/man4/man4.hp300/intro.412
-rw-r--r--share/man/man4/man4.hp300/oscsi.463
-rw-r--r--share/man/man4/man4.hp300/sd.4154
-rw-r--r--share/man/man4/man4.hp300/spc.459
-rw-r--r--share/man/man4/man4.hp300/st.4241
9 files changed, 83 insertions, 478 deletions
diff --git a/share/man/man4/man4.hp300/Makefile b/share/man/man4/man4.hp300/Makefile
index 9a1385826d6..ed6fa56d45c 100644
--- a/share/man/man4/man4.hp300/Makefile
+++ b/share/man/man4/man4.hp300/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.8 2003/03/16 20:12:50 miod Exp $
+# $OpenBSD: Makefile,v 1.9 2004/08/03 21:46:49 miod Exp $
# from: @(#)Makefile 5.1 (Berkeley) 6/29/90
MAN= apci.4 autoconf.4 cons.4 ct.4 dca.4 dcm.4 dio.4 dvbox.4 frodo.4 gbox.4 \
- grf.4 hd.4 hil.4 hyper.4 intro.4 ite.4 le.4 mem.4 nhpib.4 oscsi.4 \
- ppi.4 rbox.4 sd.4 topcat.4
+ grf.4 hd.4 hil.4 hyper.4 intro.4 ite.4 le.4 mem.4 nhpib.4 \
+ ppi.4 rbox.4 spc.4 topcat.4
MLINKS= mem.4 kmem.4
MLINKS+=nhpib.4 fhpib.4 nhpib.4 hpibbus.4
MANSUBDIR=hp300
diff --git a/share/man/man4/man4.hp300/ct.4 b/share/man/man4/man4.hp300/ct.4
index 24b9e691830..b186367cbea 100644
--- a/share/man/man4/man4.hp300/ct.4
+++ b/share/man/man4/man4.hp300/ct.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ct.4,v 1.9 2003/06/02 23:30:13 millert Exp $
+.\" $OpenBSD: ct.4,v 1.10 2004/08/03 21:46:49 miod Exp $
.\
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -96,12 +96,16 @@ through
refer to streaming no-rewind interfaces.
.Sh SEE ALSO
.Xr mt 1 ,
+.Xr cd 4 ,
+.Xr ch 4 ,
.Xr hd 4 ,
.Xr hpibbus 4 ,
.Xr intro 4 ,
.Xr mtio 4 ,
.Xr sd 4 ,
-.Xr st 4
+.Xr ss 4 ,
+.Xr st 4 ,
+.Xr uk 4
.Sh BUGS
Read and writes of less than 1024 bytes will not behave as expected.
The 9145 device is currently treated as a 9144.
diff --git a/share/man/man4/man4.hp300/dio.4 b/share/man/man4/man4.hp300/dio.4
index 797a379c29b..045120005c4 100644
--- a/share/man/man4/man4.hp300/dio.4
+++ b/share/man/man4/man4.hp300/dio.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dio.4,v 1.3 2004/03/22 22:07:20 miod Exp $
+.\" $OpenBSD: dio.4,v 1.4 2004/08/03 21:46:49 miod Exp $
.\" $NetBSD: dio.4,v 1.2 2002/01/15 01:31:30 wiz Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd September 10, 2001
+.Dd July 27, 2004
.Dt DIO 4 hp300
.Os
.Sh NAME
@@ -105,8 +105,8 @@ HP-IB interface
.El
.Ss SCSI interfaces
.Bl -tag -width XXXXXX_4_ -offset indent -compact
-.It Xr oscsi 4
-Old HP300 SCSI driver
+.It Xr spc 4
+HP 98658 SCSI host adaptor
.El
.Sh SEE ALSO
.Xr dca 4 ,
@@ -117,6 +117,6 @@ Old HP300 SCSI driver
.Xr hyper 4 ,
.Xr intro 4 ,
.Xr le 4 ,
-.Xr oscsi 4 ,
.Xr rbox 4 ,
+.Xr spc 4 ,
.Xr topcat 4
diff --git a/share/man/man4/man4.hp300/hd.4 b/share/man/man4/man4.hp300/hd.4
index bfd7796050c..29b38741bfc 100644
--- a/share/man/man4/man4.hp300/hd.4
+++ b/share/man/man4/man4.hp300/hd.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hd.4,v 1.11 2003/07/21 09:24:33 jmc Exp $
+.\" $OpenBSD: hd.4,v 1.12 2004/08/03 21:46:49 miod Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -315,11 +315,15 @@ An unrecoverable data error occurred during transfer of the
specified block on the specified disk.
.El
.Sh SEE ALSO
+.Xr cd 4 ,
+.Xr ch 4 ,
.Xr \&ct 4 ,
.Xr hpibbus 4 ,
.Xr intro 4 ,
.Xr sd 4 ,
-.Xr st 4
+.Xr ss 4 ,
+.Xr st 4 ,
+.Xr uk 4
.Sh BUGS
The current disk partitioning is totally bogus.
.Tn CS/80
diff --git a/share/man/man4/man4.hp300/intro.4 b/share/man/man4/man4.hp300/intro.4
index 163bbedb448..dde08fe2ffd 100644
--- a/share/man/man4/man4.hp300/intro.4
+++ b/share/man/man4/man4.hp300/intro.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.4,v 1.19 2004/03/31 08:33:56 jmc Exp $
+.\" $OpenBSD: intro.4,v 1.20 2004/08/03 21:46:49 miod Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)intro.4 8.1 (Berkeley) 6/5/93
.\"
-.Dd June 5, 1993
+.Dd July 27, 2004
.Dt INTRO 4 hp300
.Os
.Sh NAME
@@ -140,18 +140,14 @@ frame buffer.
HP Internal Terminal Emulator.
.It Xr le 4
98643 LANCE-based Ethernet interface.
-.It Xr oscsi
-Old HP300 SCSI interface.
.It Xr ppi 4
HP-IB printer/plotter interface.
.It Xr rbox 4
.Tn HP98720
.Dq Renaissance
frame buffer.
-.It Xr sd 4
-SCSI disk drives.
-.It Xr st 4
-CCS SCSI tape drives.
+.It Xr spc 4
+HP 98658 SCSI host adaptor.
.It Xr topcat 4
.Tn HP98544
.Dq Topcat ,
diff --git a/share/man/man4/man4.hp300/oscsi.4 b/share/man/man4/man4.hp300/oscsi.4
deleted file mode 100644
index 540aeebbcf3..00000000000
--- a/share/man/man4/man4.hp300/oscsi.4
+++ /dev/null
@@ -1,63 +0,0 @@
-.\" $OpenBSD: oscsi.4,v 1.1 2003/03/16 20:12:51 miod Exp $
-.\" $NetBSD: oscsi.4,v 1.2 2002/01/15 01:36:36 wiz Exp $
-.\"
-.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by Gregory McGarry.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the NetBSD
-.\" Foundation, Inc. and its contributors.
-.\" 4. Neither the name of The NetBSD Foundation nor the names of its
-.\" contributors may be used to endorse or promote products derived
-.\" from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd September 11, 2001
-.Dt OSCSI 4 hp300
-.Os
-.Sh NAME
-.Nm oscsi
-.Nd
-.Tn old HP300 CCS SCSI interface
-.Sh SYNOPSIS
-.Cd "oscsi* at dio? scode ?"
-.Cd "sd* at oscsi? target ? lun ?"
-.Cd "st* at oscsi? target ? lun ?"
-.Cd "ac* at oscsi? target ? lun ?"
-.Sh DESCRIPTION
-The
-.Nm
-driver supports the SCSI interface on HP 9000/3xx and 9000/4xx series
-workstations.
-.Sh SEE ALSO
-.\".Xr ac 4 ,
-.Xr dio 4 ,
-.Xr intro 4 ,
-.Xr sd 4 ,
-.Xr st 4
-.Sh BUGS
-The current interface should be replaced with the
-machine-independent SCSI subsystem.
diff --git a/share/man/man4/man4.hp300/sd.4 b/share/man/man4/man4.hp300/sd.4
deleted file mode 100644
index 7404ce5671f..00000000000
--- a/share/man/man4/man4.hp300/sd.4
+++ /dev/null
@@ -1,154 +0,0 @@
-.\" $OpenBSD: sd.4,v 1.7 2003/11/09 16:06:07 jmc Exp $
-.\"
-.\" Copyright (c) 1996
-.\" Julian Elischer <julian@freebsd.org>. All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\"
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.Dd January 18, 1996
-.Dt SD 4 hp300
-.Os
-.Sh NAME
-.Nm sd
-.Nd SCSI disk driver
-.Sh SYNOPSIS
-.Cd "sd* at oscsi? target ? lun ?"
-.Sh DESCRIPTION
-The
-.Nm
-driver provides support for a
-.Tn SCSI
-disk.
-It allows the disk to be divided up into a set of pseudo devices called
-.Em partitions .
-.Pp
-When the
-.Tn SCSI
-adapter is probed during boot, the
-.Tn SCSI
-bus is scanned for devices.
-Any devices found which answer as
-.Sq Em Direct
-type devices will be attached to the
-.Nm
-driver.
-The devices will be attached as
-.Li sdN
-devices, matching their
-.Tn SCSI
-identifiers.
-For example, a disk with
-.Tn SCSI
-id set to 6 will attach as
-.Li sd6 .
-.Sh PARTITIONING
-.Xr disklabel 8
-is used to partition the drive into filesystems.
-.Sh IOCTLS
-The following
-.Xr ioctl 2
-calls apply to
-.Tn SCSI
-disks as well as to other disks.
-They are defined in the header file
-.Aq Pa sys/disklabel.h .
-.Bl -tag -width DIOCSDINFO
-.\".It Dv DIOCSBAD
-.\"Usually used to set up a bad-block mapping system on the disk.
-.\".Tn SCSI
-.\"drive incorporate their own bad-block mapping so this command is not
-.\"implemented.
-.It Dv DIOCGDINFO
-Read, from the kernel, the in-core copy of the disklabel for the
-drive.
-This may be a fictitious disklabel if the drive has never
-been initialized, in which case it will contain information read
-from the
-.Tn SCSI
-inquiry commands.
-.It Dv DIOCSDINFO
-Give the driver a new disklabel to use.
-The driver
-.Em will not
-write the new
-disklabel to the disk.
-.It Dv DIOCWLABEL
-Enable or disable the driver's software
-write protect of the disklabel on the disk.
-.It Dv DIOCWDINFO
-Give the driver a new disklabel to use.
-The driver
-.Em will
-write the new disklabel to the disk.
-.It Dv DIOCLOCK
-Lock the media cartridge into the device, or unlock a cartridge previously
-locked.
-Used to prevent user and software eject while the media is in use.
-.It Dv DIOCEJECT
-Eject the media cartridge from a removable device.
-.El
-.Pp
-In addition, the
-.Tn SCSI
-general
-.Fn ioctl
-commands may be used with the
-.Nm
-driver, but only against the
-.Sq Li c
-(whole disk) partition.
-.Sh NOTES
-If a removable device is attached to the
-.Nm
-driver, then the act of changing the media will invalidate the
-disklabel and information held within the kernel.
-To avoid corruption, all access to the device will be discarded until there
-are no more open file descriptors referencing the device.
-During this period, all new open attempts will be rejected.
-When no more open file descriptors reference the device, the next
-open will load a new set of parameters (including disklabel) for the drive.
-.Sh FILES
-.Bl -tag -width /dev/rsdXXXXX -compact
-.It Pa /dev/sd Ns Ar u Ns Ar p
-block mode
-.Tn SCSI
-disk unit
-.Ar u ,
-partition
-.Ar p
-.It Pa /dev/rsd Ns Ar u Ns Ar p
-raw mode
-.Tn SCSI
-disk unit
-.Ar u ,
-partition
-.Ar p
-.El
-.Sh SEE ALSO
-.Xr \&ct 4 ,
-.Xr hd 4 ,
-.Xr intro 4 ,
-.Xr oscsi 4 ,
-.Xr st 4 ,
-.Xr disklabel 5 ,
-.Xr disklabel 8
diff --git a/share/man/man4/man4.hp300/spc.4 b/share/man/man4/man4.hp300/spc.4
new file mode 100644
index 00000000000..472c22fc9c0
--- /dev/null
+++ b/share/man/man4/man4.hp300/spc.4
@@ -0,0 +1,59 @@
+.\" $OpenBSD: spc.4,v 1.1 2004/08/03 21:46:49 miod Exp $
+.\" $NetBSD: spc.4,v 1.1 2003/08/01 02:36:04 tsutsui Exp $
+.\"
+.\" Copyright (c) 2003 Izumi Tsutsui. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd July 27, 2004
+.Dt SPC 4 hp300
+.Os
+.Sh NAME
+.Nm spc
+.Nd HP 98658 SCSI host adaptor driver
+.Sh SYNOPSIS
+.Cd "spc* at dio? scode ?"
+.Pp
+.Cd "scsibus* at spc?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the
+.Tn Fujitsu
+MB87030/MB89352
+.Tn SCSI
+Protocol Controller (SPC) chips, used as part of the
+.Tn HP
+98658 SCSI interface.
+.Sh SEE ALSO
+.Xr cd 4 ,
+.Xr ch 4 ,
+.Xr dio 4 ,
+.Xr intro 4 ,
+.Xr scsi 4 ,
+.Xr sd 4 ,
+.Xr ss 4 ,
+.Xr st 4 ,
+.Xr uk 4
+.Sh BUGS
+Synchronous data transfers are not currently supported.
diff --git a/share/man/man4/man4.hp300/st.4 b/share/man/man4/man4.hp300/st.4
deleted file mode 100644
index 16c841980c6..00000000000
--- a/share/man/man4/man4.hp300/st.4
+++ /dev/null
@@ -1,241 +0,0 @@
-.\" $OpenBSD: st.4,v 1.15 2003/06/06 10:29:42 jmc Exp $
-.\"
-.\" Copyright (c) 1990, 1991, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" This code is derived from software contributed to Berkeley by
-.\" the Systems Programming Group of the University of Utah Computer
-.\" Science Department.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" from: @(#)st.4 8.2 (Berkeley) 11/30/93
-.\"
-.Dd November 30, 1993
-.Dt ST 4 hp300
-.Os
-.Sh NAME
-.Nm st
-.Nd
-.Tn CCS SCSI
-tape driver
-.Sh SYNOPSIS
-.Cd "st* at oscsi? target ? lun ?"
-.Sh DESCRIPTION
-The
-.Nm
-driver was written especially to support the Exabyte
-.Tn EXB-8200 8MM
-Cartridge
-Tape Subsystem.
-It has several extensions specific to the Exabyte, but should support other
-tape drives as long as they follow the
-.Tn ANSI SCSI-I
-specification.
-Besides extensive use with an Exabyte, the driver has been tested with an
-Archive
-.Tn QIC-24
-tape drive.
-The
-.Nm
-tape interface provides a standard tape drive interface
-as described in
-.Xr mtio 4
-with the following exceptions:
-.Bl -enum
-.It
-Density is dependent on device type.
-Current Exabyte hardware has only one density.
-The
-.Tn EXB-8500
-drive, when released, will have a high
-density format of
-.Tn 5.6GB .
-On an Archive
-.Tn QIC-24
-drive the driver reads both
-.Tn QIC-11
-and
-.Tn QIC-24
-formats
-but writes only
-.Tn QIC-24 .
-.It
-Only the ``raw'' interface is supported.
-.El
-.Pp
-Special Exabyte Support:
-.Pp
-The
-.Dv MTIOCGET
-.Xr ioctl 2
-call on an Exabyte returns this structure:
-.Bd -literal
-struct mtget {
- short mt_type; /* type of magtape device */
- short mt_dsreg; /* sc_flags */
- short mt_erreg; /* high 8 bytes error status */
- /* low 8 bytes percentage of Rewrites
- if writing, ECC errors if reading */
- short mt_resid; /* Mbyte until end of tape */
-};
-.Ed
-.Pp
-Bit 4 in the minor device number is used
-to select long filemarks or short filemarks.
-A long filemark occupies 2.12 MBytes of space on the tape, while a short
-filemark occupies 488 KBytes.
-A long filemark includes an erase gap while the short filemark does not.
-The tape can be positioned on the
-.Tn BOT
-side of a long filemark allowing
-data to be appended with a write operation.
-Since the short filemark does not contain an erase gap which would allow
-writing it is considered to be non-erasable.
-If either type of filemark is followed by blank tape, data may be appended
-on its
-.Tn EOT
-side.
-.Pp
-Bit 5 in the minor device number selects fixed block mode with a block
-size of 1K.
-Variable length records are the default if bit 5 is not set.
-.Pp
-For unit 0 here are the effects of minor device bits 2,3,4,5.
-For other units add the
-.Em unit#
-to each of the device names.
-.Bl -column norewind density filemarks -offset indent
-.Em norewind high short fixed
-.Em density filemarks block mode
-rst0
-nrst0 X
-rst8 X
-nrst8 X X
-rst16 X
-nrst16 X X
-rst24 X X
-nrst24 X X X
-rst32 X
-nrst32 X X
-rst40 X X
-nrst40 X X X
-rst48 X X
-nrst48 X X X
-rst56 X X X
-nrst56 X X X X
-.El
-.Sh SEE ALSO
-.Xr mt 1 ,
-.Xr \&ct 4 ,
-.Xr hd 4 ,
-.Xr intro 4 ,
-.Xr mtio 4 ,
-.Xr oscsi 4 ,
-.Xr sd 4
-.Rs
-.%T EXB-8200 8MM Cartridge Tape Subsystem Interface User Manual
-.Re
-.Sh BUGS
-The
-.Tn HP
-98268
-.Tn SCSI
-controller hardware can not do odd length
-.Tn DMA
-transfers.
-If odd length
-.Tn DMA I/O
-is requested the driver will use the
-"Program Transfer Mode" of the Fujitsu
-.Tn MB87030
-chip.
-Read requests are normally even length for which a
-.Tn DMA
-transfer is used.
-If, however, the driver detects that an odd length read has happened
-(when an even length was requested) it will issue the
-.Dv EIO
-error and the last byte of the read
-data will be 0x00.
-Odd length read requests must match the size of the requested data block
-on tape.
-.Pp
-The following only applies when using long filemarks.
-Short filemarks can not be overwritten.
-.Bd -filled -offset 4n
-Due to the helical scan and the erase mechanism, there is a writing
-limitation on Exabyte drives.
-.Dq Li tar r
-or
-.Dq Li tar u
-will not work
-.Pf ( Dq Li tar c
-is ok).
-One can only start writing at 1) beginning of tape, 2) on the
-end of what was last written, 3) "front" side of a regular (long) filemark.
-For example, you have a tape with 3 tar files.
-If you want to save the first file, but overwrite the second two files with
-new data, on a normal
-1/4" or 1/2" drive you would do:
-.Pp
-.Li "mt fsf 1; tar cf /dev/nrst0 ..."
-.Pp
-but for an Exabyte you need to do:
-.Pp
-.Li "mt fsf 1; mt bsf 1; mt weof 1; tar cf /dev/nrst0 ..."
-.Pp
-The regular long filemark consists of an erased zone 3.8" long
-(needed to begin a write).
-In this case, the first filemark is rewritten in place, which creates an
-erased zone
-.Em after
-it, clearing the
-way to write more on the tape.
-The erase head is not helical.
-.Pp
-One can position a tape to the end of what was last written by reading
-until a
-.Tn \*qBLANK CHECK\*q
-error is returned.
-Writing can be started at this point.
-(This applies to both long and short filemarks.)
-The tape does not become positioned somewhere down the "erased" area as
-does a conventional magtape.
-One can issue multiple reads at the
-.Tn \*qBLANK CHECK\*q
-error, but the Exabyte stays positioned at the beginning of the
-blank area, ready to accept write commands.
-File skip operations do not stop at blank tape and will run into old data
-or run to the end of the tape, so you have to be careful not to
-.Dq Li mt fsf too_many .
-.Ed
-.Pp
-Archive support gets confused if asked to move more filemarks than there are
-on the tape.
-.Pp
-This man page needs some work.
-Some of these are not really bugs, just unavoidable consequences of the
-hardware.