zftape-eof.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _ZFTAPE_EOF_H
  2. #define _ZFTAPE_EOF_H
  3. /*
  4. * Copyright (C) 1994-1995 Bas Laarhoven.
  5. * adaptaed for zftape 1996, 1997 by Claus 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/zftape/zftape-eof.h,v $
  19. * $Revision: 1.2 $
  20. * $Date: 1997/10/05 19:19:03 $
  21. *
  22. * Definitions and declarations for the end of file markers
  23. * for the QIC-40/80 floppy-tape driver for Linux.
  24. */
  25. #include <linux/ftape-header-segment.h>
  26. #include "../zftape/zftape-buffers.h"
  27. /* failed sector log size (only used if format code != 4).
  28. */
  29. typedef union {
  30. ft_fsl_entry mark;
  31. __u32 entry;
  32. } eof_mark_union;
  33. /* ftape-eof.c defined global vars.
  34. */
  35. extern int zft_nr_eof_marks;
  36. extern eof_mark_union *zft_eof_map;
  37. /* ftape-eof.c defined global functions.
  38. */
  39. extern void zft_ftape_extract_file_marks(__u8* address);
  40. extern int zft_ftape_validate_label(char* label);
  41. extern void zft_clear_ftape_file_marks(void);
  42. #endif