1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * tape device driver for 3480/3490E/3590 tapes.
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * S390 and zSeries version
6*4882a593Smuzhiyun * Copyright IBM Corp. 2001, 2009
7*4882a593Smuzhiyun * Author(s): Carsten Otte <cotte@de.ibm.com>
8*4882a593Smuzhiyun * Tuan Ngo-Anh <ngoanh@de.ibm.com>
9*4882a593Smuzhiyun * Martin Schwidefsky <schwidefsky@de.ibm.com>
10*4882a593Smuzhiyun * Stefan Bader <shbader@de.ibm.com>
11*4882a593Smuzhiyun */
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun #ifndef _TAPE_H
14*4882a593Smuzhiyun #define _TAPE_H
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun #include <asm/ccwdev.h>
17*4882a593Smuzhiyun #include <asm/debug.h>
18*4882a593Smuzhiyun #include <asm/idals.h>
19*4882a593Smuzhiyun #include <linux/kernel.h>
20*4882a593Smuzhiyun #include <linux/module.h>
21*4882a593Smuzhiyun #include <linux/mtio.h>
22*4882a593Smuzhiyun #include <linux/interrupt.h>
23*4882a593Smuzhiyun #include <linux/workqueue.h>
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun struct gendisk;
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun /*
28*4882a593Smuzhiyun * Define DBF_LIKE_HELL for lots of messages in the debug feature.
29*4882a593Smuzhiyun */
30*4882a593Smuzhiyun #define DBF_LIKE_HELL
31*4882a593Smuzhiyun #ifdef DBF_LIKE_HELL
32*4882a593Smuzhiyun #define DBF_LH(level, str, ...) \
33*4882a593Smuzhiyun do { \
34*4882a593Smuzhiyun debug_sprintf_event(TAPE_DBF_AREA, level, str, ## __VA_ARGS__); \
35*4882a593Smuzhiyun } while (0)
36*4882a593Smuzhiyun #else
37*4882a593Smuzhiyun #define DBF_LH(level, str, ...) do {} while(0)
38*4882a593Smuzhiyun #endif
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun /*
41*4882a593Smuzhiyun * macros s390 debug feature (dbf)
42*4882a593Smuzhiyun */
43*4882a593Smuzhiyun #define DBF_EVENT(d_level, d_str...) \
44*4882a593Smuzhiyun do { \
45*4882a593Smuzhiyun debug_sprintf_event(TAPE_DBF_AREA, d_level, d_str); \
46*4882a593Smuzhiyun } while (0)
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun #define DBF_EXCEPTION(d_level, d_str...) \
49*4882a593Smuzhiyun do { \
50*4882a593Smuzhiyun debug_sprintf_exception(TAPE_DBF_AREA, d_level, d_str); \
51*4882a593Smuzhiyun } while (0)
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun #define TAPE_VERSION_MAJOR 2
54*4882a593Smuzhiyun #define TAPE_VERSION_MINOR 0
55*4882a593Smuzhiyun #define TAPE_MAGIC "tape"
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun #define TAPE_MINORS_PER_DEV 2 /* two minors per device */
58*4882a593Smuzhiyun #define TAPEBLOCK_HSEC_SIZE 2048
59*4882a593Smuzhiyun #define TAPEBLOCK_HSEC_S2B 2
60*4882a593Smuzhiyun #define TAPEBLOCK_RETRIES 5
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun enum tape_medium_state {
63*4882a593Smuzhiyun MS_UNKNOWN,
64*4882a593Smuzhiyun MS_LOADED,
65*4882a593Smuzhiyun MS_UNLOADED,
66*4882a593Smuzhiyun MS_SIZE
67*4882a593Smuzhiyun };
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun enum tape_state {
70*4882a593Smuzhiyun TS_UNUSED=0,
71*4882a593Smuzhiyun TS_IN_USE,
72*4882a593Smuzhiyun TS_BLKUSE,
73*4882a593Smuzhiyun TS_INIT,
74*4882a593Smuzhiyun TS_NOT_OPER,
75*4882a593Smuzhiyun TS_SIZE
76*4882a593Smuzhiyun };
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun enum tape_op {
79*4882a593Smuzhiyun TO_BLOCK, /* Block read */
80*4882a593Smuzhiyun TO_BSB, /* Backward space block */
81*4882a593Smuzhiyun TO_BSF, /* Backward space filemark */
82*4882a593Smuzhiyun TO_DSE, /* Data security erase */
83*4882a593Smuzhiyun TO_FSB, /* Forward space block */
84*4882a593Smuzhiyun TO_FSF, /* Forward space filemark */
85*4882a593Smuzhiyun TO_LBL, /* Locate block label */
86*4882a593Smuzhiyun TO_NOP, /* No operation */
87*4882a593Smuzhiyun TO_RBA, /* Read backward */
88*4882a593Smuzhiyun TO_RBI, /* Read block information */
89*4882a593Smuzhiyun TO_RFO, /* Read forward */
90*4882a593Smuzhiyun TO_REW, /* Rewind tape */
91*4882a593Smuzhiyun TO_RUN, /* Rewind and unload tape */
92*4882a593Smuzhiyun TO_WRI, /* Write block */
93*4882a593Smuzhiyun TO_WTM, /* Write tape mark */
94*4882a593Smuzhiyun TO_MSEN, /* Medium sense */
95*4882a593Smuzhiyun TO_LOAD, /* Load tape */
96*4882a593Smuzhiyun TO_READ_CONFIG, /* Read configuration data */
97*4882a593Smuzhiyun TO_READ_ATTMSG, /* Read attention message */
98*4882a593Smuzhiyun TO_DIS, /* Tape display */
99*4882a593Smuzhiyun TO_ASSIGN, /* Assign tape to channel path */
100*4882a593Smuzhiyun TO_UNASSIGN, /* Unassign tape from channel path */
101*4882a593Smuzhiyun TO_CRYPT_ON, /* Enable encrpytion */
102*4882a593Smuzhiyun TO_CRYPT_OFF, /* Disable encrpytion */
103*4882a593Smuzhiyun TO_KEKL_SET, /* Set KEK label */
104*4882a593Smuzhiyun TO_KEKL_QUERY, /* Query KEK label */
105*4882a593Smuzhiyun TO_RDC, /* Read device characteristics */
106*4882a593Smuzhiyun TO_SIZE, /* #entries in tape_op_t */
107*4882a593Smuzhiyun };
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun /* Forward declaration */
110*4882a593Smuzhiyun struct tape_device;
111*4882a593Smuzhiyun
112*4882a593Smuzhiyun /* tape_request->status can be: */
113*4882a593Smuzhiyun enum tape_request_status {
114*4882a593Smuzhiyun TAPE_REQUEST_INIT, /* request is ready to be processed */
115*4882a593Smuzhiyun TAPE_REQUEST_QUEUED, /* request is queued to be processed */
116*4882a593Smuzhiyun TAPE_REQUEST_IN_IO, /* request is currently in IO */
117*4882a593Smuzhiyun TAPE_REQUEST_DONE, /* request is completed. */
118*4882a593Smuzhiyun TAPE_REQUEST_CANCEL, /* request should be canceled. */
119*4882a593Smuzhiyun TAPE_REQUEST_LONG_BUSY, /* request has to be restarted after long busy */
120*4882a593Smuzhiyun };
121*4882a593Smuzhiyun
122*4882a593Smuzhiyun /* Tape CCW request */
123*4882a593Smuzhiyun struct tape_request {
124*4882a593Smuzhiyun struct list_head list; /* list head for request queueing. */
125*4882a593Smuzhiyun struct tape_device *device; /* tape device of this request */
126*4882a593Smuzhiyun struct ccw1 *cpaddr; /* address of the channel program. */
127*4882a593Smuzhiyun void *cpdata; /* pointer to ccw data. */
128*4882a593Smuzhiyun enum tape_request_status status;/* status of this request */
129*4882a593Smuzhiyun int options; /* options for execution. */
130*4882a593Smuzhiyun int retries; /* retry counter for error recovery. */
131*4882a593Smuzhiyun int rescnt; /* residual count from devstat. */
132*4882a593Smuzhiyun struct timer_list timer; /* timer for std_assign_timeout(). */
133*4882a593Smuzhiyun
134*4882a593Smuzhiyun /* Callback for delivering final status. */
135*4882a593Smuzhiyun void (*callback)(struct tape_request *, void *);
136*4882a593Smuzhiyun void *callback_data;
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun enum tape_op op;
139*4882a593Smuzhiyun int rc;
140*4882a593Smuzhiyun };
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun /* Function type for magnetic tape commands */
143*4882a593Smuzhiyun typedef int (*tape_mtop_fn)(struct tape_device *, int);
144*4882a593Smuzhiyun
145*4882a593Smuzhiyun /* Size of the array containing the mtops for a discipline */
146*4882a593Smuzhiyun #define TAPE_NR_MTOPS (MTMKPART+1)
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun /* Tape Discipline */
149*4882a593Smuzhiyun struct tape_discipline {
150*4882a593Smuzhiyun struct module *owner;
151*4882a593Smuzhiyun int (*setup_device)(struct tape_device *);
152*4882a593Smuzhiyun void (*cleanup_device)(struct tape_device *);
153*4882a593Smuzhiyun int (*irq)(struct tape_device *, struct tape_request *, struct irb *);
154*4882a593Smuzhiyun struct tape_request *(*read_block)(struct tape_device *, size_t);
155*4882a593Smuzhiyun struct tape_request *(*write_block)(struct tape_device *, size_t);
156*4882a593Smuzhiyun void (*process_eov)(struct tape_device*);
157*4882a593Smuzhiyun /* ioctl function for additional ioctls. */
158*4882a593Smuzhiyun int (*ioctl_fn)(struct tape_device *, unsigned int, unsigned long);
159*4882a593Smuzhiyun /* Array of tape commands with TAPE_NR_MTOPS entries */
160*4882a593Smuzhiyun tape_mtop_fn *mtop_array;
161*4882a593Smuzhiyun };
162*4882a593Smuzhiyun
163*4882a593Smuzhiyun /*
164*4882a593Smuzhiyun * The discipline irq function either returns an error code (<0) which
165*4882a593Smuzhiyun * means that the request has failed with an error or one of the following:
166*4882a593Smuzhiyun */
167*4882a593Smuzhiyun #define TAPE_IO_SUCCESS 0 /* request successful */
168*4882a593Smuzhiyun #define TAPE_IO_PENDING 1 /* request still running */
169*4882a593Smuzhiyun #define TAPE_IO_RETRY 2 /* retry to current request */
170*4882a593Smuzhiyun #define TAPE_IO_STOP 3 /* stop the running request */
171*4882a593Smuzhiyun #define TAPE_IO_LONG_BUSY 4 /* delay the running request */
172*4882a593Smuzhiyun
173*4882a593Smuzhiyun /* Char Frontend Data */
174*4882a593Smuzhiyun struct tape_char_data {
175*4882a593Smuzhiyun struct idal_buffer *idal_buf; /* idal buffer for user char data */
176*4882a593Smuzhiyun int block_size; /* of size block_size. */
177*4882a593Smuzhiyun };
178*4882a593Smuzhiyun
179*4882a593Smuzhiyun /* Tape Info */
180*4882a593Smuzhiyun struct tape_device {
181*4882a593Smuzhiyun /* entry in tape_device_list */
182*4882a593Smuzhiyun struct list_head node;
183*4882a593Smuzhiyun
184*4882a593Smuzhiyun int cdev_id;
185*4882a593Smuzhiyun struct ccw_device * cdev;
186*4882a593Smuzhiyun struct tape_class_device * nt;
187*4882a593Smuzhiyun struct tape_class_device * rt;
188*4882a593Smuzhiyun
189*4882a593Smuzhiyun /* Device mutex to serialize tape commands. */
190*4882a593Smuzhiyun struct mutex mutex;
191*4882a593Smuzhiyun
192*4882a593Smuzhiyun /* Device discipline information. */
193*4882a593Smuzhiyun struct tape_discipline * discipline;
194*4882a593Smuzhiyun void * discdata;
195*4882a593Smuzhiyun
196*4882a593Smuzhiyun /* Generic status flags */
197*4882a593Smuzhiyun long tape_generic_status;
198*4882a593Smuzhiyun
199*4882a593Smuzhiyun /* Device state information. */
200*4882a593Smuzhiyun wait_queue_head_t state_change_wq;
201*4882a593Smuzhiyun enum tape_state tape_state;
202*4882a593Smuzhiyun enum tape_medium_state medium_state;
203*4882a593Smuzhiyun unsigned char * modeset_byte;
204*4882a593Smuzhiyun
205*4882a593Smuzhiyun /* Reference count. */
206*4882a593Smuzhiyun atomic_t ref_count;
207*4882a593Smuzhiyun
208*4882a593Smuzhiyun /* Request queue. */
209*4882a593Smuzhiyun struct list_head req_queue;
210*4882a593Smuzhiyun
211*4882a593Smuzhiyun /* Request wait queue. */
212*4882a593Smuzhiyun wait_queue_head_t wait_queue;
213*4882a593Smuzhiyun
214*4882a593Smuzhiyun /* Each tape device has (currently) two minor numbers. */
215*4882a593Smuzhiyun int first_minor;
216*4882a593Smuzhiyun
217*4882a593Smuzhiyun /* Number of tapemarks required for correct termination. */
218*4882a593Smuzhiyun int required_tapemarks;
219*4882a593Smuzhiyun
220*4882a593Smuzhiyun /* Block ID of the BOF */
221*4882a593Smuzhiyun unsigned int bof;
222*4882a593Smuzhiyun
223*4882a593Smuzhiyun /* Character device frontend data */
224*4882a593Smuzhiyun struct tape_char_data char_data;
225*4882a593Smuzhiyun
226*4882a593Smuzhiyun /* Function to start or stop the next request later. */
227*4882a593Smuzhiyun struct delayed_work tape_dnr;
228*4882a593Smuzhiyun
229*4882a593Smuzhiyun /* Timer for long busy */
230*4882a593Smuzhiyun struct timer_list lb_timeout;
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun };
233*4882a593Smuzhiyun
234*4882a593Smuzhiyun /* Externals from tape_core.c */
235*4882a593Smuzhiyun extern struct tape_request *tape_alloc_request(int cplength, int datasize);
236*4882a593Smuzhiyun extern void tape_free_request(struct tape_request *);
237*4882a593Smuzhiyun extern int tape_do_io(struct tape_device *, struct tape_request *);
238*4882a593Smuzhiyun extern int tape_do_io_async(struct tape_device *, struct tape_request *);
239*4882a593Smuzhiyun extern int tape_do_io_interruptible(struct tape_device *, struct tape_request *);
240*4882a593Smuzhiyun extern int tape_cancel_io(struct tape_device *, struct tape_request *);
241*4882a593Smuzhiyun
242*4882a593Smuzhiyun static inline int
tape_do_io_free(struct tape_device * device,struct tape_request * request)243*4882a593Smuzhiyun tape_do_io_free(struct tape_device *device, struct tape_request *request)
244*4882a593Smuzhiyun {
245*4882a593Smuzhiyun int rc;
246*4882a593Smuzhiyun
247*4882a593Smuzhiyun rc = tape_do_io(device, request);
248*4882a593Smuzhiyun tape_free_request(request);
249*4882a593Smuzhiyun return rc;
250*4882a593Smuzhiyun }
251*4882a593Smuzhiyun
252*4882a593Smuzhiyun static inline void
tape_do_io_async_free(struct tape_device * device,struct tape_request * request)253*4882a593Smuzhiyun tape_do_io_async_free(struct tape_device *device, struct tape_request *request)
254*4882a593Smuzhiyun {
255*4882a593Smuzhiyun request->callback = (void *) tape_free_request;
256*4882a593Smuzhiyun request->callback_data = NULL;
257*4882a593Smuzhiyun tape_do_io_async(device, request);
258*4882a593Smuzhiyun }
259*4882a593Smuzhiyun
260*4882a593Smuzhiyun extern int tape_open(struct tape_device *);
261*4882a593Smuzhiyun extern int tape_release(struct tape_device *);
262*4882a593Smuzhiyun extern int tape_mtop(struct tape_device *, int, int);
263*4882a593Smuzhiyun extern void tape_state_set(struct tape_device *, enum tape_state);
264*4882a593Smuzhiyun
265*4882a593Smuzhiyun extern int tape_generic_online(struct tape_device *, struct tape_discipline *);
266*4882a593Smuzhiyun extern int tape_generic_offline(struct ccw_device *);
267*4882a593Smuzhiyun extern int tape_generic_pm_suspend(struct ccw_device *);
268*4882a593Smuzhiyun
269*4882a593Smuzhiyun /* Externals from tape_devmap.c */
270*4882a593Smuzhiyun extern int tape_generic_probe(struct ccw_device *);
271*4882a593Smuzhiyun extern void tape_generic_remove(struct ccw_device *);
272*4882a593Smuzhiyun
273*4882a593Smuzhiyun extern struct tape_device *tape_find_device(int devindex);
274*4882a593Smuzhiyun extern struct tape_device *tape_get_device(struct tape_device *);
275*4882a593Smuzhiyun extern void tape_put_device(struct tape_device *);
276*4882a593Smuzhiyun
277*4882a593Smuzhiyun /* Externals from tape_char.c */
278*4882a593Smuzhiyun extern int tapechar_init(void);
279*4882a593Smuzhiyun extern void tapechar_exit(void);
280*4882a593Smuzhiyun extern int tapechar_setup_device(struct tape_device *);
281*4882a593Smuzhiyun extern void tapechar_cleanup_device(struct tape_device *);
282*4882a593Smuzhiyun
283*4882a593Smuzhiyun /* tape initialisation functions */
284*4882a593Smuzhiyun #ifdef CONFIG_PROC_FS
285*4882a593Smuzhiyun extern void tape_proc_init (void);
286*4882a593Smuzhiyun extern void tape_proc_cleanup (void);
287*4882a593Smuzhiyun #else
tape_proc_init(void)288*4882a593Smuzhiyun static inline void tape_proc_init (void) {;}
tape_proc_cleanup(void)289*4882a593Smuzhiyun static inline void tape_proc_cleanup (void) {;}
290*4882a593Smuzhiyun #endif
291*4882a593Smuzhiyun
292*4882a593Smuzhiyun /* a function for dumping device sense info */
293*4882a593Smuzhiyun extern void tape_dump_sense_dbf(struct tape_device *, struct tape_request *,
294*4882a593Smuzhiyun struct irb *);
295*4882a593Smuzhiyun
296*4882a593Smuzhiyun /* functions for handling the status of a device */
297*4882a593Smuzhiyun extern void tape_med_state_set(struct tape_device *, enum tape_medium_state);
298*4882a593Smuzhiyun
299*4882a593Smuzhiyun /* The debug area */
300*4882a593Smuzhiyun extern debug_info_t *TAPE_DBF_AREA;
301*4882a593Smuzhiyun
302*4882a593Smuzhiyun /* functions for building ccws */
303*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_cc(struct ccw1 * ccw,__u8 cmd_code,__u16 memsize,void * cda)304*4882a593Smuzhiyun tape_ccw_cc(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda)
305*4882a593Smuzhiyun {
306*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
307*4882a593Smuzhiyun ccw->flags = CCW_FLAG_CC;
308*4882a593Smuzhiyun ccw->count = memsize;
309*4882a593Smuzhiyun ccw->cda = (__u32)(addr_t) cda;
310*4882a593Smuzhiyun return ccw + 1;
311*4882a593Smuzhiyun }
312*4882a593Smuzhiyun
313*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_end(struct ccw1 * ccw,__u8 cmd_code,__u16 memsize,void * cda)314*4882a593Smuzhiyun tape_ccw_end(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda)
315*4882a593Smuzhiyun {
316*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
317*4882a593Smuzhiyun ccw->flags = 0;
318*4882a593Smuzhiyun ccw->count = memsize;
319*4882a593Smuzhiyun ccw->cda = (__u32)(addr_t) cda;
320*4882a593Smuzhiyun return ccw + 1;
321*4882a593Smuzhiyun }
322*4882a593Smuzhiyun
323*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_cmd(struct ccw1 * ccw,__u8 cmd_code)324*4882a593Smuzhiyun tape_ccw_cmd(struct ccw1 *ccw, __u8 cmd_code)
325*4882a593Smuzhiyun {
326*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
327*4882a593Smuzhiyun ccw->flags = 0;
328*4882a593Smuzhiyun ccw->count = 0;
329*4882a593Smuzhiyun ccw->cda = (__u32)(addr_t) &ccw->cmd_code;
330*4882a593Smuzhiyun return ccw + 1;
331*4882a593Smuzhiyun }
332*4882a593Smuzhiyun
333*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_repeat(struct ccw1 * ccw,__u8 cmd_code,int count)334*4882a593Smuzhiyun tape_ccw_repeat(struct ccw1 *ccw, __u8 cmd_code, int count)
335*4882a593Smuzhiyun {
336*4882a593Smuzhiyun while (count-- > 0) {
337*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
338*4882a593Smuzhiyun ccw->flags = CCW_FLAG_CC;
339*4882a593Smuzhiyun ccw->count = 0;
340*4882a593Smuzhiyun ccw->cda = (__u32)(addr_t) &ccw->cmd_code;
341*4882a593Smuzhiyun ccw++;
342*4882a593Smuzhiyun }
343*4882a593Smuzhiyun return ccw;
344*4882a593Smuzhiyun }
345*4882a593Smuzhiyun
346*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_cc_idal(struct ccw1 * ccw,__u8 cmd_code,struct idal_buffer * idal)347*4882a593Smuzhiyun tape_ccw_cc_idal(struct ccw1 *ccw, __u8 cmd_code, struct idal_buffer *idal)
348*4882a593Smuzhiyun {
349*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
350*4882a593Smuzhiyun ccw->flags = CCW_FLAG_CC;
351*4882a593Smuzhiyun idal_buffer_set_cda(idal, ccw);
352*4882a593Smuzhiyun return ccw++;
353*4882a593Smuzhiyun }
354*4882a593Smuzhiyun
355*4882a593Smuzhiyun static inline struct ccw1 *
tape_ccw_end_idal(struct ccw1 * ccw,__u8 cmd_code,struct idal_buffer * idal)356*4882a593Smuzhiyun tape_ccw_end_idal(struct ccw1 *ccw, __u8 cmd_code, struct idal_buffer *idal)
357*4882a593Smuzhiyun {
358*4882a593Smuzhiyun ccw->cmd_code = cmd_code;
359*4882a593Smuzhiyun ccw->flags = 0;
360*4882a593Smuzhiyun idal_buffer_set_cda(idal, ccw);
361*4882a593Smuzhiyun return ccw++;
362*4882a593Smuzhiyun }
363*4882a593Smuzhiyun
364*4882a593Smuzhiyun /* Global vars */
365*4882a593Smuzhiyun extern const char *tape_state_verbose[];
366*4882a593Smuzhiyun extern const char *tape_op_verbose[];
367*4882a593Smuzhiyun
368*4882a593Smuzhiyun #endif /* for ifdef tape.h */
369