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

Go to the source code of this file.

Data Structures

struct  dt2801_board
 
struct  dt2801_private
 

Macros

#define DT2801_TIMEOUT   1000
 
#define DT2801_MAX_DMA_SIZE   (64 * 1024)
 
#define DT2801_IOSIZE   2
 
#define DT_C_RESET   0x0
 
#define DT_C_CLEAR_ERR   0x1
 
#define DT_C_READ_ERRREG   0x2
 
#define DT_C_SET_CLOCK   0x3
 
#define DT_C_TEST   0xb
 
#define DT_C_STOP   0xf
 
#define DT_C_SET_DIGIN   0x4
 
#define DT_C_SET_DIGOUT   0x5
 
#define DT_C_READ_DIG   0x6
 
#define DT_C_WRITE_DIG   0x7
 
#define DT_C_WRITE_DAIM   0x8
 
#define DT_C_SET_DA   0x9
 
#define DT_C_WRITE_DA   0xa
 
#define DT_C_READ_ADIM   0xc
 
#define DT_C_SET_AD   0xd
 
#define DT_C_READ_AD   0xe
 
#define DT_MOD_DMA   (1<<4)
 
#define DT_MOD_CONT   (1<<5)
 
#define DT_MOD_EXTCLK   (1<<6)
 
#define DT_MOD_EXTTRIG   (1<<7)
 
#define DT_S_DATA_OUT_READY   (1<<0)
 
#define DT_S_DATA_IN_FULL   (1<<1)
 
#define DT_S_READY   (1<<2)
 
#define DT_S_COMMAND   (1<<3)
 
#define DT_S_COMPOSITE_ERROR   (1<<7)
 
#define DT2801_DATA   0
 
#define DT2801_STATUS   1
 
#define DT2801_CMD   1
 
#define boardtype   (*(const struct dt2801_board *)dev->board_ptr)
 
#define devpriv   ((struct dt2801_private *)dev->private)
 

Functions

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

Macro Definition Documentation

#define boardtype   (*(const struct dt2801_board *)dev->board_ptr)

Definition at line 228 of file dt2801.c.

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

Definition at line 236 of file dt2801.c.

#define DT2801_CMD   1

Definition at line 89 of file dt2801.c.

#define DT2801_DATA   0

Definition at line 87 of file dt2801.c.

#define DT2801_IOSIZE   2

Definition at line 44 of file dt2801.c.

#define DT2801_MAX_DMA_SIZE   (64 * 1024)

Definition at line 41 of file dt2801.c.

#define DT2801_STATUS   1

Definition at line 88 of file dt2801.c.

#define DT2801_TIMEOUT   1000

Definition at line 36 of file dt2801.c.

#define DT_C_CLEAR_ERR   0x1

Definition at line 51 of file dt2801.c.

#define DT_C_READ_AD   0xe

Definition at line 69 of file dt2801.c.

#define DT_C_READ_ADIM   0xc

Definition at line 67 of file dt2801.c.

#define DT_C_READ_DIG   0x6

Definition at line 60 of file dt2801.c.

#define DT_C_READ_ERRREG   0x2

Definition at line 52 of file dt2801.c.

#define DT_C_RESET   0x0

Definition at line 50 of file dt2801.c.

#define DT_C_SET_AD   0xd

Definition at line 68 of file dt2801.c.

#define DT_C_SET_CLOCK   0x3

Definition at line 53 of file dt2801.c.

#define DT_C_SET_DA   0x9

Definition at line 64 of file dt2801.c.

#define DT_C_SET_DIGIN   0x4

Definition at line 58 of file dt2801.c.

#define DT_C_SET_DIGOUT   0x5

Definition at line 59 of file dt2801.c.

#define DT_C_STOP   0xf

Definition at line 56 of file dt2801.c.

#define DT_C_TEST   0xb

Definition at line 55 of file dt2801.c.

#define DT_C_WRITE_DA   0xa

Definition at line 65 of file dt2801.c.

#define DT_C_WRITE_DAIM   0x8

Definition at line 63 of file dt2801.c.

#define DT_C_WRITE_DIG   0x7

Definition at line 61 of file dt2801.c.

#define DT_MOD_CONT   (1<<5)

Definition at line 75 of file dt2801.c.

#define DT_MOD_DMA   (1<<4)

Definition at line 74 of file dt2801.c.

#define DT_MOD_EXTCLK   (1<<6)

Definition at line 76 of file dt2801.c.

#define DT_MOD_EXTTRIG   (1<<7)

Definition at line 77 of file dt2801.c.

#define DT_S_COMMAND   (1<<3)

Definition at line 83 of file dt2801.c.

#define DT_S_COMPOSITE_ERROR   (1<<7)

Definition at line 84 of file dt2801.c.

#define DT_S_DATA_IN_FULL   (1<<1)

Definition at line 81 of file dt2801.c.

#define DT_S_DATA_OUT_READY   (1<<0)

Definition at line 80 of file dt2801.c.

#define DT_S_READY   (1<<2)

Definition at line 82 of file dt2801.c.

Function Documentation

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