![]() |
RTXI 1.3
|
#include <linux/comedidev.h>#include <linux/ioport.h>#include <asm/dma.h>#include "8253.h"#include "comedi_fc.h"Go to the source code of this file.
Classes | |
| struct | a2150_board_struct |
| struct | a2150_private |
Defines | |
| #define | A2150_SIZE 28 |
| #define | A2150_DMA_BUFFER_SIZE 0xff00 |
| #define | CONFIG_REG 0x0 |
| #define | CHANNEL_BITS(x) ((x) & 0x7) |
| #define | CHANNEL_MASK 0x7 |
| #define | CLOCK_SELECT_BITS(x) (((x) & 0x3) << 3) |
| #define | CLOCK_DIVISOR_BITS(x) (((x) & 0x3) << 5) |
| #define | CLOCK_MASK (0xf << 3) |
| #define | ENABLE0_BIT 0x80 |
| #define | ENABLE1_BIT 0x100 |
| #define | AC0_BIT 0x200 |
| #define | AC1_BIT 0x400 |
| #define | APD_BIT 0x800 |
| #define | DPD_BIT 0x1000 |
| #define | TRIGGER_REG 0x2 |
| #define | POST_TRIGGER_BITS 0x2 |
| #define | DELAY_TRIGGER_BITS 0x3 |
| #define | HW_TRIG_EN 0x10 |
| #define | FIFO_START_REG 0x6 |
| #define | FIFO_RESET_REG 0x8 |
| #define | FIFO_DATA_REG 0xa |
| #define | DMA_TC_CLEAR_REG 0xe |
| #define | STATUS_REG 0x12 |
| #define | FNE_BIT 0x1 |
| #define | OVFL_BIT 0x8 |
| #define | EDAQ_BIT 0x10 |
| #define | DCAL_BIT 0x20 |
| #define | INTR_BIT 0x40 |
| #define | DMA_TC_BIT 0x80 |
| #define | ID_BITS(x) (((x) >> 8) & 0x3) |
| #define | IRQ_DMA_CNTRL_REG 0x12 |
| #define | DMA_CHAN_BITS(x) ((x) & 0x7) |
| #define | DMA_EN_BIT 0x8 |
| #define | IRQ_LVL_BITS(x) (((x) & 0xf) << 4) |
| #define | FIFO_INTR_EN_BIT 0x100 |
| #define | FIFO_INTR_FHF_BIT 0x200 |
| #define | DMA_INTR_EN_BIT 0x800 |
| #define | DMA_DEM_EN_BIT 0x1000 |
| #define | I8253_BASE_REG 0x14 |
| #define | I8253_MODE_REG 0x17 |
| #define | HW_COUNT_DISABLE 0x30 |
| #define | thisboard ((const a2150_board *)dev->board_ptr) |
| #define | devpriv ((a2150_private *)dev->private) |
| #define | ONE_THIRD_SECOND 333333333 |
Typedefs | |
| typedef struct a2150_board_struct | a2150_board |
Enumerations | |
| enum | { a2150_c, a2150_s } |
Functions | |
| COMEDI_INITCLEANUP (driver_a2150) | |
| #define A2150_DMA_BUFFER_SIZE 0xff00 |
Definition at line 76 of file ni_at_a2150.c.
| #define A2150_SIZE 28 |
Definition at line 75 of file ni_at_a2150.c.
| #define AC0_BIT 0x200 |
Definition at line 90 of file ni_at_a2150.c.
| #define AC1_BIT 0x400 |
Definition at line 91 of file ni_at_a2150.c.
| #define APD_BIT 0x800 |
Definition at line 92 of file ni_at_a2150.c.
Definition at line 83 of file ni_at_a2150.c.
| #define CHANNEL_MASK 0x7 |
Definition at line 84 of file ni_at_a2150.c.
Definition at line 86 of file ni_at_a2150.c.
| #define CLOCK_MASK (0xf << 3) |
Definition at line 87 of file ni_at_a2150.c.
Definition at line 85 of file ni_at_a2150.c.
| #define CONFIG_REG 0x0 |
Definition at line 82 of file ni_at_a2150.c.
| #define DCAL_BIT 0x20 |
Definition at line 106 of file ni_at_a2150.c.
| #define DELAY_TRIGGER_BITS 0x3 |
Definition at line 96 of file ni_at_a2150.c.
| #define devpriv ((a2150_private *)dev->private) |
Definition at line 168 of file ni_at_a2150.c.
Definition at line 111 of file ni_at_a2150.c.
| #define DMA_DEM_EN_BIT 0x1000 |
Definition at line 117 of file ni_at_a2150.c.
| #define DMA_EN_BIT 0x8 |
Definition at line 112 of file ni_at_a2150.c.
| #define DMA_INTR_EN_BIT 0x800 |
Definition at line 116 of file ni_at_a2150.c.
| #define DMA_TC_BIT 0x80 |
Definition at line 108 of file ni_at_a2150.c.
| #define DMA_TC_CLEAR_REG 0xe |
Definition at line 101 of file ni_at_a2150.c.
| #define DPD_BIT 0x1000 |
Definition at line 93 of file ni_at_a2150.c.
| #define EDAQ_BIT 0x10 |
Definition at line 105 of file ni_at_a2150.c.
| #define ENABLE0_BIT 0x80 |
Definition at line 88 of file ni_at_a2150.c.
| #define ENABLE1_BIT 0x100 |
Definition at line 89 of file ni_at_a2150.c.
| #define FIFO_DATA_REG 0xa |
Definition at line 100 of file ni_at_a2150.c.
| #define FIFO_INTR_EN_BIT 0x100 |
Definition at line 114 of file ni_at_a2150.c.
| #define FIFO_INTR_FHF_BIT 0x200 |
Definition at line 115 of file ni_at_a2150.c.
| #define FIFO_RESET_REG 0x8 |
Definition at line 99 of file ni_at_a2150.c.
| #define FIFO_START_REG 0x6 |
Definition at line 98 of file ni_at_a2150.c.
| #define FNE_BIT 0x1 |
Definition at line 103 of file ni_at_a2150.c.
| #define HW_COUNT_DISABLE 0x30 |
Definition at line 120 of file ni_at_a2150.c.
| #define HW_TRIG_EN 0x10 |
Definition at line 97 of file ni_at_a2150.c.
| #define I8253_BASE_REG 0x14 |
Definition at line 118 of file ni_at_a2150.c.
| #define I8253_MODE_REG 0x17 |
Definition at line 119 of file ni_at_a2150.c.
Definition at line 109 of file ni_at_a2150.c.
| #define INTR_BIT 0x40 |
Definition at line 107 of file ni_at_a2150.c.
| #define IRQ_DMA_CNTRL_REG 0x12 |
Definition at line 110 of file ni_at_a2150.c.
Definition at line 113 of file ni_at_a2150.c.
| #define ONE_THIRD_SECOND 333333333 |
| #define OVFL_BIT 0x8 |
Definition at line 104 of file ni_at_a2150.c.
| #define POST_TRIGGER_BITS 0x2 |
Definition at line 95 of file ni_at_a2150.c.
| #define STATUS_REG 0x12 |
Definition at line 102 of file ni_at_a2150.c.
| #define thisboard ((const a2150_board *)dev->board_ptr) |
Definition at line 157 of file ni_at_a2150.c.
| #define TRIGGER_REG 0x2 |
Definition at line 94 of file ni_at_a2150.c.
| typedef struct a2150_board_struct a2150_board |
| anonymous enum |
Definition at line 138 of file ni_at_a2150.c.
| COMEDI_INITCLEANUP | ( | driver_a2150 | ) |