1 #ifndef _FDC_ISR_H
2 #define _FDC_ISR_H
3 
4 /*
5  * Copyright (C) 1993-1996 Bas Laarhoven,
6  *           (C) 1996-1997 Claus-Justus Heine.
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2, or (at your option)
11  any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; see the file COPYING.  If not, write to
20  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22  *
23  * $Source: /homes/cvs/ftape-stacked/ftape/lowlevel/fdc-isr.h,v $
24  * $Revision: 1.2 $
25  * $Date: 1997/10/05 19:18:07 $
26  *
27  *      This file declares the global variables necessary to
28  *      synchronize the interrupt service routine (isr) with the
29  *      remainder of the QIC-40/80/3010/3020 floppy-tape driver
30  *      "ftape" for Linux.
31  */
32 
33 /*
34  *      fdc-isr.c defined public variables
35  */
36 extern volatile int ft_expected_stray_interrupts; /* masks stray interrupts */
37 extern volatile int ft_seek_completed;	          /* flag set by isr */
38 extern volatile int ft_interrupt_seen;	          /* flag set by isr */
39 extern volatile int ft_hide_interrupt;            /* flag set by isr */
40 
41 /*
42  *      fdc-io.c defined public functions
43  */
44 extern void fdc_isr(void);
45 
46 /*
47  *      A kernel hook that steals one interrupt from the floppy
48  *      driver (Should be fixed when the new fdc driver gets ready)
49  *      See the linux kernel source files:
50  *          drivers/block/floppy.c & drivers/block/blk.h
51  *      for the details.
52  */
53 extern void (*do_floppy) (void);
54 
55 #endif
56