fdc-isr.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _FDC_ISR_H
  2. #define _FDC_ISR_H
  3. /*
  4. * Copyright (C) 1993-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/fdc-isr.h,v $
  19. * $Revision: 1.2 $
  20. * $Date: 1997/10/05 19:18:07 $
  21. *
  22. * This file declares the global variables necessary to
  23. * synchronize the interrupt service routine (isr) with the
  24. * remainder of the QIC-40/80/3010/3020 floppy-tape driver
  25. * "ftape" for Linux.
  26. */
  27. /*
  28. * fdc-isr.c defined public variables
  29. */
  30. extern volatile int ft_expected_stray_interrupts; /* masks stray interrupts */
  31. extern volatile int ft_seek_completed; /* flag set by isr */
  32. extern volatile int ft_interrupt_seen; /* flag set by isr */
  33. extern volatile int ft_hide_interrupt; /* flag set by isr */
  34. /*
  35. * fdc-io.c defined public functions
  36. */
  37. extern void fdc_isr(void);
  38. /*
  39. * A kernel hook that steals one interrupt from the floppy
  40. * driver (Should be fixed when the new fdc driver gets ready)
  41. * See the linux kernel source files:
  42. * drivers/block/floppy.c & drivers/block/blk.h
  43. * for the details.
  44. */
  45. extern void (*do_floppy) (void);
  46. #endif