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

Go to the source code of this file.

Data Structures

struct  atao_board
 
struct  atao_private
 

Macros

#define ATAO_SIZE   0x20
 
#define ATAO_2_DMATCCLR   0x00 /* W 16 */
 
#define ATAO_DIN   0x00 /* R 16 */
 
#define ATAO_DOUT   0x00 /* W 16 */
 
#define ATAO_CFG2   0x02 /* W 16 */
 
#define CALLD1   0x8000
 
#define CALLD0   0x4000
 
#define FFRTEN   0x2000
 
#define DAC2S8   0x1000
 
#define DAC2S6   0x0800
 
#define DAC2S4   0x0400
 
#define DAC2S2   0x0200
 
#define DAC2S0   0x0100
 
#define LDAC8   0x0080
 
#define LDAC6   0x0040
 
#define LDAC4   0x0020
 
#define LDAC2   0x0010
 
#define LDAC0   0x0008
 
#define PROMEN   0x0004
 
#define SCLK   0x0002
 
#define SDATA   0x0001
 
#define ATAO_2_INT1CLR   0x02 /* W 16 */
 
#define ATAO_CFG3   0x04 /* W 16 */
 
#define DMAMODE   0x0040
 
#define CLKOUT   0x0020
 
#define RCLKEN   0x0010
 
#define DOUTEN2   0x0008
 
#define DOUTEN1   0x0004
 
#define EN2_5V   0x0002
 
#define SCANEN   0x0001
 
#define ATAO_2_INT2CLR   0x04 /* W 16 */
 
#define ATAO_82C53_BASE   0x06 /* RW 8 */
 
#define ATAO_82C53_CNTR1   0x06 /* RW 8 */
 
#define ATAO_82C53_CNTR2   0x07 /* RW 8 */
 
#define ATAO_82C53_CNTR3   0x08 /* RW 8 */
 
#define ATAO_82C53_CNTRCMD   0x09 /* W 8 */
 
#define CNTRSEL1   0x80
 
#define CNTRSEL0   0x40
 
#define RWSEL1   0x20
 
#define RWSEL0   0x10
 
#define MODESEL2   0x08
 
#define MODESEL1   0x04
 
#define MODESEL0   0x02
 
#define BCDSEL   0x01
 
#define COUNT   0x20
 
#define STATUS   0x10
 
#define CNTR3   0x08
 
#define CNTR2   0x04
 
#define CNTR1   0x02
 
#define OUT   0x80
 
#define _NULL   0x40
 
#define RW1   0x20
 
#define RW0   0x10
 
#define MODE2   0x08
 
#define MODE1   0x04
 
#define MODE0   0x02
 
#define BCD   0x01
 
#define ATAO_2_RTSISHFT   0x06 /* W 8 */
 
#define RSI   0x01
 
#define ATAO_2_RTSISTRB   0x07 /* W 8 */
 
#define ATAO_CFG1   0x0a /* W 16 */
 
#define EXTINT2EN   0x8000
 
#define EXTINT1EN   0x4000
 
#define CNTINT2EN   0x2000
 
#define CNTINT1EN   0x1000
 
#define TCINTEN   0x0800
 
#define CNT1SRC   0x0400
 
#define CNT2SRC   0x0200
 
#define FIFOEN   0x0100
 
#define GRP2WR   0x0080
 
#define EXTUPDEN   0x0040
 
#define DMARQ   0x0020
 
#define DMAEN   0x0010
 
#define CH_mask   0x000f
 
#define ATAO_STATUS   0x0a /* R 16 */
 
#define FH   0x0040
 
#define FE   0x0020
 
#define FF   0x0010
 
#define INT2   0x0008
 
#define INT1   0x0004
 
#define TCINT   0x0002
 
#define PROMOUT   0x0001
 
#define ATAO_FIFO_WRITE   0x0c /* W 16 */
 
#define ATAO_FIFO_CLEAR   0x0c /* R 16 */
 
#define ATAO_DACn(x)   (0x0c + 2*(x)) /* W */
 
#define devpriv   ((struct atao_private *)dev->private)
 

