Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364015
b: refs/heads/master
c: 50f7ee9
h: refs/heads/master
i:
  364013: 56e8d7a
  364011: 3860562
  364007: e91c5f4
  363999: 7ada801
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 9, 2013
1 parent bf5bd91 commit 59138fe
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 68 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca52a233f7e0ba12ceab6a99fea60e877207e58f
refs/heads/master: 50f7ee9f7d29fdcb23e71e9fff8ff9fef6a9618a
118 changes: 51 additions & 67 deletions trunk/drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
/*
comedi/drivers/rti800.c
Hardware driver for Analog Devices RTI-800/815 board
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 1998 David A. Schleef <ds@schleef.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* comedi/drivers/rti800.c
* Hardware driver for Analog Devices RTI-800/815 board
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 1998 David A. Schleef <ds@schleef.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
Driver: rti800
Description: Analog Devices RTI-800/815
Author: ds
Status: unknown
Updated: Fri, 05 Sep 2008 14:50:44 +0100
Devices: [Analog Devices] RTI-800 (rti800), RTI-815 (rti815)
Configuration options:
[0] - I/O port base address
[1] - IRQ (not supported / unused)
[2] - A/D reference
0 = differential
1 = pseudodifferential (common)
2 = single-ended
[3] - A/D range
0 = [-10,10]
1 = [-5,5]
2 = [0,10]
[4] - A/D encoding
0 = two's complement
1 = straight binary
[5] - DAC 0 range
0 = [-10,10]
1 = [0,10]
[6] - DAC 0 encoding
0 = two's complement
1 = straight binary
[7] - DAC 1 range (same as DAC 0)
[8] - DAC 1 encoding (same as DAC 0)
*/
* Driver: rti800
* Description: Analog Devices RTI-800/815
* Devices: (Analog Devices) RTI-800 [rti800]
* (Analog Devices) RTI-815 [rti815]
* Author: David A. Schleef <ds@schleef.org>
* Status: unknown
* Updated: Fri, 05 Sep 2008 14:50:44 +0100
*
* Configuration options:
* [0] - I/O port base address
* [1] - IRQ (not supported / unused)
* [2] - A/D mux/reference (number of channels)
* 0 = differential
* 1 = pseudodifferential (common)
* 2 = single-ended
* [3] - A/D range
* 0 = [-10,10]
* 1 = [-5,5]
* 2 = [0,10]
* [4] - A/D encoding
* 0 = two's complement
* 1 = straight binary
* [5] - DAC 0 range
* 0 = [-10,10]
* 1 = [0,10]
* [6] - DAC 0 encoding
* 0 = two's complement
* 1 = straight binary
* [7] - DAC 1 range (same as DAC 0)
* [8] - DAC 1 encoding (same as DAC 0)
*/

#include <linux/interrupt.h>
#include "../comedidev.h"
Expand Down Expand Up @@ -288,23 +289,6 @@ static int rti800_do_insn_bits(struct comedi_device *dev,
return insn->n;
}

/*
options[0] - I/O port
options[1] - irq
options[2] - a/d mux
0=differential, 1=pseudodiff, 2=single
options[3] - a/d range
0=bipolar10, 1=bipolar5, 2=unipolar10
options[4] - a/d coding
0=2's comp, 1=straight binary
options[5] - dac0 range
0=bipolar10, 1=unipolar10
options[6] - dac0 coding
0=2's comp, 1=straight binary
options[7] - dac1 range
options[8] - dac1 coding
*/

static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct rti800_board *board = comedi_board(dev);
Expand Down

0 comments on commit 59138fe

Please sign in to comment.