linux/drivers/comedi/drivers/multiq3.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * multiq3.c
 * Hardware driver for Quanser Consulting MultiQ-3 board
 *
 * COMEDI - Linux Control and Measurement Device Interface
 * Copyright (C) 1999 Anders Blomdell <[email protected]>
 */

/*
 * Driver: multiq3
 * Description: Quanser Consulting MultiQ-3
 * Devices: [Quanser Consulting] MultiQ-3 (multiq3)
 * Author: Anders Blomdell <[email protected]>
 * Status: works
 *
 * Configuration Options:
 *  [0] - I/O port base address
 *  [1] - IRQ (not used)
 *  [2] - Number of optional encoder chips installed on board
 *	  0 = none
 *	  1 = 2 inputs (Model -2E)
 *	  2 = 4 inputs (Model -4E)
 *	  3 = 6 inputs (Model -6E)
 *	  4 = 8 inputs (Model -8E)
 */

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

/*
 * Register map
 */
#define MULTIQ3_DI_REG
#define MULTIQ3_DO_REG
#define MULTIQ3_AO_REG
#define MULTIQ3_AI_REG
#define MULTIQ3_AI_CONV_REG
#define MULTIQ3_STATUS_REG
#define MULTIQ3_STATUS_EOC
#define MULTIQ3_STATUS_EOC_I
#define MULTIQ3_CTRL_REG
#define MULTIQ3_CTRL_AO_CHAN(x)
#define MULTIQ3_CTRL_RC(x)
#define MULTIQ3_CTRL_AI_CHAN(x)
#define MULTIQ3_CTRL_E_CHAN(x)
#define MULTIQ3_CTRL_EN
#define MULTIQ3_CTRL_AZ
#define MULTIQ3_CTRL_CAL
#define MULTIQ3_CTRL_SH
#define MULTIQ3_CTRL_CLK
#define MULTIQ3_CTRL_LD
#define MULTIQ3_CLK_REG
#define MULTIQ3_ENC_DATA_REG
#define MULTIQ3_ENC_CTRL_REG

/*
 * Encoder chip commands (from the programming manual)
 */
#define MULTIQ3_CLOCK_DATA
#define MULTIQ3_CLOCK_SETUP
#define MULTIQ3_INPUT_SETUP
#define MULTIQ3_QUAD_X4
#define MULTIQ3_BP_RESET
#define MULTIQ3_CNTR_RESET
#define MULTIQ3_TRSFRPR_CTR
#define MULTIQ3_TRSFRCNTR_OL
#define MULTIQ3_EFLAG_RESET

static void multiq3_set_ctrl(struct comedi_device *dev, unsigned int bits)
{}

static int multiq3_ai_status(struct comedi_device *dev,
			     struct comedi_subdevice *s,
			     struct comedi_insn *insn,
			     unsigned long context)
{}

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

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

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

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

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

static void multiq3_encoder_reset(struct comedi_device *dev,
				  unsigned int chan)
{}

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

static int multiq3_attach(struct comedi_device *dev,
			  struct comedi_devconfig *it)
{}

static struct comedi_driver multiq3_driver =;
module_comedi_driver();

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