Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
86 f9daq 1
#ifndef __FOPS_H__
2
#define __FOPS_H__
3
 
4
//****************************************************************************
5
// Copyright (C) 2000-2004  ARW Elektronik Germany
6
//
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 of the License, or
11
// (at your option) 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; if not, write to the Free Software
20
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
//
22
// This product is not authorized for use as critical component in 
23
// life support systems without the express written approval of 
24
// ARW Elektronik Germany.
25
//  
26
// Please announce changes and hints to ARW Elektronik
27
//
28
// Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de)
29
//
30
//****************************************************************************
31
 
32
//****************************************************************************
33
//
34
// fops.h -- the file operations header for the PCICC32 PCI to CAMAC Interface
35
//
36
// $Log: fops.h,v $
37
// Revision 1.7  2006/03/28 21:49:49  klaus
38
// release_20060328; Version 6.8; Support for AMD64 and Kernel 2.6.15
39
//
40
// Revision 1.6  2004/08/12 19:59:19  klaus
41
// conversion to kernel-version 2.6, released version 6.0
42
//
43
// Revision 1.5  2003/05/11 11:12:03  klaus
44
// matched to kernel 2.4 PCI handling, debug messages improved
45
//
46
// Revision 1.4  2002/04/14 18:25:38  klaus
47
// added interrupt handling, driver 4.4. ...3.5.tar.gz
48
//
49
// Revision 1.3  2002/04/10 18:40:10  klaus
50
// compiled and modified on RedHat 7.2
51
//
52
// Revision 1.2  2001/11/20 20:12:50  klaus
53
// included new header and CVS log
54
//
55
//
56
// first steps (on my mothers birthday)                        AR   23.02.2000
57
//
58
//****************************************************************************
59
 
60
/*--- INCLUDES ----------------------------------------------------------------------------*/
61
#include "askpci.h"
62
 
63
/*--- TYPEDEFS ----------------------------------------------------------------------------*/
64
typedef struct
65
{
66
        u16 wIndex; /* running index of all PCIADAs */
67
        PCIConfigHeader *pPch; /* associated PCI configuration */
68
        void *pLCR;  /* base of LCR */
69
        void *pUsr;  /* base of User space */
70
        u8  bConnected;    /* is it connected ?? */
71
        u8  cModuleNumber; /* module number */
72
        u8  cFPGAVersion;  /* FPGA Version number */
73
        u16 wInitStep;     /* counts the done init steps */
74
        u16 wIrq;          /* the assigned irq */
75
        u32 dwInterruptCount;  /* counts the LAM and timeout interrupts */
76
        u16 wIrqStatus;    /* last cause / status of interrupts */
77
        wait_queue_head_t event_queue; /* handle interrupt events */
78
} CC32_DESCRIPTOR;
79
 
80
/*--- PROTOTYPES --------------------------------------------------------------------------*/
81
 
82
#endif // __FOPS_H__