Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
me4000.c File Reference
#include <linux/interrupt.h>
#include "../comedidev.h"
#include <linux/delay.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include "comedi_fc.h"
#include "8253.h"

Go to the source code of this file.

Data Structures

struct  me4000_info
 
struct  me4000_board
 

Macros

#define PCI_VENDOR_ID_MEILHAUS   0x1402
 
#define PCI_DEVICE_ID_MEILHAUS_ME4650   0x4650
 
#define PCI_DEVICE_ID_MEILHAUS_ME4660   0x4660
 
#define PCI_DEVICE_ID_MEILHAUS_ME4660I   0x4661
 
#define PCI_DEVICE_ID_MEILHAUS_ME4660S   0x4662
 
#define PCI_DEVICE_ID_MEILHAUS_ME4660IS   0x4663
 
#define PCI_DEVICE_ID_MEILHAUS_ME4670   0x4670
 
#define PCI_DEVICE_ID_MEILHAUS_ME4670I   0x4671
 
#define PCI_DEVICE_ID_MEILHAUS_ME4670S   0x4672
 
#define PCI_DEVICE_ID_MEILHAUS_ME4670IS   0x4673
 
#define PCI_DEVICE_ID_MEILHAUS_ME4680   0x4680
 
#define PCI_DEVICE_ID_MEILHAUS_ME4680I   0x4681
 
#define PCI_DEVICE_ID_MEILHAUS_ME4680S   0x4682
 
#define PCI_DEVICE_ID_MEILHAUS_ME4680IS   0x4683
 
#define ME4000_AO_CHAN(x)   ((x) * 0x18)
 
#define ME4000_AO_CTRL_REG(x)   (0x00 + ME4000_AO_CHAN(x))
 
#define ME4000_AO_CTRL_BIT_MODE_0   (1 << 0)
 
#define ME4000_AO_CTRL_BIT_MODE_1   (1 << 1)
 
#define ME4000_AO_CTRL_MASK_MODE   (3 << 0)
 
#define ME4000_AO_CTRL_BIT_STOP   (1 << 2)
 
#define ME4000_AO_CTRL_BIT_ENABLE_FIFO   (1 << 3)
 
#define ME4000_AO_CTRL_BIT_ENABLE_EX_TRIG   (1 << 4)
 
#define ME4000_AO_CTRL_BIT_EX_TRIG_EDGE   (1 << 5)
 
#define ME4000_AO_CTRL_BIT_IMMEDIATE_STOP   (1 << 7)
 
#define ME4000_AO_CTRL_BIT_ENABLE_DO   (1 << 8)
 
#define ME4000_AO_CTRL_BIT_ENABLE_IRQ   (1 << 9)
 
#define ME4000_AO_CTRL_BIT_RESET_IRQ   (1 << 10)
 
#define ME4000_AO_STATUS_REG(x)   (0x04 + ME4000_AO_CHAN(x))
 
#define ME4000_AO_STATUS_BIT_FSM   (1 << 0)
 
#define ME4000_AO_STATUS_BIT_FF   (1 << 1)
 
#define ME4000_AO_STATUS_BIT_HF   (1 << 2)
 
#define ME4000_AO_STATUS_BIT_EF   (1 << 3)
 
#define ME4000_AO_FIFO_REG(x)   (0x08 + ME4000_AO_CHAN(x))
 
#define ME4000_AO_SINGLE_REG(x)   (0x0c + ME4000_AO_CHAN(x))
 
#define ME4000_AO_TIMER_REG(x)   (0x10 + ME4000_AO_CHAN(x))
 
#define ME4000_AI_CTRL_REG   0x74
 
#define ME4000_AI_STATUS_REG   0x74
 
#define ME4000_AI_CTRL_BIT_MODE_0   (1 << 0)
 
#define ME4000_AI_CTRL_BIT_MODE_1   (1 << 1)
 
#define ME4000_AI_CTRL_BIT_MODE_2   (1 << 2)
 
