Linux Kernel
3.7.1
|
#include "../comedidev.h"
#include <linux/delay.h>
#include "8255.h"
#include "8253.h"
#include "das08.h"
Go to the source code of this file.
Macros | |
#define | DRV_NAME "das08" |
#define | DO_ISA IS_ENABLED(CONFIG_COMEDI_DAS08_ISA) |
#define | DO_PCI IS_ENABLED(CONFIG_COMEDI_DAS08_PCI) |
#define | DO_COMEDI_DRIVER_REGISTER (DO_ISA || DO_PCI) |
#define | PCI_VENDOR_ID_COMPUTERBOARDS 0x1307 |
#define | PCI_DEVICE_ID_PCIDAS08 0x29 |
#define | PCIDAS08_SIZE 0x54 |
#define | INTCSR 0x4c |
#define | INTR1_ENABLE 0x1 |
#define | INTR1_HIGH_POLARITY 0x2 |
#define | PCI_INTR_ENABLE 0x40 |
#define | INTR1_EDGE_TRIG 0x100 /* requires high polarity */ |
#define | CNTRL 0x50 |
#define | CNTRL_DIR 0x2 |
#define | CNTRL_INTR 0x4 |
#define | DAS08_LSB 0 |
#define | DAS08_MSB 1 |
#define | DAS08_TRIG_12BIT 1 |
#define | DAS08_STATUS 2 |
#define | DAS08_EOC (1<<7) |
#define | DAS08_IRQ (1<<3) |
#define | DAS08_IP(x) (((x)>>4)&0x7) |
#define | DAS08_CONTROL 2 |
#define | DAS08_MUX_MASK 0x7 |
#define | DAS08_MUX(x) ((x) & DAS08_MUX_MASK) |
#define | DAS08_INTE (1<<3) |
#define | DAS08_DO_MASK 0xf0 |
#define | DAS08_OP(x) (((x) << 4) & DAS08_DO_MASK) |
#define | DAS08JR_DIO 3 |
#define | DAS08JR_AO_LSB(x) ((x) ? 6 : 4) |
#define | DAS08JR_AO_MSB(x) ((x) ? 7 : 5) |
#define | DAS08AO_GAIN_CONTROL 3 |
#define | DAS08AO_GAIN_STATUS 3 |
#define | DAS08AO_AO_LSB(x) ((x) ? 0xa : 8) |
#define | DAS08AO_AO_MSB(x) ((x) ? 0xb : 9) |
#define | DAS08AO_AO_UPDATE 8 |
#define | TIMEOUT 100000 |
Functions | |
int | das08_common_attach (struct comedi_device *dev, unsigned long iobase) |
EXPORT_SYMBOL_GPL (das08_common_attach) | |
void | das08_common_detach (struct comedi_device *dev) |
EXPORT_SYMBOL_GPL (das08_common_detach) | |
module_init (das08_init) | |
module_exit (das08_exit) | |
MODULE_AUTHOR ("Comedi http://www.comedi.org") | |
MODULE_DESCRIPTION ("Comedi low-level driver") | |
MODULE_LICENSE ("GPL") | |
#define DAS08_MUX | ( | x | ) | ((x) & DAS08_MUX_MASK) |
#define DAS08_OP | ( | x | ) | (((x) << 4) & DAS08_DO_MASK) |
#define DO_ISA IS_ENABLED(CONFIG_COMEDI_DAS08_ISA) |
#define DO_PCI IS_ENABLED(CONFIG_COMEDI_DAS08_PCI) |
int das08_common_attach | ( | struct comedi_device * | dev, |
unsigned long | iobase | ||
) |
void das08_common_detach | ( | struct comedi_device * | dev | ) |
EXPORT_SYMBOL_GPL | ( | das08_common_attach | ) |
EXPORT_SYMBOL_GPL | ( | das08_common_detach | ) |
MODULE_AUTHOR | ( | "Comedi http://www.comedi.org" | ) |
module_exit | ( | das08_exit | ) |
module_init | ( | das08_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |