linux/drivers/comedi/drivers/ni_tiocmd.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Command support for NI general purpose counters
 *
 * Copyright (C) 2006 Frank Mori Hess <[email protected]>
 */

/*
 * Module: ni_tiocmd
 * Description: National Instruments general purpose counters command support
 * Author: J.P. Mellor <[email protected]>,
 *         [email protected],
 *         [email protected],
 *         [email protected],
 *         Frank Mori Hess <[email protected]>
 * Updated: Fri, 11 Apr 2008 12:32:35 +0100
 * Status: works
 *
 * This module is not used directly by end-users.  Rather, it
 * is used by other drivers (for example ni_660x and ni_pcimio)
 * to provide command support for NI's general purpose counters.
 * It was originally split out of ni_tio.c to stop the 'ni_tio'
 * module depending on the 'mite' module.
 *
 * References:
 * DAQ 660x Register-Level Programmer Manual  (NI 370505A-01)
 * DAQ 6601/6602 User Manual (NI 322137B-01)
 * 340934b.pdf  DAQ-STC reference manual
 *
 * TODO: Support use of both banks X and Y
 */

#include <linux/module.h>
#include "ni_tio_internal.h"
#include "mite.h"
#include "ni_routes.h"

static void ni_tio_configure_dma(struct ni_gpct *counter,
				 bool enable, bool read)
{}

static int ni_tio_input_inttrig(struct comedi_device *dev,
				struct comedi_subdevice *s,
				unsigned int trig_num)
{}

static int ni_tio_input_cmd(struct comedi_subdevice *s)
{}

static int ni_tio_output_cmd(struct comedi_subdevice *s)
{}

static int ni_tio_cmd_setup(struct comedi_subdevice *s)
{}

int ni_tio_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
{}
EXPORT_SYMBOL_GPL();

int ni_tio_cmdtest(struct comedi_device *dev,
		   struct comedi_subdevice *s,
		   struct comedi_cmd *cmd)
{}
EXPORT_SYMBOL_GPL();

int ni_tio_cancel(struct ni_gpct *counter)
{}
EXPORT_SYMBOL_GPL();

static int should_ack_gate(struct ni_gpct *counter)
{}

static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter,
					   int *gate_error,
					   int *tc_error,
					   int *perm_stale_data)
{}

void ni_tio_acknowledge(struct ni_gpct *counter)
{}
EXPORT_SYMBOL_GPL();

void ni_tio_handle_interrupt(struct ni_gpct *counter,
			     struct comedi_subdevice *s)
{}
EXPORT_SYMBOL_GPL();

void ni_tio_set_mite_channel(struct ni_gpct *counter,
			     struct mite_channel *mite_chan)
{}
EXPORT_SYMBOL_GPL();

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

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

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