[PATCH] aic7xxx_osm build fix
[cris-mirror.git] / drivers / char / ftape / zftape / zftape-init.h
blob937e5d48c20ec4195743fa8028b75a07951f18a8
1 #ifndef _ZFTAPE_INIT_H
2 #define _ZFTAPE_INIT_H
4 /*
5 * Copyright (C) 1996, 1997 Claus Heine.
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.
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.
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.
22 * $Source: /homes/cvs/ftape-stacked/ftape/zftape/zftape-init.h,v $
23 * $Revision: 1.2 $
24 * $Date: 1997/10/05 19:19:05 $
26 * This file contains definitions and macro for the vfs
27 * interface defined by zftape
31 #include <linux/ftape-header-segment.h>
33 #include "../lowlevel/ftape-tracing.h"
34 #include "../lowlevel/ftape-ctl.h"
35 #include "../lowlevel/ftape-read.h"
36 #include "../lowlevel/ftape-write.h"
37 #include "../lowlevel/ftape-bsm.h"
38 #include "../lowlevel/ftape-io.h"
39 #include "../lowlevel/ftape-buffer.h"
40 #include "../lowlevel/ftape-format.h"
42 #include "../zftape/zftape-rw.h"
44 #ifdef MODULE
45 #define ftape_status (*zft_status)
46 #endif
48 extern const ftape_info *zft_status; /* needed for zftape-vtbl.h */
50 #include "../zftape/zftape-vtbl.h"
52 struct zft_cmpr_ops {
53 int (*write)(int *write_cnt,
54 __u8 *dst_buf, const int seg_sz,
55 const __u8 __user *src_buf, const int req_len,
56 const zft_position *pos, const zft_volinfo *volume);
57 int (*read)(int *read_cnt,
58 __u8 __user *dst_buf, const int req_len,
59 const __u8 *src_buf, const int seg_sz,
60 const zft_position *pos, const zft_volinfo *volume);
61 int (*seek)(unsigned int new_block_pos,
62 zft_position *pos, const zft_volinfo *volume,
63 __u8 *buffer);
64 void (*lock) (void);
65 void (*reset) (void);
66 void (*cleanup)(void);
69 extern struct zft_cmpr_ops *zft_cmpr_ops;
70 /* zftape-init.c defined global functions.
72 extern int zft_cmpr_register(struct zft_cmpr_ops *new_ops);
73 extern int zft_cmpr_lock(int try_to_load);
75 #endif