Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cb_pcidda.c File Reference
#include "../comedidev.h"
#include "comedi_fc.h"
#include "8255.h"

Go to the source code of this file.

Data Structures

struct  cb_pcidda_board
 
struct  cb_pcidda_private
 

Macros

#define PCI_VENDOR_ID_CB   0x1307
 
#define EEPROM_SIZE   128 /* number of entries in eeprom */
 
#define MAX_AO_CHANNELS   8
 
#define PORT1A   0 /* PORT 1A DATA */
 
#define PORT1B   1 /* PORT 1B DATA */
 
#define PORT1C   2 /* PORT 1C DATA */
 
#define CONTROL1   3 /* CONTROL REGISTER 1 */
 
#define PORT2A   4 /* PORT 2A DATA */
 
#define PORT2B   5 /* PORT 2B DATA */
 
#define PORT2C   6 /* PORT 2C DATA */
 
#define CONTROL2   7 /* CONTROL REGISTER 2 */
 
#define DACONTROL   0 /* D/A CONTROL REGISTER */
 
#define SU   0000001 /* Simultaneous update enabled */
 
#define NOSU   0000000 /* Simultaneous update disabled */
 
#define ENABLEDAC   0000002 /* Enable specified DAC */
 
#define DISABLEDAC   0000000 /* Disable specified DAC */
 
#define RANGE2V5   0000000 /* 2.5V */
 
#define RANGE5V   0000200 /* 5V */
 
#define RANGE10V   0000300 /* 10V */
 
#define UNIP   0000400 /* Unipolar outputs */
 
#define BIP   0000000 /* Bipolar outputs */
 
#define DACALIBRATION1   4 /* D/A CALIBRATION REGISTER 1 */
 
#define SERIAL_IN_BIT   0x1
 
#define CAL_CHANNEL_MASK   (0x7 << 1)
 
#define CAL_CHANNEL_BITS(channel)   (((channel) << 1) & CAL_CHANNEL_MASK)
 
#define CAL_COUNTER_MASK   0x1f
 
#define CAL_COUNTER_OVERFLOW_BIT   0x20
 
#define AO_BELOW_REF_BIT   0x40
 
#define SERIAL_OUT_BIT   0x80 /* serial data out, for reading from eeprom */
 
#define DACALIBRATION2   6 /* D/A CALIBRATION REGISTER 2 */
 
#define SELECT_EEPROM_BIT   0x1 /* send serial data in to eeprom */
 
#define DESELECT_REF_DAC_BIT   0x2
 
#define DESELECT_CALDAC_BIT(n)   (0x4 << (n))
 
#define DUMMY_BIT   0x40
 
#define DADATA   8 /* FIRST D/A DATA REGISTER (0) */
 

Functions

 MODULE_DEVICE_TABLE (pci, cb_pcidda_pci_table)
 
 module_comedi_pci_driver (cb_pcidda_driver, cb_pcidda_pci_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AO_BELOW_REF_BIT   0x40

Definition at line 100 of file cb_pcidda.c.

#define BIP   0000000 /* Bipolar outputs */

Definition at line 87 of file cb_pcidda.c.

#define CAL_CHANNEL_BITS (   channel)    (((channel) << 1) & CAL_CHANNEL_MASK)

Definition at line 94 of file cb_pcidda.c.

#define CAL_CHANNEL_MASK   (0x7 << 1)

Definition at line 93 of file cb_pcidda.c.

#define CAL_COUNTER_MASK   0x1f

Definition at line 96 of file cb_pcidda.c.

#define CAL_COUNTER_OVERFLOW_BIT   0x20

Definition at line 98 of file cb_pcidda.c.

#define CONTROL1   3 /* CONTROL REGISTER 1 */

Definition at line 67 of file cb_pcidda.c.

#define CONTROL2   7 /* CONTROL REGISTER 2 */

Definition at line 75 of file cb_pcidda.c.

#define DACALIBRATION1   4 /* D/A CALIBRATION REGISTER 1 */

Definition at line 89 of file cb_pcidda.c.

#define DACALIBRATION2   6 /* D/A CALIBRATION REGISTER 2 */

Definition at line 103 of file cb_pcidda.c.

#define DACONTROL   0 /* D/A CONTROL REGISTER */

Definition at line 78 of file cb_pcidda.c.

#define DADATA   8 /* FIRST D/A DATA REGISTER (0) */

Definition at line 112 of file cb_pcidda.c.

#define DESELECT_CALDAC_BIT (   n)    (0x4 << (n))

Definition at line 108 of file cb_pcidda.c.

#define DESELECT_REF_DAC_BIT   0x2

Definition at line 106 of file cb_pcidda.c.

#define DISABLEDAC   0000000 /* Disable specified DAC */

Definition at line 82 of file cb_pcidda.c.

#define DUMMY_BIT   0x40

Definition at line 110 of file cb_pcidda.c.

#define EEPROM_SIZE   128 /* number of entries in eeprom */

Definition at line 56 of file cb_pcidda.c.

#define ENABLEDAC   0000002 /* Enable specified DAC */

Definition at line 81 of file cb_pcidda.c.

#define MAX_AO_CHANNELS   8

Definition at line 58 of file cb_pcidda.c.

#define NOSU   0000000 /* Simultaneous update disabled */

Definition at line 80 of file cb_pcidda.c.

#define PCI_VENDOR_ID_CB   0x1307

Definition at line 55 of file cb_pcidda.c.

#define PORT1A   0 /* PORT 1A DATA */

Definition at line 61 of file cb_pcidda.c.

#define PORT1B   1 /* PORT 1B DATA */

Definition at line 63 of file cb_pcidda.c.

#define PORT1C   2 /* PORT 1C DATA */

Definition at line 65 of file cb_pcidda.c.

#define PORT2A   4 /* PORT 2A DATA */

Definition at line 69 of file cb_pcidda.c.

#define PORT2B   5 /* PORT 2B DATA */

Definition at line 71 of file cb_pcidda.c.

#define PORT2C   6 /* PORT 2C DATA */

Definition at line 73 of file cb_pcidda.c.

#define RANGE10V   0000300 /* 10V */

Definition at line 85 of file cb_pcidda.c.

#define RANGE2V5   0000000 /* 2.5V */

Definition at line 83 of file cb_pcidda.c.

#define RANGE5V   0000200 /* 5V */

Definition at line 84 of file cb_pcidda.c.

#define SELECT_EEPROM_BIT   0x1 /* send serial data in to eeprom */

Definition at line 104 of file cb_pcidda.c.

#define SERIAL_IN_BIT   0x1

Definition at line 92 of file cb_pcidda.c.

#define SERIAL_OUT_BIT   0x80 /* serial data out, for reading from eeprom */

Definition at line 101 of file cb_pcidda.c.

#define SU   0000001 /* Simultaneous update enabled */

Definition at line 79 of file cb_pcidda.c.

#define UNIP   0000400 /* Unipolar outputs */

Definition at line 86 of file cb_pcidda.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_pci_driver ( cb_pcidda_driver  ,
cb_pcidda_pci_driver   
)
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_DEVICE_TABLE ( pci  ,
cb_pcidda_pci_table   
)
MODULE_LICENSE ( "GPL"  )