zftape-ctl.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef _ZFTAPE_CTL_H
  2. #define _ZFTAPE_CTL_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-ctl.h,v $
  18. * $Revision: 1.2 $
  19. * $Date: 1997/10/05 19:19:02 $
  20. *
  21. * This file contains the non-standard IOCTL related definitions
  22. * for the QIC-40/80 floppy-tape driver for Linux.
  23. */
  24. #include <linux/config.h>
  25. #include <linux/ioctl.h>
  26. #include <linux/mtio.h>
  27. #include "../zftape/zftape-rw.h"
  28. #ifdef CONFIG_ZFTAPE_MODULE
  29. #define ftape_status (*zft_status)
  30. #endif
  31. extern int zft_offline;
  32. extern int zft_mt_compression;
  33. extern int zft_write_protected;
  34. extern int zft_header_read;
  35. extern unsigned int zft_unit;
  36. extern int zft_resid;
  37. extern void zft_reset_position(zft_position *pos);
  38. extern int zft_check_write_access(zft_position *pos);
  39. extern int zft_def_idle_state(void);
  40. /* hooks for the VFS interface
  41. */
  42. extern int _zft_open(unsigned int dev_minor, unsigned int access_mode);
  43. extern int _zft_close(void);
  44. extern int _zft_ioctl(unsigned int command, void __user *arg);
  45. #endif