#define ME4000_AI_CTRL_BIT_SAMPLE_HOLD   (1 << 3)
 
#define ME4000_AI_CTRL_BIT_IMMEDIATE_STOP   (1 << 4)
 
#define ME4000_AI_CTRL_BIT_STOP   (1 << 5)
 
#define ME4000_AI_CTRL_BIT_CHANNEL_FIFO   (1 << 6)
 
#define ME4000_AI_CTRL_BIT_DATA_FIFO   (1 << 7)
 
#define ME4000_AI_CTRL_BIT_FULLSCALE   (1 << 8)
 
#define ME4000_AI_CTRL_BIT_OFFSET   (1 << 9)
 
#define ME4000_AI_CTRL_BIT_EX_TRIG_ANALOG   (1 << 10)
 
#define ME4000_AI_CTRL_BIT_EX_TRIG   (1 << 11)
 
#define ME4000_AI_CTRL_BIT_EX_TRIG_FALLING   (1 << 12)
 
#define ME4000_AI_CTRL_BIT_EX_IRQ   (1 << 13)
 
#define ME4000_AI_CTRL_BIT_EX_IRQ_RESET   (1 << 14)
 
#define ME4000_AI_CTRL_BIT_LE_IRQ   (1 << 15)
 
#define ME4000_AI_CTRL_BIT_LE_IRQ_RESET   (1 << 16)
 
#define ME4000_AI_CTRL_BIT_HF_IRQ   (1 << 17)
 
#define ME4000_AI_CTRL_BIT_HF_IRQ_RESET   (1 << 18)
 
#define ME4000_AI_CTRL_BIT_SC_IRQ   (1 << 19)
 
#define ME4000_AI_CTRL_BIT_SC_IRQ_RESET   (1 << 20)
 
#define ME4000_AI_CTRL_BIT_SC_RELOAD   (1 << 21)
 
#define ME4000_AI_STATUS_BIT_EF_CHANNEL   (1 << 22)
 
#define ME4000_AI_STATUS_BIT_HF_CHANNEL   (1 << 23)
 
#define ME4000_AI_STATUS_BIT_FF_CHANNEL   (1 << 24)
 
#define ME4000_AI_STATUS_BIT_EF_DATA   (1 << 25)
 
#define ME4000_AI_STATUS_BIT_HF_DATA   (1 << 26)
 
#define ME4000_AI_STATUS_BIT_FF_DATA   (1 << 27)
 
#define ME4000_AI_STATUS_BIT_LE   (1 << 28)
 
#define ME4000_AI_STATUS_BIT_FSM   (1 << 29)
 
#define ME4000_AI_CTRL_BIT_EX_TRIG_BOTH   (1 << 31)
 
#define ME4000_AI_CHANNEL_LIST_REG   0x78
 
#define ME4000_AI_LIST_INPUT_SINGLE_ENDED   (0 << 5)
 
#define ME4000_AI_LIST_INPUT_DIFFERENTIAL   (1 << 5)
 
#define ME4000_AI_LIST_RANGE_BIPOLAR_10   (0 << 6)
 
#define ME4000_AI_LIST_RANGE_BIPOLAR_2_5   (1 << 6)
 
#define ME4000_AI_LIST_RANGE_UNIPOLAR_10   (2 << 6)
 
#define ME4000_AI_LIST_RANGE_UNIPOLAR_2_5   (3 << 6)
 
#define ME4000_AI_LIST_LAST_ENTRY   (1 << 8)
 
#define ME4000_AI_DATA_REG   0x7c
 
#define ME4000_AI_CHAN_TIMER_REG   0x80
 
#define ME4000_AI_CHAN_PRE_TIMER_REG   0x84
 
#define ME4000_AI_SCAN_TIMER_LOW_REG   0x88
 
#define ME4000_AI_SCAN_TIMER_HIGH_REG   0x8c
 
#define ME4000_AI_SCAN_PRE_TIMER_LOW_REG   0x90
 
