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

Go to the source code of this file.

Data Structures

struct  ni_private
 

Macros

#define PCIDMA
 
#define PCIMIO   1
 
#define MAX_N_CALDACS   (16+16+2)
 
#define DRV_NAME   "ni_pcimio"
 
#define devpriv   ((struct ni_private *)dev->private)
 
#define ni_writel(a, b)   (writel((a), devpriv->mite->daq_io_addr + (b)))
 
#define ni_readl(a)   (readl(devpriv->mite->daq_io_addr + (a)))
 
#define ni_writew(a, b)   (writew((a), devpriv->mite->daq_io_addr + (b)))
 
#define ni_readw(a)   (readw(devpriv->mite->daq_io_addr + (a)))
 
#define ni_writeb(a, b)   (writeb((a), devpriv->mite->daq_io_addr + (b)))
 
#define ni_readb(a)   (readb(devpriv->mite->daq_io_addr + (a)))
 
#define interrupt_pin(a)   0
 
#define IRQ_POLARITY   1
 
#define NI_E_IRQ_FLAGS   IRQF_SHARED
 

Functions

 MODULE_DEVICE_TABLE (pci, ni_pcimio_pci_table)
 
 module_comedi_pci_driver (ni_pcimio_driver, ni_pcimio_pci_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

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

Definition at line 1193 of file ni_pcimio.c.

#define DRV_NAME   "ni_pcimio"

Definition at line 130 of file ni_pcimio.c.

#define interrupt_pin (   a)    0

Definition at line 1496 of file ni_pcimio.c.

#define IRQ_POLARITY   1

Definition at line 1497 of file ni_pcimio.c.

#define MAX_N_CALDACS   (16+16+2)

Definition at line 128 of file ni_pcimio.c.

#define NI_E_IRQ_FLAGS   IRQF_SHARED

Definition at line 1499 of file ni_pcimio.c.

#define ni_readb (   a)    (readb(devpriv->mite->daq_io_addr + (a)))

Definition at line 1202 of file ni_pcimio.c.

#define ni_readl (   a)    (readl(devpriv->mite->daq_io_addr + (a)))

Definition at line 1198 of file ni_pcimio.c.

#define ni_readw (   a)    (readw(devpriv->mite->daq_io_addr + (a)))

Definition at line 1200 of file ni_pcimio.c.

#define ni_writeb (   a,
  b 
)    (writeb((a), devpriv->mite->daq_io_addr + (b)))

Definition at line 1201 of file ni_pcimio.c.

#define ni_writel (   a,
  b 
)    (writel((a), devpriv->mite->daq_io_addr + (b)))

Definition at line 1197 of file ni_pcimio.c.

#define ni_writew (   a,
  b 
)    (writew((a), devpriv->mite->daq_io_addr + (b)))

Definition at line 1199 of file ni_pcimio.c.

#define PCIDMA

Definition at line 123 of file ni_pcimio.c.

#define PCIMIO   1

Definition at line 125 of file ni_pcimio.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_pci_driver ( ni_pcimio_driver  ,
ni_pcimio_pci_driver   
)
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_DEVICE_TABLE ( pci  ,
ni_pcimio_pci_table   
)
MODULE_LICENSE ( "GPL"  )