1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * comedi/drivers/amplc_pc236.h
4 * Header for "amplc_pc236", "amplc_pci236" and "amplc_pc236_common".
5 *
6 * Copyright (C) 2002-2014 MEV Ltd. <https://www.mev.co.uk/>
7 *
8 * COMEDI - Linux Control and Measurement Device Interface
9 * Copyright (C) 2000 David A. Schleef <ds@schleef.org>
10 */
11
12#ifndef AMPLC_PC236_H_INCLUDED
13#define AMPLC_PC236_H_INCLUDED
14
15#include <linux/types.h>
16
17struct comedi_device;
18
19struct pc236_board {
20	const char *name;
21	void (*intr_update_cb)(struct comedi_device *dev, bool enable);
22	bool (*intr_chk_clr_cb)(struct comedi_device *dev);
23};
24
25struct pc236_private {
26	unsigned long lcr_iobase; /* PLX PCI9052 config registers in PCIBAR1 */
27	bool enable_irq;
28};
29
30int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase,
31			      unsigned int irq, unsigned long req_irq_flags);
32
33#endif
34