summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-09-26 07:52:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-09-26 07:52:10 +0000
commit7fe67e305f729d3c3982b821f84c870d3425ba75 (patch)
treeed4b02e4a5b37d580d14e6dda40b088a3b2f043b /share
parentdd01b9347f4fa282cba2c691c9f06a5aeef7d4da (diff)
Point to <sys/mtio.h> rather than contain an old version of it.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/mtio.4101
1 files changed, 10 insertions, 91 deletions
diff --git a/share/man/man4/mtio.4 b/share/man/man4/mtio.4
index 4be775d593b..8fa69ae53d2 100644
--- a/share/man/man4/mtio.4
+++ b/share/man/man4/mtio.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mtio.4,v 1.9 2001/10/05 14:45:53 mpech Exp $
+.\" $OpenBSD: mtio.4,v 1.10 2002/09/26 07:52:09 miod Exp $
.\" $NetBSD: mtio.4,v 1.4 1996/03/03 17:13:54 thorpej Exp $
.\"
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
@@ -40,6 +40,8 @@
.Sh NAME
.Nm mtio
.Nd magtape interface
+.Sh SYNOPSIS
+.Fd #include <sys/mtio.h>
.Sh DESCRIPTION
This interface concerns devices which are typical tape block devices,
see
@@ -89,96 +91,11 @@ All of the magtape devices may be manipulated with the
.Xr mt 1
command.
.Pp
-A number of
+The include file
+.Aq Pa sys/mtio.h
+defines the various
.Xr ioctl 2
-operations are available
-on raw magnetic tape.
-The following definitions are from
-.Aq Pa sys/mtio.h :
-.Bd -literal
-/*
- * Structures and definitions for mag tape io control commands
- */
-
-/* structure for MTIOCTOP - mag tape op command */
-struct mtop {
- short mt_op; /* operations defined below */
- daddr_t mt_count; /* how many of them */
-};
-
-/* operations */
-#define MTWEOF 0 /* write an end-of-file record */
-#define MTFSF 1 /* forward space file */
-#define MTBSF 2 /* backward space file */
-#define MTFSR 3 /* forward space record */
-#define MTBSR 4 /* backward space record */
-#define MTREW 5 /* rewind */
-#define MTOFFL 6 /* rewind and put the drive offline */
-#define MTNOP 7 /* no operation, sets status only */
-#define MTCACHE 8 /* enable controller cache */
-#define MTNOCACHE 9 /* disable controller cache */
-
-/* structure for MTIOCGET - mag tape get status command */
-
-struct mtget {
- short mt_type; /* type of magtape device */
-/* the following two registers are grossly device dependent */
- short mt_dsreg; /* ``drive status'' register */
- short mt_erreg; /* ``error'' register */
-/* end device-dependent registers */
- short mt_resid; /* residual count */
-/* the following two are not yet implemented */
- daddr_t mt_fileno; /* file number of current position */
- daddr_t mt_blkno; /* block number of current position */
-/* end not yet implemented */
-};
-
-/*
- * Constants for mt_type byte. These are the same
- * for controllers compatible with the types listed.
- */
-#define MT_ISTS 0x01 /* TS-11 */
-#define MT_ISHT 0x02 /* TM03 Massbus: TE16, TU45, TU77 */
-#define MT_ISTM 0x03 /* TM11/TE10 Unibus */
-#define MT_ISMT 0x04 /* TM78/TU78 Massbus */
-#define MT_ISUT 0x05 /* SI TU-45 emulation on Unibus */
-#define MT_ISCPC 0x06 /* SUN */
-#define MT_ISAR 0x07 /* SUN */
-#define MT_ISTMSCP 0x08 /* DEC TMSCP protocol (TU81, TK50) */
-#define MT_ISCY 0x09 /* CCI Cipher */
-#define MT_ISCT 0x0a /* HP 1/4 tape */
-#define MT_ISFHP 0x0b /* HP 7980 1/2 tape */
-#define MT_ISEXABYTE 0x0c /* Exabyte */
-#define MT_ISEXA8200 0x0c /* Exabyte EXB-8200 */
-#define MT_ISEXA8500 0x0d /* Exabyte EXB-8500 */
-#define MT_ISVIPER1 0x0e /* Archive Viper-150 */
-#define MT_ISPYTHON 0x0f /* Archive Python (DAT) */
-#define MT_ISHPDAT 0x10 /* HP 35450A DAT drive */
-
-/* mag tape io control commands */
-#define MTIOCTOP _IOW('m', 1, struct mtop) /* do a mag tape op */
-#define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
-#define MTIOCIEOT _IO('m', 3) /* ignore EOT error */
-#define MTIOCEEOT _IO('m', 4) /* enable EOT error */
-
-#ifndef KERNEL
-#define DEFTAPE "/dev/rmt12"
-#endif
-
-#ifdef KERNEL
-/*
- * minor device number
- */
-
-#define T_UNIT 003 /* unit selection */
-#define T_NOREWIND 004 /* no rewind on close */
-#define T_DENSEL 030 /* density select */
-#define T_800BPI 000 /* select 800 bpi */
-#define T_1600BPI 010 /* select 1600 bpi */
-#define T_6250BPI 020 /* select 6250 bpi */
-#define T_BADBPI 030 /* undefined selection */
-#endif
-.Ed
+operations available on raw magnetic tape.
.Sh FILES
.Bl -tag -width /dev/rmt? -compact
.It Pa /dev/mt?
@@ -187,7 +104,9 @@ struct mtget {
.Sh SEE ALSO
.Xr mt 1 ,
.Xr tar 1 ,
-.Xr st 4
+.Xr intro 4 ,
+.Xr st 4 ,
+.Xr wt 4
.Sh HISTORY
The
.Nm