linux/drivers/comedi/drivers/amplc_pc236_common.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * comedi/drivers/amplc_pc236_common.c
 * Common support code for "amplc_pc236" and "amplc_pci236".
 *
 * Copyright (C) 2002-2014 MEV Ltd. <https://www.mev.co.uk/>
 *
 * COMEDI - Linux Control and Measurement Device Interface
 * Copyright (C) 2000 David A. Schleef <[email protected]>
 */

#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>

#include "amplc_pc236.h"

static void pc236_intr_update(struct comedi_device *dev, bool enable)
{}

/*
 * This function is called when an interrupt occurs to check whether
 * the interrupt has been marked as enabled and was generated by the
 * board.  If so, the function prepares the hardware for the next
 * interrupt.
 * Returns false if the interrupt should be ignored.
 */
static bool pc236_intr_check(struct comedi_device *dev)
{}

static int pc236_intr_insn(struct comedi_device *dev,
			   struct comedi_subdevice *s, struct comedi_insn *insn,
			   unsigned int *data)
{}

static int pc236_intr_cmdtest(struct comedi_device *dev,
			      struct comedi_subdevice *s,
			      struct comedi_cmd *cmd)
{}

static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
{}

static int pc236_intr_cancel(struct comedi_device *dev,
			     struct comedi_subdevice *s)
{}

static irqreturn_t pc236_interrupt(int irq, void *d)
{}

int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase,
			      unsigned int irq, unsigned long req_irq_flags)
{}
EXPORT_SYMBOL_GPL();

static int __init amplc_pc236_common_init(void)
{}
module_init();

static void __exit amplc_pc236_common_exit(void)
{}
module_exit(amplc_pc236_common_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();