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

Go to the source code of this file.

Data Structures

struct  pcmda12_board
 
struct  pcmda12_private
 

Macros

#define SDEV_NO   ((int)(s - dev->subdevices))
 
#define CHANS   8
 
#define IOSIZE   16
 
#define LSB(x)   ((unsigned char)((x) & 0xff))
 
#define MSB(x)   ((unsigned char)((((unsigned short)(x))>>8) & 0xff))
 
#define LSB_PORT(chan)   (dev->iobase + (chan)*2)
 
#define MSB_PORT(chan)   (LSB_PORT(chan)+1)
 
#define BITS   12
 
#define devpriv   ((struct pcmda12_private *)(dev->private))
 

Functions

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

Macro Definition Documentation

#define BITS   12

Definition at line 65 of file pcmda12.c.

#define CHANS   8

Definition at line 59 of file pcmda12.c.

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

Definition at line 89 of file pcmda12.c.

#define IOSIZE   16

Definition at line 60 of file pcmda12.c.

#define LSB (   x)    ((unsigned char)((x) & 0xff))

Definition at line 61 of file pcmda12.c.

#define LSB_PORT (   chan)    (dev->iobase + (chan)*2)

Definition at line 63 of file pcmda12.c.

#define MSB (   x)    ((unsigned char)((((unsigned short)(x))>>8) & 0xff))

Definition at line 62 of file pcmda12.c.

#define MSB_PORT (   chan)    (LSB_PORT(chan)+1)

Definition at line 64 of file pcmda12.c.

#define SDEV_NO   ((int)(s - dev->subdevices))

Definition at line 58 of file pcmda12.c.

Function Documentation

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