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

Go to the source code of this file.

Data Structures

struct  dt2811_board
 
struct  dt2811_private
 

Macros

#define TIMEOUT   10000
 
#define DT2811_SIZE   8
 
#define DT2811_ADCSR   0
 
#define DT2811_ADGCR   1
 
#define DT2811_ADDATLO   2
 
#define DT2811_ADDATHI   3
 
#define DT2811_DADAT0LO   2
 
#define DT2811_DADAT0HI   3
 
#define DT2811_DADAT1LO   4
 
#define DT2811_DADAT1HI   5
 
#define DT2811_DIO   6
 
#define DT2811_TMRCTR   7
 
#define DT2811_ADDONE   0x80
 
#define DT2811_ADERROR   0x40
 
#define DT2811_ADBUSY   0x20
 
#define DT2811_CLRERROR   0x10
 
#define DT2811_INTENB   0x04
 
#define DT2811_ADMODE   0x03
 
#define devpriv   ((struct dt2811_private *)dev->private)
 
#define DT2811_TIMEOUT   5
 

Enumerations

enum  { card_2811_pgh, card_2811_pgl }
 

Functions

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

Macro Definition Documentation

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

Definition at line 229 of file dt2811.c.

#define DT2811_ADBUSY   0x20

Definition at line 201 of file dt2811.c.

#define DT2811_ADCSR   0

Definition at line 182 of file dt2811.c.

#define DT2811_ADDATHI   3

Definition at line 185 of file dt2811.c.

#define DT2811_ADDATLO   2

Definition at line 184 of file dt2811.c.

#define DT2811_ADDONE   0x80

Definition at line 199 of file dt2811.c.

#define DT2811_ADERROR   0x40

Definition at line 200 of file dt2811.c.

#define DT2811_ADGCR   1

Definition at line 183 of file dt2811.c.

#define DT2811_ADMODE   0x03

Definition at line 204 of file dt2811.c.

#define DT2811_CLRERROR   0x10

Definition at line 202 of file dt2811.c.

#define DT2811_DADAT0HI   3

Definition at line 187 of file dt2811.c.

#define DT2811_DADAT0LO   2

Definition at line 186 of file dt2811.c.

#define DT2811_DADAT1HI   5

Definition at line 189 of file dt2811.c.

#define DT2811_DADAT1LO   4

Definition at line 188 of file dt2811.c.

#define DT2811_DIO   6

Definition at line 190 of file dt2811.c.

#define DT2811_INTENB   0x04

Definition at line 203 of file dt2811.c.

#define DT2811_SIZE   8

Definition at line 180 of file dt2811.c.

#define DT2811_TIMEOUT   5

Definition at line 237 of file dt2811.c.

#define DT2811_TMRCTR   7

Definition at line 191 of file dt2811.c.

#define TIMEOUT   10000

Definition at line 178 of file dt2811.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
card_2811_pgh 
card_2811_pgl 

Definition at line 214 of file dt2811.c.

Function Documentation

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