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

Go to the source code of this file.

Data Structures

struct  counter_mode_register_t
 
union  cmReg
 
struct  s526_private
 

Macros

#define S526_SIZE   64
 
#define S526_START_AI_CONV   0
 
#define S526_AI_READ   0
 
#define S526_IOSIZE   0x40
 
#define S526_NUM_PORTS   27
 
#define REG_TCR   0x00
 
#define REG_WDC   0x02
 
#define REG_DAC   0x04
 
#define REG_ADC   0x06
 
#define REG_ADD   0x08
 
#define REG_DIO   0x0A
 
#define REG_IER   0x0C
 
#define REG_ISR   0x0E
 
#define REG_MSC   0x10
 
#define REG_C0L   0x12
 
#define REG_C0H   0x14
 
#define REG_C0M   0x16
 
#define REG_C0C   0x18
 
#define REG_C1L   0x1A
 
#define REG_C1H   0x1C
 
#define REG_C1M   0x1E
 
#define REG_C1C   0x20
 
#define REG_C2L   0x22
 
#define REG_C2H   0x24
 
#define REG_C2M   0x26
 
#define REG_C2C   0x28
 
#define REG_C3L   0x2A
 
#define REG_C3H   0x2C
 
#define REG_C3M   0x2E
 
#define REG_C3C   0x30
 
#define REG_EED   0x32
 
#define REG_EEC   0x34
 
#define ISR_ADC_DONE   0x4
 
#define TIMEOUT   100
 

Functions

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

Macro Definition Documentation

#define ISR_ADC_DONE   0x4

Definition at line 397 of file s526.c.

#define REG_ADC   0x06

Definition at line 61 of file s526.c.

#define REG_ADD   0x08

Definition at line 62 of file s526.c.

#define REG_C0C   0x18

Definition at line 70 of file s526.c.

#define REG_C0H   0x14

Definition at line 68 of file s526.c.

#define REG_C0L   0x12

Definition at line 67 of file s526.c.

#define REG_C0M   0x16

Definition at line 69 of file s526.c.

#define REG_C1C   0x20

Definition at line 74 of file s526.c.

#define REG_C1H   0x1C

Definition at line 72 of file s526.c.

#define REG_C1L   0x1A

Definition at line 71 of file s526.c.

#define REG_C1M   0x1E

Definition at line 73 of file s526.c.

#define REG_C2C   0x28

Definition at line 78 of file s526.c.

#define REG_C2H   0x24

Definition at line 76 of file s526.c.

#define REG_C2L   0x22

Definition at line 75 of file s526.c.

#define REG_C2M   0x26

Definition at line 77 of file s526.c.

#define REG_C3C   0x30

Definition at line 82 of file s526.c.

#define REG_C3H   0x2C

Definition at line 80 of file s526.c.

#define REG_C3L   0x2A

Definition at line 79 of file s526.c.

#define REG_C3M   0x2E

Definition at line 81 of file s526.c.

#define REG_DAC   0x04

Definition at line 60 of file s526.c.

#define REG_DIO   0x0A

Definition at line 63 of file s526.c.

#define REG_EEC   0x34

Definition at line 84 of file s526.c.

#define REG_EED   0x32

Definition at line 83 of file s526.c.

#define REG_IER   0x0C

Definition at line 64 of file s526.c.

#define REG_ISR   0x0E

Definition at line 65 of file s526.c.

#define REG_MSC   0x10

Definition at line 66 of file s526.c.

#define REG_TCR   0x00

Definition at line 58 of file s526.c.

#define REG_WDC   0x02

Definition at line 59 of file s526.c.

#define S526_AI_READ   0

Definition at line 51 of file s526.c.

#define S526_IOSIZE   0x40

Definition at line 54 of file s526.c.

#define S526_NUM_PORTS   27

Definition at line 55 of file s526.c.

#define S526_SIZE   64

Definition at line 48 of file s526.c.

#define S526_START_AI_CONV   0

Definition at line 50 of file s526.c.

#define TIMEOUT   100

Function Documentation

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