Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ii_pci20kc.c File Reference
#include "../comedidev.h"

Go to the source code of this file.

Data Structures

union  pci20xxx_subdev_private
 
struct  pci20xxx_private
 

Macros

#define PCI20000_ID   0x1d
 
#define PCI20341_ID   0x77
 
#define PCI20006_ID   0xe3
 
#define PCI20xxx_EMPTY_ID   0xff
 
#define PCI20000_OFFSET   0x100
 
#define PCI20000_MODULES   3
 
#define PCI20000_DIO_0   0x80
 
#define PCI20000_DIO_1   0x81
 
#define PCI20000_DIO_2   0xc0
 
#define PCI20000_DIO_3   0xc1
 
#define PCI20000_DIO_CONTROL_01   0x83 /* port 0, 1 control */
 
#define PCI20000_DIO_CONTROL_23   0xc3 /* port 2, 3 control */
 
#define PCI20000_DIO_BUFFER   0x82 /* buffer direction & enable */
 
#define PCI20000_DIO_EOC   0xef /* even port, control output */
 
#define PCI20000_DIO_OOC   0xfd /* odd port, control output */
 
#define PCI20000_DIO_EIC   0x90 /* even port, control input */
 
#define PCI20000_DIO_OIC   0x82 /* odd port, control input */
 
#define DIO_CAND   0x12 /* and bit 1 & 4 of control */
 
#define DIO_BE   0x01 /* buffer: port enable */
 
#define DIO_BO   0x04 /* buffer: output */
 
#define DIO_BI   0x05 /* buffer: input */
 
#define DIO_PS_0   0x00 /* buffer: port shift 0 */
 
#define DIO_PS_1   0x01 /* buffer: port shift 1 */
 
#define DIO_PS_2   0x04 /* buffer: port shift 2 */
 
#define DIO_PS_3   0x05 /* buffer: port shift 3 */
 
#define PCI20006_LCHAN0   0x0d
 
#define PCI20006_STROBE0   0x0b
 
#define PCI20006_LCHAN1   0x15
 
#define PCI20006_STROBE1   0x13
 
#define PCI20341_INIT   0x04
 
#define PCI20341_REPMODE   0x00 /* single shot mode */
 
#define PCI20341_PACER   0x00 /* Hardware Pacer disabled */
 
#define PCI20341_CHAN_NR   0x04 /* number of input channels */
 
#define PCI20341_CONFIG_REG   0x10
 
#define PCI20341_MOD_STATUS   0x01
 
#define PCI20341_OPT_REG   0x11
 
#define PCI20341_SET_TIME_REG   0x15
 
#define PCI20341_LCHAN_ADDR_REG   0x13
 
#define PCI20341_CHAN_LIST   0x80
 
#define PCI20341_CC_RESET   0x1b
 
#define PCI20341_CHAN_RESET   0x19
 
#define PCI20341_SOFT_PACER   0x04
 
#define PCI20341_STATUS_REG   0x12
 
#define PCI20341_LDATA   0x02
 
#define PCI20341_DAISY_CHAIN   0x20 /* On-board inputs only */
 
#define PCI20341_MUX   0x04 /* Enable on-board MUX */
 
#define PCI20341_SCANLIST   0x80 /* Channel/Gain Scan List */
 
#define devpriv   ((struct pci20xxx_private *)dev->private)
 
#define CHAN   (CR_CHAN(it->chanlist[0]))
 