Functions

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

Macro Definition Documentation

#define _NULL   0x40

Definition at line 110 of file ni_at_ao.c.

#define ATAO_2_DMATCCLR   0x00 /* W 16 */

Definition at line 53 of file ni_at_ao.c.

#define ATAO_2_INT1CLR   0x02 /* W 16 */

Definition at line 75 of file ni_at_ao.c.

#define ATAO_2_INT2CLR   0x04 /* W 16 */

Definition at line 86 of file ni_at_ao.c.

#define ATAO_2_RTSISHFT   0x06 /* W 8 */

Definition at line 118 of file ni_at_ao.c.

#define ATAO_2_RTSISTRB   0x07 /* W 8 */

Definition at line 121 of file ni_at_ao.c.

#define ATAO_82C53_BASE   0x06 /* RW 8 */

Definition at line 88 of file ni_at_ao.c.

#define ATAO_82C53_CNTR1   0x06 /* RW 8 */

Definition at line 90 of file ni_at_ao.c.

#define ATAO_82C53_CNTR2   0x07 /* RW 8 */

Definition at line 91 of file ni_at_ao.c.

#define ATAO_82C53_CNTR3   0x08 /* RW 8 */

Definition at line 92 of file ni_at_ao.c.

#define ATAO_82C53_CNTRCMD   0x09 /* W 8 */

Definition at line 93 of file ni_at_ao.c.

#define ATAO_CFG1   0x0a /* W 16 */

Definition at line 123 of file ni_at_ao.c.

#define ATAO_CFG2   0x02 /* W 16 */

Definition at line 57 of file ni_at_ao.c.

#define ATAO_CFG3   0x04 /* W 16 */

Definition at line 77 of file ni_at_ao.c.

#define ATAO_DACn (   x)    (0x0c + 2*(x)) /* W */

Definition at line 148 of file ni_at_ao.c.

#define ATAO_DIN   0x00 /* R 16 */

Definition at line 54 of file ni_at_ao.c.

#define ATAO_DOUT   0x00 /* W 16 */

Definition at line 55 of file ni_at_ao.c.

#define ATAO_FIFO_CLEAR   0x0c /* R 16 */

Definition at line 147 of file ni_at_ao.c.

#define ATAO_FIFO_WRITE   0x0c /* W 16 */

Definition at line 146 of file ni_at_ao.c.

#define ATAO_SIZE   0x20

Definition at line 51 of file ni_at_ao.c.

#define ATAO_STATUS   0x0a /* R 16 */

Definition at line 137 of file ni_at_ao.c.

#define BCD   0x01

Definition at line 116 of file ni_at_ao.c.

#define BCDSEL   0x01

Definition at line 101 of file ni_at_ao.c.

#define CALLD0   0x4000

Definition at line 59 of file ni_at_ao.c.

#define CALLD1   0x8000

Definition at line 58 of file ni_at_ao.c.

#define CH_mask   0x000f

Definition at line 136 of file ni_at_ao.c.

#define CLKOUT   0x0020

Definition at line 79 of file ni_at_ao.c.

#define CNT1SRC   0x0400

Definition at line 129 of file ni_at_ao.c.

#define CNT2SRC   0x0200

Definition at line 130 of file ni_at_ao.c.

#define CNTINT1EN   0x1000

Definition at line 127 of file ni_at_ao.c.

#define CNTINT2EN   0x2000

Definition at line 126 of file ni_at_ao.c.

#define CNTR1   0x02

Definition at line 107 of file ni_at_ao.c.

#define CNTR2   0x04

Definition at line 106 of file ni_at_ao.c.

#define CNTR3   0x08

Definition at line 105 of file ni_at_ao.c.

#define CNTRSEL0   0x40

Definition at line 95 of file ni_at_ao.c.

#define CNTRSEL1   0x80

Definition at line 94 of file ni_at_ao.c.

#define COUNT   0x20

Definition at line 103 of file ni_at_ao.c.

#define DAC2S0   0x0100

Definition at line 65 of file ni_at_ao.c.

