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

Go to the source code of this file.

Data Structures

struct  atmio16_board_t
 
struct  atmio16d_private
 

Macros

#define COM_REG_1   0x00 /* wo 16 */
 
#define STAT_REG   0x00 /* ro 16 */
 
#define COM_REG_2   0x02 /* wo 16 */
 
#define START_CONVERT_REG   0x08 /* wo 16 */
 
#define START_DAQ_REG   0x0A /* wo 16 */
 
#define AD_CLEAR_REG   0x0C /* wo 16 */
 
#define EXT_STROBE_REG   0x0E /* wo 16 */
 
#define DAC0_REG   0x10 /* wo 16 */
 
#define DAC1_REG   0x12 /* wo 16 */
 
#define INT2CLR_REG   0x14 /* wo 16 */
 
#define MUX_CNTR_REG   0x04 /* wo 16 */
 
#define MUX_GAIN_REG   0x06 /* wo 16 */
 
#define AD_FIFO_REG   0x16 /* ro 16 */
 
#define DMA_TC_INT_CLR_REG   0x16 /* wo 16 */
 
#define AM9513A_DATA_REG   0x18 /* rw 16 */
 
#define AM9513A_COM_REG   0x1A /* wo 16 */
 
#define AM9513A_STAT_REG   0x1A /* ro 16 */
 
#define MIO_16_DIG_IN_REG   0x1C /* ro 16 */
 
#define MIO_16_DIG_OUT_REG   0x1C /* wo 16 */
 
#define RTSI_SW_SHIFT_REG   0x1E /* wo 8 */
 
#define RTSI_SW_STROBE_REG   0x1F /* wo 8 */
 
#define DIO_24_PORTA_REG   0x00 /* rw 8 */
 
#define DIO_24_PORTB_REG   0x01 /* rw 8 */
 
#define DIO_24_PORTC_REG   0x02 /* rw 8 */
 
#define DIO_24_CNFG_REG   0x03 /* wo 8 */
 
#define COMREG1_2SCADC   0x0001
 
#define COMREG1_1632CNT   0x0002
 
#define COMREG1_SCANEN   0x0008
 
#define COMREG1_DAQEN   0x0010
 
#define COMREG1_DMAEN   0x0020
 
#define COMREG1_CONVINTEN   0x0080
 
#define COMREG2_SCN2   0x0010
 
#define COMREG2_INTEN   0x0080
 
#define COMREG2_DOUTEN0   0x0100
 
#define COMREG2_DOUTEN1   0x0200
 
#define STAT_AD_OVERRUN   0x0100
 
#define STAT_AD_OVERFLOW   0x0200
 
#define STAT_AD_DAQPROG   0x0800
 
#define STAT_AD_CONVAVAIL   0x2000
 
#define STAT_AD_DAQSTOPINT   0x4000
 
#define CLOCK_1_MHZ   0x8B25
 
#define CLOCK_100_KHZ   0x8C25
 
#define CLOCK_10_KHZ   0x8D25
 
#define CLOCK_1_KHZ   0x8E25
 
#define CLOCK_100_HZ   0x8F25
 
#define ATMIO16D_SIZE   32 /* bus address range */
 
#define devpriv   ((struct atmio16d_private *)dev->private)
 
#define ATMIO16D_TIMEOUT   10
 

Functions

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

Macro Definition Documentation

#define AD_CLEAR_REG   0x0C /* wo 16 */

Definition at line 53 of file ni_atmio16d.c.

#define AD_FIFO_REG   0x16 /* ro 16 */

Definition at line 62 of file ni_atmio16d.c.

#define AM9513A_COM_REG   0x1A /* wo 16 */

Definition at line 66 of file ni_atmio16d.c.

#define AM9513A_DATA_REG   0x18 /* rw 16 */

Definition at line 65 of file ni_atmio16d.c.

#define AM9513A_STAT_REG   0x1A /* ro 16 */

Definition at line 67 of file ni_atmio16d.c.

#define ATMIO16D_SIZE   32 /* bus address range */

Definition at line 104 of file ni_atmio16d.c.

#define ATMIO16D_TIMEOUT   10

Definition at line 106 of file ni_atmio16d.c.

#define CLOCK_100_HZ   0x8F25

Definition at line 102 of file ni_atmio16d.c.

#define CLOCK_100_KHZ   0x8C25

Definition at line 99 of file ni_atmio16d.c.

#define CLOCK_10_KHZ   0x8D25

