ftape-read.h 1.7 KB

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