#define DAC2S2   0x0200

Definition at line 64 of file ni_at_ao.c.

#define DAC2S4   0x0400

Definition at line 63 of file ni_at_ao.c.

#define DAC2S6   0x0800

Definition at line 62 of file ni_at_ao.c.

#define DAC2S8   0x1000

Definition at line 61 of file ni_at_ao.c.

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

Definition at line 170 of file ni_at_ao.c.

#define DMAEN   0x0010

Definition at line 135 of file ni_at_ao.c.

#define DMAMODE   0x0040

Definition at line 78 of file ni_at_ao.c.

#define DMARQ   0x0020

Definition at line 134 of file ni_at_ao.c.

#define DOUTEN1   0x0004

Definition at line 82 of file ni_at_ao.c.

#define DOUTEN2   0x0008

Definition at line 81 of file ni_at_ao.c.

#define EN2_5V   0x0002

Definition at line 83 of file ni_at_ao.c.

#define EXTINT1EN   0x4000

Definition at line 125 of file ni_at_ao.c.

#define EXTINT2EN   0x8000

Definition at line 124 of file ni_at_ao.c.

#define EXTUPDEN   0x0040

Definition at line 133 of file ni_at_ao.c.

#define FE   0x0020

Definition at line 139 of file ni_at_ao.c.

#define FF   0x0010

Definition at line 140 of file ni_at_ao.c.

#define FFRTEN   0x2000

Definition at line 60 of file ni_at_ao.c.

#define FH   0x0040

Definition at line 138 of file ni_at_ao.c.

#define FIFOEN   0x0100

Definition at line 131 of file ni_at_ao.c.

#define GRP2WR   0x0080

Definition at line 132 of file ni_at_ao.c.

#define INT1   0x0004

Definition at line 142 of file ni_at_ao.c.

#define INT2   0x0008

Definition at line 141 of file ni_at_ao.c.

#define LDAC0   0x0008

Definition at line 70 of file ni_at_ao.c.

#define LDAC2   0x0010

Definition at line 69 of file ni_at_ao.c.

#define LDAC4   0x0020

Definition at line 68 of file ni_at_ao.c.

#define LDAC6   0x0040

Definition at line 67 of file ni_at_ao.c.

#define LDAC8   0x0080

Definition at line 66 of file ni_at_ao.c.

#define MODE0   0x02

Definition at line 115 of file ni_at_ao.c.

#define MODE1   0x04

Definition at line 114 of file ni_at_ao.c.

#define MODE2   0x08

Definition at line 113 of file ni_at_ao.c.

#define MODESEL0   0x02

Definition at line 100 of file ni_at_ao.c.

#define MODESEL1   0x04

Definition at line 99 of file ni_at_ao.c.

#define MODESEL2   0x08

Definition at line 98 of file ni_at_ao.c.

#define OUT   0x80

Definition at line 109 of file ni_at_ao.c.

#define PROMEN   0x0004

Definition at line 71 of file ni_at_ao.c.

#define PROMOUT   0x0001

Definition at line 144 of file ni_at_ao.c.

#define RCLKEN   0x0010

Definition at line 80 of file ni_at_ao.c.

#define RSI   0x01

Definition at line 119 of file ni_at_ao.c.

#define RW0   0x10

Definition at line 112 of file ni_at_ao.c.

#define RW1   0x20

Definition at line 111 of file ni_at_ao.c.

#define RWSEL0   0x10

Definition at line 97 of file ni_at_ao.c.

#define RWSEL1   0x20

Definition at line 96 of file ni_at_ao.c.

#define SCANEN   0x0001

Definition at line 84 of file ni_at_ao.c.

#define SCLK   0x0002

Definition at line 72 of file ni_at_ao.c.

#define SDATA   0x0001

Definition at line 73 of file ni_at_ao.c.

#define STATUS   0x10

Definition at line 104 of file ni_at_ao.c.

#define TCINT   0x0002

Definition at line 143 of file ni_at_ao.c.

#define TCINTEN   0x0800

Definition at line 128 of file ni_at_ao.c.

Function Documentation

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