1 /* $NetBSD: ctreg.h,v 1.7.24.3 2004/09/21 13:15:13 skrll Exp $ */
4 * Copyright (c) 1982, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * @(#)ctreg.h 8.1 (Berkeley) 6/10/93
102 u_int d_iuw
:16, /* controller: installed unit word */
103 d_cmaxxfr
:16, /* controller: max transfer rate (Kb) */
104 d_ctype
:8, /* controller: controller type */
105 d_utype
:8, /* unit: unit type */
106 d_name
:24, /* unit: name (6 BCD digits) */
107 d_sectsize
:16, /* unit: # of bytes per block (sector) */
108 d_blkbuf
:8, /* unit: # of blocks which can be buffered */
109 d_burstsize
:8, /* unit: recommended burst size */
110 d_blocktime
:16, /* unit: block time (u-sec) */
111 d_uavexfr
:16, /* unit: average transfer rate (Kb) */
112 d_retry
:16, /* unit: optimal retry time (1/100-sec) */
113 d_access
:16, /* unit: access time param (1/100-sec) */
114 d_maxint
:8, /* unit: maximum interleave */
115 d_fvbyte
:8, /* unit: fixed volume byte */
116 d_rvbyte
:8, /* unit: removable volume byte */
117 d_maxcyl
:24, /* volume: maximum cylinder */
118 d_maxhead
:8, /* volume: maximum head */
119 d_maxsect
:16, /* volume: maximum sector on track */
120 d_maxvsecth
:16, /* volume: maximum sector on volume (MSW) */
121 d_maxvsectl
:32, /* volume: maximum sector on volume (LSWs) */
122 d_interleave
:8; /* volume: current interleave */
125 #define CT7946ID 0x220
126 #define CT9145ID 0x268
127 #define CT9144ID 0x260
129 #define CT7912PID 0x209
130 #define CT7914PID 0x20B
132 #define CT35401ID 0x270
134 /* convert bytes to 1k tape block and back */
135 #define CTBTOK(x) ((x) >> 10)
136 #define CTKTOB(x) ((x) << 10)
143 #define IEF_MASK 0xF970
145 #define FEF_PF 0x0002
146 #define FEF_REXMT 0x0001
147 #define AEF_EOF 0x0010
148 #define AEF_EOV 0x0008
153 #define C_STATUS 0x0d
156 #define C_SUNIT(x) (0x20 | (x))
157 #define C_SVOL(x) (0x40 | (x))
164 #define C_UNLOAD 0x4a