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

Go to the source code of this file.

Data Structures

struct  rti800_board
 
struct  rti800_private
 

Macros

#define RTI800_SIZE   16
 
#define RTI800_CSR   0
 
#define RTI800_MUXGAIN   1
 
#define RTI800_CONVERT   2
 
#define RTI800_ADCLO   3
 
#define RTI800_ADCHI   4
 
#define RTI800_DAC0LO   5
 
#define RTI800_DAC0HI   6
 
#define RTI800_DAC1LO   7
 
#define RTI800_DAC1HI   8
 
#define RTI800_CLRFLAGS   9
 
#define RTI800_DI   10
 
#define RTI800_DO   11
 
#define RTI800_9513A_DATA   12
 
#define RTI800_9513A_CNTRL   13
 
#define RTI800_9513A_STATUS   13
 
#define RTI800_BUSY   0x80
 
#define RTI800_DONE   0x40
 
#define RTI800_OVERRUN   0x20
 
#define RTI800_TCR   0x10
 
#define RTI800_DMA_ENAB   0x08
 
#define RTI800_INTR_TC   0x04
 
#define RTI800_INTR_EC   0x02
 
#define RTI800_INTR_OVRN   0x01
 
#define Am9513_8BITBUS
 
#define Am9513_output_control(a)   outb(a, dev->iobase+RTI800_9513A_CNTRL)
 
#define Am9513_output_data(a)   outb(a, dev->iobase+RTI800_9513A_DATA)
 
#define Am9513_input_data()   inb(dev->iobase+RTI800_9513A_DATA)
 
#define Am9513_input_status()   inb(dev->iobase+RTI800_9513A_STATUS)
 
#define devpriv   ((struct rti800_private *)dev->private)
 
#define RTI800_TIMEOUT   100
 

Functions

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

Macro Definition Documentation

#define Am9513_8BITBUS

Definition at line 91 of file rti800.c.

#define Am9513_input_data ( )    inb(dev->iobase+RTI800_9513A_DATA)

Definition at line 95 of file rti800.c.

#define Am9513_input_status ( )    inb(dev->iobase+RTI800_9513A_STATUS)

Definition at line 96 of file rti800.c.

#define Am9513_output_control (   a)    outb(a, dev->iobase+RTI800_9513A_CNTRL)

Definition at line 93 of file rti800.c.

#define Am9513_output_data (   a)    outb(a, dev->iobase+RTI800_9513A_DATA)

Definition at line 94 of file rti800.c.

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

Definition at line 164 of file rti800.c.

#define RTI800_9513A_CNTRL   13

Definition at line 75 of file rti800.c.

#define RTI800_9513A_DATA   12

Definition at line 74 of file rti800.c.

#define RTI800_9513A_STATUS   13

Definition at line 76 of file rti800.c.

#define RTI800_ADCHI   4

Definition at line 66 of file rti800.c.

#define RTI800_ADCLO   3

Definition at line 65 of file rti800.c.

#define RTI800_BUSY   0x80

Definition at line 82 of file rti800.c.

#define RTI800_CLRFLAGS   9

Definition at line 71 of file rti800.c.

#define RTI800_CONVERT   2

Definition at line 64 of file rti800.c.

#define RTI800_CSR   0

Definition at line 62 of file rti800.c.

#define RTI800_DAC0HI   6

Definition at line 68 of file rti800.c.

#define RTI800_DAC0LO   5

Definition at line 67 of file rti800.c.

#define RTI800_DAC1HI   8

Definition at line 70 of file rti800.c.

#define RTI800_DAC1LO   7

Definition at line 69 of file rti800.c.

#define RTI800_DI   10

Definition at line 72 of file rti800.c.

#define RTI800_DMA_ENAB   0x08

Definition at line 86 of file rti800.c.

#define RTI800_DO   11

Definition at line 73 of file rti800.c.

#define RTI800_DONE   0x40

Definition at line 83 of file rti800.c.

#define RTI800_INTR_EC   0x02

Definition at line 88 of file rti800.c.

#define RTI800_INTR_OVRN   0x01

Definition at line 89 of file rti800.c.

#define RTI800_INTR_TC   0x04

Definition at line 87 of file rti800.c.

#define RTI800_MUXGAIN   1

Definition at line 63 of file rti800.c.

#define RTI800_OVERRUN   0x20

Definition at line 84 of file rti800.c.

#define RTI800_SIZE   16

Definition at line 60 of file rti800.c.

#define RTI800_TCR   0x10

Definition at line 85 of file rti800.c.

#define RTI800_TIMEOUT   100

Definition at line 166 of file rti800.c.

Function Documentation

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