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

Go to the source code of this file.

Data Structures

struct  das800_board
 
struct  das800_private
 

Macros

#define DAS800_SIZE   8
 
#define TIMER_BASE   1000
 
#define N_CHAN_AI   8 /* number of analog input channels */
 
#define DAS800_LSB   0
 
#define FIFO_EMPTY   0x1
 
#define FIFO_OVF   0x2
 
#define DAS800_MSB   1
 
#define DAS800_CONTROL1   2
 
#define CONTROL1_INTE   0x8
 
#define DAS800_CONV_CONTROL   2
 
#define ITE   0x1
 
#define CASC   0x2
 
#define DTEN   0x4
 
#define IEOC   0x8
 
#define EACS   0x10
 
#define CONV_HCEN   0x80
 
#define DAS800_SCAN_LIMITS   2
 
#define DAS800_STATUS   2
 
#define IRQ   0x8
 
#define BUSY   0x80
 
#define DAS800_GAIN   3
 
#define CIO_FFOV   0x8 /* fifo overflow for cio-das802/16 */
 
#define CIO_ENHF   0x90 /* interrupt fifo half full for cio-das802/16 */
 
#define CONTROL1   0x80
 
#define CONV_CONTROL   0xa0
 
#define SCAN_LIMITS   0xc0
 
#define ID   0xe0
 
#define DAS800_8254   4
 
#define DAS800_STATUS2   7
 
#define STATUS2_HCEN   0x80
 
#define STATUS2_INTE   0X20
 
#define DAS800_ID   7
 
#define thisboard   ((const struct das800_board *)dev->board_ptr)
 
#define devpriv   ((struct das800_private *)dev->private)
 

Enumerations

enum  {
  das800, ciodas800, das801, ciodas801,
  das802, ciodas802, ciodas80216
}
 

Functions

 module_init (driver_das800_init_module)
 
 module_exit (driver_das800_cleanup_module)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BUSY   0x80

Definition at line 96 of file das800.c.

#define CASC   0x2

Definition at line 88 of file das800.c.

#define CIO_ENHF   0x90 /* interrupt fifo half full for cio-das802/16 */

Definition at line 99 of file das800.c.

#define CIO_FFOV   0x8 /* fifo overflow for cio-das802/16 */

Definition at line 98 of file das800.c.

#define CONTROL1   0x80

Definition at line 100 of file das800.c.

#define CONTROL1_INTE   0x8

Definition at line 85 of file das800.c.

#define CONV_CONTROL   0xa0

Definition at line 101 of file das800.c.

#define CONV_HCEN   0x80

Definition at line 92 of file das800.c.

#define DAS800_8254   4

Definition at line 104 of file das800.c.

#define DAS800_CONTROL1   2

Definition at line 84 of file das800.c.

#define DAS800_CONV_CONTROL   2

Definition at line 86 of file das800.c.

#define DAS800_GAIN   3

Definition at line 97 of file das800.c.

#define DAS800_ID   7

Definition at line 108 of file das800.c.

#define DAS800_LSB   0

Definition at line 80 of file das800.c.

#define DAS800_MSB   1

Definition at line 83 of file das800.c.

#define DAS800_SCAN_LIMITS   2

Definition at line 93 of file das800.c.

#define DAS800_SIZE   8

Definition at line 74 of file das800.c.

#define DAS800_STATUS   2

Definition at line 94 of file das800.c.

#define DAS800_STATUS2   7

Definition at line 105 of file das800.c.

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

Definition at line 244 of file das800.c.

#define DTEN   0x4

Definition at line 89 of file das800.c.

#define EACS   0x10

Definition at line 91 of file das800.c.

#define FIFO_EMPTY   0x1

Definition at line 81 of file das800.c.

#define FIFO_OVF   0x2

Definition at line 82 of file das800.c.

#define ID   0xe0

Definition at line 103 of file das800.c.

#define IEOC   0x8

Definition at line 90 of file das800.c.

#define IRQ   0x8

Definition at line 95 of file das800.c.

#define ITE   0x1

Definition at line 87 of file das800.c.

#define N_CHAN_AI   8 /* number of analog input channels */

Definition at line 76 of file das800.c.

#define SCAN_LIMITS   0xc0

Definition at line 102 of file das800.c.

#define STATUS2_HCEN   0x80

Definition at line 106 of file das800.c.

#define STATUS2_INTE   0X20

Definition at line 107 of file das800.c.

#define thisboard   ((const struct das800_board *)dev->board_ptr)

Definition at line 234 of file das800.c.

#define TIMER_BASE   1000

Definition at line 75 of file das800.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
das800 
ciodas800 
das801 
ciodas801 
das802 
ciodas802 
ciodas80216 

Definition at line 184 of file das800.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
MODULE_DESCRIPTION ( "Comedi low-level driver )
module_exit ( driver_das800_cleanup_module  )
module_init ( driver_das800_init_module  )
MODULE_LICENSE ( "GPL"  )