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

Go to the source code of this file.

Data Structures

struct  ni6527_board
 
struct  ni6527_private
 

Macros

#define DEBUG   1
 
#define DEBUG_FLAGS
 
#define DRIVER_NAME   "ni_6527"
 
#define NI6527_DIO_SIZE   4096
 
#define NI6527_MITE_SIZE   4096
 
#define Port_Register(x)   (0x00+(x))
 
#define ID_Register   0x06
 
#define Clear_Register   0x07
 
#define ClrEdge   0x08
 
#define ClrOverflow   0x04
 
#define ClrFilter   0x02
 
#define ClrInterval   0x01
 
#define Filter_Interval(x)   (0x08+(x))
 
#define Filter_Enable(x)   (0x0c+(x))
 
#define Change_Status   0x14
 
#define MasterInterruptStatus   0x04
 
#define Overflow   0x02
 
#define EdgeStatus   0x01
 
#define Master_Interrupt_Control   0x15
 
#define FallingEdgeIntEnable   0x10
 
#define RisingEdgeIntEnable   0x08
 
#define MasterInterruptEnable   0x04
 
#define OverflowIntEnable   0x02
 
#define EdgeIntEnable   0x01
 
#define Rising_Edge_Detection_Enable(x)   (0x018+(x))
 
#define Falling_Edge_Detection_Enable(x)   (0x020+(x))
 
#define this_board   ((const struct ni6527_board *)dev->board_ptr)
 
#define devpriv   ((struct ni6527_private *)dev->private)
 

Functions

 MODULE_DEVICE_TABLE (pci, ni6527_pci_table)
 
 module_comedi_pci_driver (ni6527_driver, ni6527_pci_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define Change_Status   0x14

Definition at line 67 of file ni_6527.c.

#define Clear_Register   0x07

Definition at line 58 of file ni_6527.c.

#define ClrEdge   0x08

Definition at line 59 of file ni_6527.c.

#define ClrFilter   0x02

Definition at line 61 of file ni_6527.c.

#define ClrInterval   0x01

Definition at line 62 of file ni_6527.c.

#define ClrOverflow   0x04

Definition at line 60 of file ni_6527.c.

#define DEBUG   1

Definition at line 41 of file ni_6527.c.

#define DEBUG_FLAGS

Definition at line 42 of file ni_6527.c.

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

Definition at line 115 of file ni_6527.c.

#define DRIVER_NAME   "ni_6527"

Definition at line 50 of file ni_6527.c.

#define EdgeIntEnable   0x01

Definition at line 77 of file ni_6527.c.

#define EdgeStatus   0x01

Definition at line 70 of file ni_6527.c.

#define Falling_Edge_Detection_Enable (   x)    (0x020+(x))

Definition at line 80 of file ni_6527.c.

#define FallingEdgeIntEnable   0x10

Definition at line 73 of file ni_6527.c.

#define Filter_Enable (   x)    (0x0c+(x))

Definition at line 65 of file ni_6527.c.

#define Filter_Interval (   x)    (0x08+(x))

Definition at line 64 of file ni_6527.c.

#define ID_Register   0x06

Definition at line 56 of file ni_6527.c.

#define Master_Interrupt_Control   0x15

Definition at line 72 of file ni_6527.c.

#define MasterInterruptEnable   0x04

Definition at line 75 of file ni_6527.c.

#define MasterInterruptStatus   0x04

Definition at line 68 of file ni_6527.c.

#define NI6527_DIO_SIZE   4096

Definition at line 52 of file ni_6527.c.

#define NI6527_MITE_SIZE   4096

Definition at line 53 of file ni_6527.c.

#define Overflow   0x02

Definition at line 69 of file ni_6527.c.

#define OverflowIntEnable   0x02

Definition at line 76 of file ni_6527.c.

#define Port_Register (   x)    (0x00+(x))

Definition at line 55 of file ni_6527.c.

#define Rising_Edge_Detection_Enable (   x)    (0x018+(x))

Definition at line 79 of file ni_6527.c.

#define RisingEdgeIntEnable   0x08

Definition at line 74 of file ni_6527.c.

#define this_board   ((const struct ni6527_board *)dev->board_ptr)

Definition at line 99 of file ni_6527.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_pci_driver ( ni6527_driver  ,
ni6527_pci_driver   
)
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_DEVICE_TABLE ( pci  ,
ni6527_pci_table   
)
MODULE_LICENSE ( "GPL"  )