1/* 2 * comedi/drivers/amplc_pc236.h 3 * Header for "amplc_pc236", "amplc_pci236" and "amplc_pc236_common". 4 * 5 * Copyright (C) 2002-2014 MEV Ltd. <http://www.mev.co.uk/> 6 * 7 * COMEDI - Linux Control and Measurement Device Interface 8 * Copyright (C) 2000 David A. Schleef <ds@schleef.org> 9 * 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. 14 * 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. 19 */ 20 21#ifndef AMPLC_PC236_H_INCLUDED 22#define AMPLC_PC236_H_INCLUDED 23 24#include <linux/types.h> 25 26struct comedi_device; 27 28struct pc236_board { 29 const char *name; 30 void (*intr_update_cb)(struct comedi_device *dev, bool enable); 31 bool (*intr_chk_clr_cb)(struct comedi_device *dev); 32}; 33 34struct pc236_private { 35 unsigned long lcr_iobase; /* PLX PCI9052 config registers in PCIBAR1 */ 36 bool enable_irq; 37}; 38 39int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase, 40 unsigned int irq, unsigned long req_irq_flags); 41 42#endif 43