// SPDX-License-Identifier: GPL-2.0+ /* * rti802.c * Comedi driver for Analog Devices RTI-802 board * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 1999 Anders Blomdell <[email protected]> */ /* * Driver: rti802 * Description: Analog Devices RTI-802 * Author: Anders Blomdell <[email protected]> * Devices: [Analog Devices] RTI-802 (rti802) * Status: works * * Configuration Options: * [0] - i/o base * [1] - unused * [2,4,6,8,10,12,14,16] - dac#[0-7] 0=two's comp, 1=straight * [3,5,7,9,11,13,15,17] - dac#[0-7] 0=bipolar, 1=unipolar */ #include <linux/module.h> #include <linux/comedi/comedidev.h> /* * Register I/O map */ #define RTI802_SELECT … #define RTI802_DATALOW … #define RTI802_DATAHIGH … struct rti802_private { … }; static int rti802_ao_insn_write(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) { … } static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) { … } static struct comedi_driver rti802_driver = …; module_comedi_driver(…); MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;