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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [drivers/] [char/] [ftape/] [lowlevel/] [ftape-read.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#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: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/linux/linux-2.4/drivers/char/ftape/lowlevel/ftape-read.h,v $
24
 * $Revision: 1.1.1.1 $
25
 * $Date: 2004-04-15 02:02:43 $
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 */

powered by: WebSVN 2.1.0

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