OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [ftape/] [ftape-io.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
#ifndef _FTAPE_IO_H
2
#define _FTAPE_IO_H
3
 
4
/*
5
 * Copyright (C) 1993-1995 Bas Laarhoven.
6
 
7
 This program is free software; you can redistribute it and/or modify
8
 it under the terms of the GNU General Public License as published by
9
 the Free Software Foundation; either version 2, or (at your option)
10
 any later version.
11
 
12
 This program is distributed in the hope that it will be useful,
13
 but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 GNU General Public License for more details.
16
 
17
 You should have received a copy of the GNU General Public License
18
 along with this program; see the file COPYING.  If not, write to
19
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20
 
21
 *
22
 $Source: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/rc203soc/sw/uClinux/drivers/char/ftape/ftape-io.h,v $
23
 $Author: jcastillo $
24
 *
25
 $Revision: 1.1 $
26
 $Date: 2005-12-20 10:16:52 $
27
 $State: Exp $
28
 *
29
 *      This file contains definitions for the glue part
30
 *      of the QIC-40/80 floppy-tape driver for Linux.
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
 *      ftape-io.c defined global vars.
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
 *      ftape-io.c defined global functions.
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.