ftape-write.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _FTAPE_WRITE_H
  2. #define _FTAPE_WRITE_H
  3. /*
  4. * Copyright (C) 1994-1995 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-write.h,v $
  19. $Author: claus $
  20. *
  21. $Revision: 1.2 $
  22. $Date: 1997/10/05 19:18:30 $
  23. $State: Exp $
  24. *
  25. * This file contains the definitions for the write functions
  26. * for the QIC-117 floppy-tape driver for Linux.
  27. *
  28. */
  29. /* ftape-write.c defined global functions.
  30. */
  31. typedef enum {
  32. FT_WR_ASYNC = 0, /* start tape only when all buffers are full */
  33. FT_WR_MULTI = 1, /* start tape, but don't necessarily stop */
  34. FT_WR_SINGLE = 2, /* write a single segment and stop afterwards */
  35. FT_WR_DELETE = 3 /* write deleted data marks */
  36. } ft_write_mode_t;
  37. extern int ftape_start_writing(const ft_write_mode_t mode);
  38. extern int ftape_write_segment(const int segment,
  39. const void *address,
  40. const ft_write_mode_t flushing);
  41. extern void ftape_zap_write_buffers(void);
  42. extern int ftape_loop_until_writes_done(void);
  43. #endif /* _FTAPE_WRITE_H */