2 * comedi/drivers/amplc_pc236.h
3 * Header for "amplc_pc236", "amplc_pci236" and "amplc_pc236_common".
5 * Copyright (C) 2002-2014 MEV Ltd. <http://www.mev.co.uk/>
7 * COMEDI - Linux Control and Measurement Device Interface
8 * Copyright (C) 2000 David A. Schleef <ds@schleef.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef AMPLC_PC236_H_INCLUDED
22 #define AMPLC_PC236_H_INCLUDED
24 #include <linux/types.h>
30 void (*intr_update_cb)(struct comedi_device *dev, bool enable);
31 bool (*intr_chk_clr_cb)(struct comedi_device *dev);
34 struct pc236_private {
35 unsigned long lcr_iobase; /* PLX PCI9052 config registers in PCIBAR1 */
39 int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase,
40 unsigned int irq, unsigned long req_irq_flags);