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

Go to the source code of this file.

Data Structures

struct  das16m1_board
 
struct  das16m1_private_struct
 

Macros

#define DAS16M1_SIZE   16
 
#define DAS16M1_SIZE2   8
 
#define DAS16M1_XTAL   100 /* 10 MHz master clock */
 
#define FIFO_SIZE   1024 /* 1024 sample fifo */
 
#define DAS16M1_AI   0 /* 16-bit wide register */
 
#define AI_CHAN(x)   ((x) & 0xf)
 
#define DAS16M1_CS   2
 
#define EXT_TRIG_BIT   0x1
 
#define OVRUN   0x20
 
#define IRQDATA   0x80
 
#define DAS16M1_DIO   3
 
#define DAS16M1_CLEAR_INTR   4
 
#define DAS16M1_INTR_CONTROL   5
 
#define EXT_PACER   0x2
 
#define INT_PACER   0x3
 
#define PACER_MASK   0x3
 
#define INTE   0x80
 
#define DAS16M1_QUEUE_ADDR   6
 
#define DAS16M1_QUEUE_DATA   7
 
#define Q_CHAN(x)   ((x) & 0x7)
 
#define Q_RANGE(x)   (((x) & 0xf) << 4)
 
#define UNIPOLAR   0x40
 
#define DAS16M1_8254_FIRST   0x8
 
#define DAS16M1_8254_FIRST_CNTRL   0xb
 
#define TOTAL_CLEAR   0x30
 
#define DAS16M1_8254_SECOND   0xc
 
#define DAS16M1_82C55   0x400
 
#define DAS16M1_8254_THIRD   0x404
 
#define devpriv   ((struct das16m1_private_struct *)(dev->private))
 

Functions

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

Macro Definition Documentation

#define AI_CHAN (   x)    ((x) & 0xf)

Definition at line 97 of file das16m1.c.

#define DAS16M1_8254_FIRST   0x8

Definition at line 114 of file das16m1.c.

#define DAS16M1_8254_FIRST_CNTRL   0xb

Definition at line 115 of file das16m1.c.

#define DAS16M1_8254_SECOND   0xc

Definition at line 117 of file das16m1.c.

#define DAS16M1_8254_THIRD   0x404

Definition at line 119 of file das16m1.c.

#define DAS16M1_82C55   0x400

Definition at line 118 of file das16m1.c.

#define DAS16M1_AI   0 /* 16-bit wide register */

Definition at line 96 of file das16m1.c.

#define DAS16M1_CLEAR_INTR   4

Definition at line 103 of file das16m1.c.

#define DAS16M1_CS   2

Definition at line 98 of file das16m1.c.

#define DAS16M1_DIO   3

Definition at line 102 of file das16m1.c.

#define DAS16M1_INTR_CONTROL   5

Definition at line 104 of file das16m1.c.

#define DAS16M1_QUEUE_ADDR   6

Definition at line 109 of file das16m1.c.

#define DAS16M1_QUEUE_DATA   7

Definition at line 110 of file das16m1.c.

#define DAS16M1_SIZE   16

Definition at line 69 of file das16m1.c.

#define DAS16M1_SIZE2   8

Definition at line 70 of file das16m1.c.

#define DAS16M1_XTAL   100 /* 10 MHz master clock */

Definition at line 72 of file das16m1.c.

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

Definition at line 152 of file das16m1.c.

#define EXT_PACER   0x2

Definition at line 105 of file das16m1.c.

#define EXT_TRIG_BIT   0x1

Definition at line 99 of file das16m1.c.

#define FIFO_SIZE   1024 /* 1024 sample fifo */

Definition at line 74 of file das16m1.c.

#define INT_PACER   0x3

Definition at line 106 of file das16m1.c.

#define INTE   0x80

Definition at line 108 of file das16m1.c.

#define IRQDATA   0x80

Definition at line 101 of file das16m1.c.

#define OVRUN   0x20

Definition at line 100 of file das16m1.c.

#define PACER_MASK   0x3

Definition at line 107 of file das16m1.c.

#define Q_CHAN (   x)    ((x) & 0x7)

Definition at line 111 of file das16m1.c.

#define Q_RANGE (   x)    (((x) & 0xf) << 4)

Definition at line 112 of file das16m1.c.

#define TOTAL_CLEAR   0x30

Definition at line 116 of file das16m1.c.

#define UNIPOLAR   0x40

Definition at line 113 of file das16m1.c.

Function Documentation

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