1 #ifndef _FTAPE_READ_H
2 #define _FTAPE_READ_H
3 
4 /*
5  * Copyright (C) 1994-1996 Bas Laarhoven,
6  *           (C) 1996-1997 Claus-Justus Heine.
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2, or (at your option)
11  any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; see the file COPYING.  If not, write to
20  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22  *
23  * $Source: /homes/cvs/ftape-stacked/ftape/lowlevel/ftape-read.h,v $
24  * $Revision: 1.2 $
25  * $Date: 1997/10/05 19:18:22 $
26  *
27  *      This file contains the definitions for the read functions
28  *      for the QIC-117 floppy-tape driver for Linux.
29  *
30  */
31 
32 /*      ftape-read.c defined global functions.
33  */
34 typedef enum {
35 	FT_RD_SINGLE = 0,
36 	FT_RD_AHEAD  = 1,
37 } ft_read_mode_t;
38 
39 extern int ftape_read_header_segment(__u8 *address);
40 extern int ftape_decode_header_segment(__u8 *address);
41 extern int ftape_read_segment_fraction(const int segment,
42 				       void  *address,
43 				       const ft_read_mode_t read_mode,
44 				       const int start,
45 				       const int size);
46 #define ftape_read_segment(segment, address, read_mode)			\
47 	ftape_read_segment_fraction(segment, address, read_mode,	\
48 				    0, FT_SEGMENT_SIZE)
49 extern void ftape_zap_read_buffers(void);
50 
51 #endif				/* _FTAPE_READ_H */
52