zftape-read.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _ZFTAPE_READ_H
  2. #define _ZFTAPE_READ_H
  3. /*
  4. * Copyright (C) 1996, 1997 Claus-Justus Heine
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; see the file COPYING. If not, write to
  15. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16. *
  17. * $Source: /homes/cvs/ftape-stacked/ftape/zftape/zftape-read.h,v $
  18. * $Revision: 1.2 $
  19. * $Date: 1997/10/05 19:19:07 $
  20. *
  21. * This file contains the definitions for the read functions
  22. * for the zftape driver for Linux.
  23. *
  24. */
  25. #include "../lowlevel/ftape-read.h"
  26. /* ftape-read.c defined global vars.
  27. */
  28. extern int zft_just_before_eof;
  29. /* ftape-read.c defined global functions.
  30. */
  31. extern void zft_zap_read_buffers(void);
  32. extern int zft_read_header_segments(void);
  33. extern int zft_fetch_segment_fraction(const unsigned int segment,
  34. void *buffer,
  35. const ft_read_mode_t read_mode,
  36. const unsigned int start,
  37. const unsigned int size);
  38. #define zft_fetch_segment(segment, address, read_mode) \
  39. zft_fetch_segment_fraction(segment, address, read_mode, \
  40. 0, FT_SEGMENT_SIZE)
  41. /* hook for the VFS interface
  42. */
  43. extern int _zft_read(char __user *buff, int req_len);
  44. #endif /* _ZFTAPE_READ_H */