root/drivers/char/ftape/ftape-io.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #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/bas/distr/ftape-2.03b/RCS/ftape-io.h,v $
  23  $Author: bas $
  24  *
  25  $Revision: 1.36 $
  26  $Date: 1995/05/06 16:11:53 $
  27  $State: Beta $
  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

/* [previous][next][first][last][top][bottom][index][help] */