#define ME4000_AI_SCAN_PRE_TIMER_HIGH_REG   0x94
 
#define ME4000_AI_START_REG   0x98
 
#define ME4000_IRQ_STATUS_REG   0x9c
 
#define ME4000_IRQ_STATUS_BIT_EX   (1 << 0)
 
#define ME4000_IRQ_STATUS_BIT_LE   (1 << 1)
 
#define ME4000_IRQ_STATUS_BIT_AI_HF   (1 << 2)
 
#define ME4000_IRQ_STATUS_BIT_AO_0_HF   (1 << 3)
 
#define ME4000_IRQ_STATUS_BIT_AO_1_HF   (1 << 4)
 
#define ME4000_IRQ_STATUS_BIT_AO_2_HF   (1 << 5)
 
#define ME4000_IRQ_STATUS_BIT_AO_3_HF   (1 << 6)
 
#define ME4000_IRQ_STATUS_BIT_SC   (1 << 7)
 
#define ME4000_DIO_PORT_0_REG   0xa0
 
#define ME4000_DIO_PORT_1_REG   0xa4
 
#define ME4000_DIO_PORT_2_REG   0xa8
 
#define ME4000_DIO_PORT_3_REG   0xac
 
#define ME4000_DIO_DIR_REG   0xb0
 
#define ME4000_AO_LOADSETREG_XX   0xb4
 
#define ME4000_DIO_CTRL_REG   0xb8
 
#define ME4000_DIO_CTRL_BIT_MODE_0   (1 << 0)
 
#define ME4000_DIO_CTRL_BIT_MODE_1   (1 << 1)
 
#define ME4000_DIO_CTRL_BIT_MODE_2   (1 << 2)
 
#define ME4000_DIO_CTRL_BIT_MODE_3   (1 << 3)
 
#define ME4000_DIO_CTRL_BIT_MODE_4   (1 << 4)
 
#define ME4000_DIO_CTRL_BIT_MODE_5   (1 << 5)
 
#define ME4000_DIO_CTRL_BIT_MODE_6   (1 << 6)
 
#define ME4000_DIO_CTRL_BIT_MODE_7   (1 << 7)
 
#define ME4000_DIO_CTRL_BIT_FUNCTION_0   (1 << 8)
 
#define ME4000_DIO_CTRL_BIT_FUNCTION_1   (1 << 9)
 
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_0   (1 << 10)
 
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_1   (1 << 11)
 
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_2   (1 << 12)
 
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_3   (1 << 13)
 
#define ME4000_AO_DEMUX_ADJUST_REG   0xbc
 
#define ME4000_AO_DEMUX_ADJUST_VALUE   0x4c
 
#define ME4000_AI_SAMPLE_COUNTER_REG   0xc0
 
#define PLX_INTCSR   0x4c
 
#define PLX_INTCSR_LOCAL_INT1_EN   (1 << 0)
 
#define PLX_INTCSR_LOCAL_INT1_POL   (1 << 1)
 
#define PLX_INTCSR_LOCAL_INT1_STATE   (1 << 2)
 
#define PLX_INTCSR_LOCAL_INT2_EN   (1 << 3)
 
#define PLX_INTCSR_LOCAL_INT2_POL   (1 << 4)
 
#define PLX_INTCSR_LOCAL_INT2_STATE   (1 << 5)
 
#define PLX_INTCSR_PCI_INT_EN   (1 << 6)
 
#define PLX_INTCSR_SOFT_INT   (1 << 7)
 
#define PLX_ICR   0x50
 
#define PLX_ICR_BIT_EEPROM_CLOCK_SET   (1 << 24)
 
#define PLX_ICR_BIT_EEPROM_CHIP_SELECT   (1 << 25)
 
#define PLX_ICR_BIT_EEPROM_WRITE   (1 << 26)
 
#define PLX_ICR_BIT_EEPROM_READ   (1 << 27)
 
#define PLX_ICR_BIT_EEPROM_VALID   (1 << 28)
 
