1 #ifndef _FTAPE_IO_H
2 #define _FTAPE_IO_H
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 #include "vendors.h"
34
35 typedef struct {
36 unsigned seek;
37 unsigned reset;
38 unsigned rewind;
39 unsigned head_seek;
40 unsigned stop;
41 unsigned pause;
42 } timeout_table;
43
44
45
46
47 extern timeout_table timeout;
48 extern int qic_std;
49 extern int tape_len;
50 extern volatile int current_command;
51 extern const struct qic117_command_table qic117_cmds[];
52 extern int might_be_off_track;
53
54
55
56
57 extern void udelay(int usecs);
58 extern int udelay_calibrate(void);
59 extern void ftape_sleep(unsigned int time);
60 extern void ftape_report_vendor_id(unsigned int *id);
61 extern int ftape_command(int command);
62 extern int ftape_command_wait(int command, int timeout, int *status);
63 extern int ftape_report_drive_status(int *status);
64 extern int ftape_report_raw_drive_status(int *status);
65 extern int ftape_report_status(int *status);
66 extern int ftape_interrupt_wait(int time);
67 extern int ftape_ready_wait(int timeout, int *status);
68 extern int ftape_seek_head_to_track(int track);
69 extern int ftape_parameter(int command);
70 extern int ftape_in_error_state(int status);
71 extern int ftape_set_data_rate(int rate);
72 extern int ftape_report_error(int *error, int *command, int report);
73 extern int ftape_reset_drive(void);
74 extern int ftape_put_drive_to_sleep(vendor_struct drive_type);
75 extern int ftape_wakeup_drive(wake_up_types method);
76
77 #endif