Definition at line 100 of file ni_atmio16d.c.

#define CLOCK_1_KHZ   0x8E25

Definition at line 101 of file ni_atmio16d.c.

#define CLOCK_1_MHZ   0x8B25

Definition at line 98 of file ni_atmio16d.c.

#define COM_REG_1   0x00 /* wo 16 */

Definition at line 47 of file ni_atmio16d.c.

#define COM_REG_2   0x02 /* wo 16 */

Definition at line 49 of file ni_atmio16d.c.

#define COMREG1_1632CNT   0x0002

Definition at line 82 of file ni_atmio16d.c.

#define COMREG1_2SCADC   0x0001

Definition at line 81 of file ni_atmio16d.c.

#define COMREG1_CONVINTEN   0x0080

Definition at line 86 of file ni_atmio16d.c.

#define COMREG1_DAQEN   0x0010

Definition at line 84 of file ni_atmio16d.c.

#define COMREG1_DMAEN   0x0020

Definition at line 85 of file ni_atmio16d.c.

#define COMREG1_SCANEN   0x0008

Definition at line 83 of file ni_atmio16d.c.

#define COMREG2_DOUTEN0   0x0100

Definition at line 89 of file ni_atmio16d.c.

#define COMREG2_DOUTEN1   0x0200

Definition at line 90 of file ni_atmio16d.c.

#define COMREG2_INTEN   0x0080

Definition at line 88 of file ni_atmio16d.c.

#define COMREG2_SCN2   0x0010

Definition at line 87 of file ni_atmio16d.c.

#define DAC0_REG   0x10 /* wo 16 */

Definition at line 56 of file ni_atmio16d.c.

#define DAC1_REG   0x12 /* wo 16 */

Definition at line 57 of file ni_atmio16d.c.

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

Definition at line 105 of file ni_atmio16d.c.

#define DIO_24_CNFG_REG   0x03 /* wo 8 */

Definition at line 78 of file ni_atmio16d.c.

#define DIO_24_PORTA_REG   0x00 /* rw 8 */

Definition at line 75 of file ni_atmio16d.c.

#define DIO_24_PORTB_REG   0x01 /* rw 8 */

Definition at line 76 of file ni_atmio16d.c.

#define DIO_24_PORTC_REG   0x02 /* rw 8 */

Definition at line 77 of file ni_atmio16d.c.

#define DMA_TC_INT_CLR_REG   0x16 /* wo 16 */

Definition at line 63 of file ni_atmio16d.c.

#define EXT_STROBE_REG   0x0E /* wo 16 */

Definition at line 54 of file ni_atmio16d.c.

#define INT2CLR_REG   0x14 /* wo 16 */

Definition at line 58 of file ni_atmio16d.c.

#define MIO_16_DIG_IN_REG   0x1C /* ro 16 */

Definition at line 69 of file ni_atmio16d.c.

#define MIO_16_DIG_OUT_REG   0x1C /* wo 16 */

Definition at line 70 of file ni_atmio16d.c.

#define MUX_CNTR_REG   0x04 /* wo 16 */

Definition at line 60 of file ni_atmio16d.c.

#define MUX_GAIN_REG   0x06 /* wo 16 */

Definition at line 61 of file ni_atmio16d.c.

#define RTSI_SW_SHIFT_REG   0x1E /* wo 8 */

Definition at line 72 of file ni_atmio16d.c.

#define RTSI_SW_STROBE_REG   0x1F /* wo 8 */

Definition at line 73 of file ni_atmio16d.c.

#define START_CONVERT_REG   0x08 /* wo 16 */

Definition at line 51 of file ni_atmio16d.c.

#define START_DAQ_REG   0x0A /* wo 16 */

Definition at line 52 of file ni_atmio16d.c.

#define STAT_AD_CONVAVAIL   0x2000

Definition at line 95 of file ni_atmio16d.c.

#define STAT_AD_DAQPROG   0x0800

Definition at line 94 of file ni_atmio16d.c.

#define STAT_AD_DAQSTOPINT   0x4000

Definition at line 96 of file ni_atmio16d.c.

#define STAT_AD_OVERFLOW   0x0200

Definition at line 93 of file ni_atmio16d.c.

#define STAT_AD_OVERRUN   0x0100

Definition at line 92 of file ni_atmio16d.c.

#define STAT_REG   0x00 /* ro 16 */

Definition at line 48 of file ni_atmio16d.c.

Function Documentation

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