#define PLX_ICR_MASK_EEPROM   (0x1f << 24)
 
#define EEPROM_DELAY   1
 
#define ME4000_AI_FIFO_COUNT   2048
 
#define ME4000_AI_MIN_TICKS   66
 
#define ME4000_AI_MIN_SAMPLE_TIME   2000
 
#define ME4000_AI_BASE_FREQUENCY   (unsigned int) 33E6
 
#define ME4000_AI_CHANNEL_LIST_COUNT   1024
 
#define FIRMWARE_NOT_AVAILABLE   1
 

Functions

 MODULE_DEVICE_TABLE (pci, me4000_pci_table)
 
 module_comedi_pci_driver (me4000_driver, me4000_pci_driver)
 
 MODULE_AUTHOR ("Comedi http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi low-level driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

unsigned charxilinx_firm
 

Macro Definition Documentation

#define EEPROM_DELAY   1

Definition at line 207 of file me4000.c.

#define FIRMWARE_NOT_AVAILABLE   1

Definition at line 366 of file me4000.c.

#define ME4000_AI_BASE_FREQUENCY   (unsigned int) 33E6

Definition at line 213 of file me4000.c.

#define ME4000_AI_CHAN_PRE_TIMER_REG   0x84

Definition at line 147 of file me4000.c.

#define ME4000_AI_CHAN_TIMER_REG   0x80

Definition at line 146 of file me4000.c.

#define ME4000_AI_CHANNEL_LIST_COUNT   1024

Definition at line 215 of file me4000.c.

#define ME4000_AI_CHANNEL_LIST_REG   0x78

Definition at line 137 of file me4000.c.

#define ME4000_AI_CTRL_BIT_CHANNEL_FIFO   (1 << 6)

Definition at line 112 of file me4000.c.

#define ME4000_AI_CTRL_BIT_DATA_FIFO   (1 << 7)

Definition at line 113 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_IRQ   (1 << 13)

Definition at line 119 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_IRQ_RESET   (1 << 14)

Definition at line 120 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_TRIG   (1 << 11)

Definition at line 117 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_TRIG_ANALOG   (1 << 10)

Definition at line 116 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_TRIG_BOTH   (1 << 31)

Definition at line 136 of file me4000.c.

#define ME4000_AI_CTRL_BIT_EX_TRIG_FALLING   (1 << 12)

Definition at line 118 of file me4000.c.

#define ME4000_AI_CTRL_BIT_FULLSCALE   (1 << 8)

Definition at line 114 of file me4000.c.

#define ME4000_AI_CTRL_BIT_HF_IRQ   (1 << 17)

Definition at line 123 of file me4000.c.

#define ME4000_AI_CTRL_BIT_HF_IRQ_RESET   (1 << 18)

Definition at line 124 of file me4000.c.

#define ME4000_AI_CTRL_BIT_IMMEDIATE_STOP   (1 << 4)

Definition at line 110 of file me4000.c.

#define ME4000_AI_CTRL_BIT_LE_IRQ   (1 << 15)

Definition at line 121 of file me4000.c.

#define ME4000_AI_CTRL_BIT_LE_IRQ_RESET   (1 << 16)

Definition at line 122 of file me4000.c.

#define ME4000_AI_CTRL_BIT_MODE_0   (1 << 0)

Definition at line 106 of file me4000.c.

#define ME4000_AI_CTRL_BIT_MODE_1   (1 << 1)

Definition at line 107 of file me4000.c.

#define ME4000_AI_CTRL_BIT_MODE_2   (1 << 2)

Definition at line 108 of file me4000.c.

#define ME4000_AI_CTRL_BIT_OFFSET   (1 << 9)

Definition at line 115 of file me4000.c.

#define ME4000_AI_CTRL_BIT_SAMPLE_HOLD   (1 << 3)

Definition at line 109 of file me4000.c.

#define ME4000_AI_CTRL_BIT_SC_IRQ   (1 << 19)

Definition at line 125 of file me4000.c.

#define ME4000_AI_CTRL_BIT_SC_IRQ_RESET   (1 << 20)

Definition at line 126 of file me4000.c.

#define ME4000_AI_CTRL_BIT_SC_RELOAD   (1 << 21)

Definition at line 127 of file me4000.c.

#define ME4000_AI_CTRL_BIT_STOP   (1 << 5)

Definition at line 111 of file me4000.c.

#define ME4000_AI_CTRL_REG   0x74

Definition at line 104 of file me4000.c.

#define ME4000_AI_DATA_REG   0x7c

Definition at line 145 of file me4000.c.

#define ME4000_AI_FIFO_COUNT   2048

Definition at line 209 of file me4000.c.

#define ME4000_AI_LIST_INPUT_DIFFERENTIAL   (1 << 5)

Definition at line 139 of file me4000.c.

#define ME4000_AI_LIST_INPUT_SINGLE_ENDED   (0 << 5)

Definition at line 138 of file me4000.c.

#define ME4000_AI_LIST_LAST_ENTRY   (1 << 8)

Definition at line 144 of file me4000.c.

#define ME4000_AI_LIST_RANGE_BIPOLAR_10   (0 << 6)

Definition at line 140 of file me4000.c.

#define ME4000_AI_LIST_RANGE_BIPOLAR_2_5   (1 << 6)

Definition at line 141 of file me4000.c.

#define ME4000_AI_LIST_RANGE_UNIPOLAR_10   (2 << 6)

Definition at line 142 of file me4000.c.

#define ME4000_AI_LIST_RANGE_UNIPOLAR_2_5   (3 << 6)

Definition at line 143 of file me4000.c.

#define ME4000_AI_MIN_SAMPLE_TIME   2000

Definition at line 212 of file me4000.c.

#define ME4000_AI_MIN_TICKS   66

Definition at line 211 of file me4000.c.

#define ME4000_AI_SAMPLE_COUNTER_REG   0xc0

Definition at line 185 of file me4000.c.

#define ME4000_AI_SCAN_PRE_TIMER_HIGH_REG   0x94

Definition at line 151 of file me4000.c.

#define ME4000_AI_SCAN_PRE_TIMER_LOW_REG   0x90

Definition at line 150 of file me4000.c.

#define ME4000_AI_SCAN_TIMER_HIGH_REG   0x8c

Definition at line 149 of file me4000.c.

#define ME4000_AI_SCAN_TIMER_LOW_REG   0x88

Definition at line 148 of file me4000.c.

#define ME4000_AI_START_REG   0x98

Definition at line 152 of file me4000.c.

#define ME4000_AI_STATUS_BIT_EF_CHANNEL   (1 << 22)

Definition at line 128 of file me4000.c.

#define ME4000_AI_STATUS_BIT_EF_DATA   (1 << 25)

Definition at line 131 of file me4000.c.

#define ME4000_AI_STATUS_BIT_FF_CHANNEL   (1 << 24)

Definition at line 130 of file me4000.c.

#define ME4000_AI_STATUS_BIT_FF_DATA   (1 << 27)

Definition at line 133 of file me4000.c.

#define ME4000_AI_STATUS_BIT_FSM   (1 << 29)

Definition at line 135 of file me4000.c.

#define ME4000_AI_STATUS_BIT_HF_CHANNEL   (1 << 23)

Definition at line 129 of file me4000.c.

#define ME4000_AI_STATUS_BIT_HF_DATA   (1 << 26)

Definition at line 132 of file me4000.c.

#define ME4000_AI_STATUS_BIT_LE   (1 << 28)

Definition at line 134 of file me4000.c.

#define ME4000_AI_STATUS_REG   0x74

Definition at line 105 of file me4000.c.

#define ME4000_AO_CHAN (   x)    ((x) * 0x18)

Definition at line 82 of file me4000.c.

#define ME4000_AO_CTRL_BIT_ENABLE_DO   (1 << 8)

Definition at line 93 of file me4000.c.

#define ME4000_AO_CTRL_BIT_ENABLE_EX_TRIG   (1 << 4)

Definition at line 90 of file me4000.c.

#define ME4000_AO_CTRL_BIT_ENABLE_FIFO   (1 << 3)

Definition at line 89 of file me4000.c.

#define ME4000_AO_CTRL_BIT_ENABLE_IRQ   (1 << 9)

Definition at line 94 of file me4000.c.

#define ME4000_AO_CTRL_BIT_EX_TRIG_EDGE   (1 << 5)

Definition at line 91 of file me4000.c.

#define ME4000_AO_CTRL_BIT_IMMEDIATE_STOP   (1 << 7)

Definition at line 92 of file me4000.c.

#define ME4000_AO_CTRL_BIT_MODE_0   (1 << 0)

Definition at line 85 of file me4000.c.

#define ME4000_AO_CTRL_BIT_MODE_1   (1 << 1)

Definition at line 86 of file me4000.c.

#define ME4000_AO_CTRL_BIT_RESET_IRQ   (1 << 10)

Definition at line 95 of file me4000.c.

#define ME4000_AO_CTRL_BIT_STOP   (1 << 2)

Definition at line 88 of file me4000.c.

#define ME4000_AO_CTRL_MASK_MODE   (3 << 0)

Definition at line 87 of file me4000.c.

#define ME4000_AO_CTRL_REG (   x)    (0x00 + ME4000_AO_CHAN(x))

Definition at line 84 of file me4000.c.

#define ME4000_AO_DEMUX_ADJUST_REG   0xbc

Definition at line 183 of file me4000.c.

#define ME4000_AO_DEMUX_ADJUST_VALUE   0x4c

Definition at line 184 of file me4000.c.

#define ME4000_AO_FIFO_REG (   x)    (0x08 + ME4000_AO_CHAN(x))

Definition at line 101 of file me4000.c.

#define ME4000_AO_LOADSETREG_XX   0xb4

Definition at line 167 of file me4000.c.

#define ME4000_AO_SINGLE_REG (   x)    (0x0c + ME4000_AO_CHAN(x))

Definition at line 102 of file me4000.c.

#define ME4000_AO_STATUS_BIT_EF   (1 << 3)

Definition at line 100 of file me4000.c.

#define ME4000_AO_STATUS_BIT_FF   (1 << 1)

Definition at line 98 of file me4000.c.

#define ME4000_AO_STATUS_BIT_FSM   (1 << 0)

Definition at line 97 of file me4000.c.

#define ME4000_AO_STATUS_BIT_HF   (1 << 2)

Definition at line 99 of file me4000.c.

#define ME4000_AO_STATUS_REG (   x)    (0x04 + ME4000_AO_CHAN(x))

Definition at line 96 of file me4000.c.

#define ME4000_AO_TIMER_REG (   x)    (0x10 + ME4000_AO_CHAN(x))

Definition at line 103 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_0   (1 << 10)

Definition at line 179 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_1   (1 << 11)

Definition at line 180 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_2   (1 << 12)

Definition at line 181 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_3   (1 << 13)

Definition at line 182 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FUNCTION_0   (1 << 8)

Definition at line 177 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_FUNCTION_1   (1 << 9)

Definition at line 178 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_0   (1 << 0)

Definition at line 169 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_1   (1 << 1)

Definition at line 170 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_2   (1 << 2)

Definition at line 171 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_3   (1 << 3)

Definition at line 172 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_4   (1 << 4)

Definition at line 173 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_5   (1 << 5)

Definition at line 174 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_6   (1 << 6)

Definition at line 175 of file me4000.c.

#define ME4000_DIO_CTRL_BIT_MODE_7   (1 << 7)

Definition at line 176 of file me4000.c.

#define ME4000_DIO_CTRL_REG   0xb8

Definition at line 168 of file me4000.c.

#define ME4000_DIO_DIR_REG   0xb0

Definition at line 166 of file me4000.c.

#define ME4000_DIO_PORT_0_REG   0xa0

Definition at line 162 of file me4000.c.

#define ME4000_DIO_PORT_1_REG   0xa4

Definition at line 163 of file me4000.c.

#define ME4000_DIO_PORT_2_REG   0xa8

Definition at line 164 of file me4000.c.

#define ME4000_DIO_PORT_3_REG   0xac

Definition at line 165 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_AI_HF   (1 << 2)

Definition at line 156 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_AO_0_HF   (1 << 3)

Definition at line 157 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_AO_1_HF   (1 << 4)

Definition at line 158 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_AO_2_HF   (1 << 5)

Definition at line 159 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_AO_3_HF   (1 << 6)

Definition at line 160 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_EX   (1 << 0)

Definition at line 154 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_LE   (1 << 1)

Definition at line 155 of file me4000.c.

#define ME4000_IRQ_STATUS_BIT_SC   (1 << 7)

Definition at line 161 of file me4000.c.

#define ME4000_IRQ_STATUS_REG   0x9c

Definition at line 153 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4650   0x4650

Definition at line 65 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4660   0x4660

Definition at line 66 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4660I   0x4661

Definition at line 67 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4660IS   0x4663

Definition at line 69 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4660S   0x4662

Definition at line 68 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4670   0x4670

Definition at line 70 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4670I   0x4671

Definition at line 71 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4670IS   0x4673

Definition at line 73 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4670S   0x4672

Definition at line 72 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4680   0x4680

Definition at line 74 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4680I   0x4681

Definition at line 75 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4680IS   0x4683

Definition at line 77 of file me4000.c.

#define PCI_DEVICE_ID_MEILHAUS_ME4680S   0x4682

Definition at line 76 of file me4000.c.

#define PCI_VENDOR_ID_MEILHAUS   0x1402

Definition at line 63 of file me4000.c.

#define PLX_ICR   0x50

Definition at line 199 of file me4000.c.

#define PLX_ICR_BIT_EEPROM_CHIP_SELECT   (1 << 25)

Definition at line 201 of file me4000.c.

#define PLX_ICR_BIT_EEPROM_CLOCK_SET   (1 << 24)

Definition at line 200 of file me4000.c.

#define PLX_ICR_BIT_EEPROM_READ   (1 << 27)

Definition at line 203 of file me4000.c.

#define PLX_ICR_BIT_EEPROM_VALID   (1 << 28)

Definition at line 204 of file me4000.c.

#define PLX_ICR_BIT_EEPROM_WRITE   (1 << 26)

Definition at line 202 of file me4000.c.

#define PLX_ICR_MASK_EEPROM   (0x1f << 24)

Definition at line 205 of file me4000.c.

#define PLX_INTCSR   0x4c

Definition at line 190 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT1_EN   (1 << 0)

Definition at line 191 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT1_POL   (1 << 1)

Definition at line 192 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT1_STATE   (1 << 2)

Definition at line 193 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT2_EN   (1 << 3)

Definition at line 194 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT2_POL   (1 << 4)

Definition at line 195 of file me4000.c.

#define PLX_INTCSR_LOCAL_INT2_STATE   (1 << 5)

Definition at line 196 of file me4000.c.

#define PLX_INTCSR_PCI_INT_EN   (1 << 6)

Definition at line 197 of file me4000.c.

#define PLX_INTCSR_SOFT_INT   (1 << 7)

Definition at line 198 of file me4000.c.

Function Documentation

MODULE_AUTHOR ( "Comedi http://www.comedi.org"  )
module_comedi_pci_driver ( me4000_driver  ,
me4000_pci_driver   
)
MODULE_DESCRIPTION ( "Comedi low-level driver )
MODULE_DEVICE_TABLE ( pci  ,
me4000_pci_table   
)
MODULE_LICENSE ( "GPL"  )

Variable Documentation

unsigned char* xilinx_firm