Functions

 module_comedi_driver (pci20xxx_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CHAN   (CR_CHAN(it->chanlist[0]))

Definition at line 160 of file ii_pci20kc.c.

#define devpriv   ((struct pci20xxx_private *)dev->private)

Definition at line 159 of file ii_pci20kc.c.

#define DIO_BE   0x01 /* buffer: port enable */

Definition at line 105 of file ii_pci20kc.c.

#define DIO_BI   0x05 /* buffer: input */

Definition at line 107 of file ii_pci20kc.c.

#define DIO_BO   0x04 /* buffer: output */

Definition at line 106 of file ii_pci20kc.c.

#define DIO_CAND   0x12 /* and bit 1 & 4 of control */

Definition at line 104 of file ii_pci20kc.c.

#define DIO_PS_0   0x00 /* buffer: port shift 0 */

Definition at line 108 of file ii_pci20kc.c.

#define DIO_PS_1   0x01 /* buffer: port shift 1 */

Definition at line 109 of file ii_pci20kc.c.

#define DIO_PS_2   0x04 /* buffer: port shift 2 */

Definition at line 110 of file ii_pci20kc.c.

#define DIO_PS_3   0x05 /* buffer: port shift 3 */

Definition at line 111 of file ii_pci20kc.c.

#define PCI20000_DIO_0   0x80

Definition at line 93 of file ii_pci20kc.c.

#define PCI20000_DIO_1   0x81

Definition at line 94 of file ii_pci20kc.c.

#define PCI20000_DIO_2   0xc0

Definition at line 95 of file ii_pci20kc.c.

#define PCI20000_DIO_3   0xc1

Definition at line 96 of file ii_pci20kc.c.

#define PCI20000_DIO_BUFFER   0x82 /* buffer direction & enable */

Definition at line 99 of file ii_pci20kc.c.

#define PCI20000_DIO_CONTROL_01   0x83 /* port 0, 1 control */

Definition at line 97 of file ii_pci20kc.c.

#define PCI20000_DIO_CONTROL_23   0xc3 /* port 2, 3 control */

Definition at line 98 of file ii_pci20kc.c.

#define PCI20000_DIO_EIC   0x90 /* even port, control input */

Definition at line 102 of file ii_pci20kc.c.

#define PCI20000_DIO_EOC   0xef /* even port, control output */

Definition at line 100 of file ii_pci20kc.c.

#define PCI20000_DIO_OIC   0x82 /* odd port, control input */

Definition at line 103 of file ii_pci20kc.c.

#define PCI20000_DIO_OOC   0xfd /* odd port, control output */

Definition at line 101 of file ii_pci20kc.c.

#define PCI20000_ID   0x1d

Definition at line 85 of file ii_pci20kc.c.

#define PCI20000_MODULES   3

Definition at line 91 of file ii_pci20kc.c.

#define PCI20000_OFFSET   0x100

Definition at line 90 of file ii_pci20kc.c.

#define PCI20006_ID   0xe3

Definition at line 87 of file ii_pci20kc.c.

#define PCI20006_LCHAN0   0x0d

Definition at line 113 of file ii_pci20kc.c.

#define PCI20006_LCHAN1   0x15

Definition at line 115 of file ii_pci20kc.c.

#define PCI20006_STROBE0   0x0b

Definition at line 114 of file ii_pci20kc.c.

#define PCI20006_STROBE1   0x13

Definition at line 116 of file ii_pci20kc.c.

#define PCI20341_CC_RESET   0x1b

Definition at line 128 of file ii_pci20kc.c.

#define PCI20341_CHAN_LIST   0x80

Definition at line 127 of file ii_pci20kc.c.

#define PCI20341_CHAN_NR   0x04 /* number of input channels */

Definition at line 121 of file ii_pci20kc.c.

#define PCI20341_CHAN_RESET   0x19

Definition at line 129 of file ii_pci20kc.c.

#define PCI20341_CONFIG_REG   0x10

Definition at line 122 of file ii_pci20kc.c.

#define PCI20341_DAISY_CHAIN   0x20 /* On-board inputs only */

Definition at line 133 of file ii_pci20kc.c.

#define PCI20341_ID   0x77

Definition at line 86 of file ii_pci20kc.c.

#define PCI20341_INIT   0x04

Definition at line 118 of file ii_pci20kc.c.

#define PCI20341_LCHAN_ADDR_REG   0x13

Definition at line 126 of file ii_pci20kc.c.

#define PCI20341_LDATA   0x02

Definition at line 132 of file ii_pci20kc.c.

#define PCI20341_MOD_STATUS   0x01

Definition at line 123 of file ii_pci20kc.c.

#define PCI20341_MUX   0x04 /* Enable on-board MUX */

Definition at line 134 of file ii_pci20kc.c.

#define PCI20341_OPT_REG   0x11

Definition at line 124 of file ii_pci20kc.c.

#define PCI20341_PACER   0x00 /* Hardware Pacer disabled */

Definition at line 120 of file ii_pci20kc.c.

#define PCI20341_REPMODE   0x00 /* single shot mode */

Definition at line 119 of file ii_pci20kc.c.

#define PCI20341_SCANLIST   0x80 /* Channel/Gain Scan List */

Definition at line 135 of file ii_pci20kc.c.

#define PCI20341_SET_TIME_REG   0x15

Definition at line 125 of file ii_pci20kc.c.

#define PCI20341_SOFT_PACER   0x04

Definition at line 130 of file ii_pci20kc.c.

#define PCI20341_STATUS_REG   0x12

Definition at line 131 of file ii_pci20kc.c.

#define PCI20xxx_EMPTY_ID   0xff

Definition at line 88 of file ii_pci20kc.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_driver ( pci20xxx_driver  )
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_LICENSE ( "GPL"  )