Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame^] | 1 | #ifndef _ZFTAPE_INIT_H |
| 2 | #define _ZFTAPE_INIT_H |
| 3 | |
| 4 | /* |
| 5 | * Copyright (C) 1996, 1997 Claus Heine. |
| 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: /homes/cvs/ftape-stacked/ftape/zftape/zftape-init.h,v $ |
| 23 | * $Revision: 1.2 $ |
| 24 | * $Date: 1997/10/05 19:19:05 $ |
| 25 | * |
| 26 | * This file contains definitions and macro for the vfs |
| 27 | * interface defined by zftape |
| 28 | * |
| 29 | */ |
| 30 | |
| 31 | #include <linux/ftape-header-segment.h> |
| 32 | |
| 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" |
| 41 | |
| 42 | #include "../zftape/zftape-rw.h" |
| 43 | |
| 44 | #ifdef MODULE |
| 45 | #define ftape_status (*zft_status) |
| 46 | #endif |
| 47 | |
| 48 | extern const ftape_info *zft_status; /* needed for zftape-vtbl.h */ |
| 49 | |
| 50 | #include "../zftape/zftape-vtbl.h" |
| 51 | |
| 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); |
| 67 | }; |
| 68 | |
| 69 | extern struct zft_cmpr_ops *zft_cmpr_ops; |
| 70 | /* zftape-init.c defined global functions. |
| 71 | */ |
| 72 | extern int zft_cmpr_register(struct zft_cmpr_ops *new_ops); |
| 73 | extern int zft_cmpr_lock(int try_to_load); |
| 74 | |
| 75 | #endif |
| 76 | |
| 77 | |