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

Go to the source code of this file.

Data Structures

struct  ni_private
 

Macros

#define ATMIO   1
 
#define NI_SIZE   0x20
 
#define MAX_N_CALDACS   32
 
#define interrupt_pin(a)   (ni_irqpin[(a)])
 
#define IRQ_POLARITY   0
 
#define NI_E_IRQ_FLAGS   0
 
#define devpriv   ((struct ni_private *)dev->private)
 
#define ni_writel(a, b)   (outl((a), (b)+dev->iobase))
 
#define ni_readl(a)   (inl((a)+dev->iobase))
 
#define ni_writew(a, b)   (outw((a), (b)+dev->iobase))
 
#define ni_readw(a)   (inw((a)+dev->iobase))
 
#define ni_writeb(a, b)   (outb((a), (b)+dev->iobase))
 
#define ni_readb(a)   (inb((a)+dev->iobase))
 

Functions

 MODULE_DEVICE_TABLE (pnp, device_ids)
 
 module_comedi_driver (ni_atmio_driver)
 

Macro Definition Documentation

#define ATMIO   1

Definition at line 107 of file ni_atmio.c.

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

Definition at line 287 of file ni_atmio.c.

#define interrupt_pin (   a)    (ni_irqpin[(a)])

Definition at line 275 of file ni_atmio.c.

#define IRQ_POLARITY   0

Definition at line 277 of file ni_atmio.c.

#define MAX_N_CALDACS   32

Definition at line 116 of file ni_atmio.c.

#define NI_E_IRQ_FLAGS   0

Definition at line 279 of file ni_atmio.c.

#define ni_readb (   a)    (inb((a)+dev->iobase))

Definition at line 296 of file ni_atmio.c.

#define ni_readl (   a)    (inl((a)+dev->iobase))

Definition at line 292 of file ni_atmio.c.

#define ni_readw (   a)    (inw((a)+dev->iobase))

Definition at line 294 of file ni_atmio.c.

#define NI_SIZE   0x20

Definition at line 114 of file ni_atmio.c.

#define ni_writeb (   a,
  b 
)    (outb((a), (b)+dev->iobase))

Definition at line 295 of file ni_atmio.c.

#define ni_writel (   a,
  b 
)    (outl((a), (b)+dev->iobase))

Definition at line 291 of file ni_atmio.c.

#define ni_writew (   a,
  b 
)    (outw((a), (b)+dev->iobase))

Definition at line 293 of file ni_atmio.c.

Function Documentation

module_comedi_driver ( ni_atmio_driver  )
MODULE_DEVICE_TABLE ( pnp  ,
device_ids   
)