AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
|
#include "rtm-t_ioctl.h"
Go to the source code of this file.
Classes | |
struct | AFHBA_STREAM_DEV |
struct | AFHBA_STREAM_DEV::BOTTLING_PLANT |
struct | AFHBA_STREAM_DEV::JOB |
struct | AFHBA_STREAM_DEV::WORK |
struct | AO_BURST_DEV |
Macros | |
#define | NBUFFERS 66 |
#define | NBUFFERS_FIFO NBUFFERS |
#define | NBUFFERS_MASK 127 |
#define | BUFFER_LEN 0x100000 |
#define | NSTATES 4 |
#define | N_DRV_STATES 3 |
#define | AFDMAC_PAGE 0x400 /* 1K pages */ |
#define | AFDMAC_LL_PAGE 64 /* page length in LL */ |
#define | AFDMAC_DESC_ADDR_MASK 0xfffffc00 /* base address */ |
#define | AFDMAC_DESC_WRITE 0x00000200 /* Write BIT */ |
#define | AFDMAC_DESC_EOT 0x00000100 /* End Of Transfer interrupt */ |
#define | AFDMAC_DESC_LEN_MASK 0x000000f0 /* length (pages) */ |
#define | AFDMAC_DESC_LEN_SHL 4 |
#define | AFDMAC_DESC_ID_MASK 0x0000000f /* ID 0..15 */ |
#define | AFDMAC_DESC_ID 0x0000000f /* ID 0..15 */ |
#define | AFDMAC_DESCR(pa, pages, id) |
#define | MSI_DMA 0 |
#define | MSI_UART 0 |
#define | DEV_DBG dev_dbg |
#define | bp_empties bp[BS_EMPTY] |
#define | bp_filling bp[BS_FILLING] |
#define | bp_full bp[BS_FULL] |
#define | WORK_REQUEST 0 |
#define | AO_BURST_DEV(sdev) ((struct AO_BURST_DEV*)sdev->user) |
#define | MIRROR(adev, ix) (adev->stream_dev->dma_regs[ix]) |
#define | PCI_REG_WRITE(adev, regoff, value) _afs_write_pcireg(adev, regoff, value) |
#define | PCI_REG_READ(adev, regoff) _afs_read_pcireg(adev, regoff) |
#define | DMA_CTRL_WR(adev, value) _afs_write_dmareg(adev, DMA_CTRL, MIRROR(adev, DMA_CTRL) = value) |
#define | DMA_CTRL_RD(adev) (MIRROR(adev, DMA_CTRL) = _afs_read_dmareg(adev, DMA_CTRL)) |
#define | DMA_CTRL_CLR(adev, bits) |
#define | DMA_CTRL_SET(adev, bits) |
#define | DMA_TEST_WR(adev, value) _afs_write_dmareg(adev, DMA_TEST, MIRROR(adev, DMA_TEST) = (value)) |
#define | DMA_TEST_RD(adev) (MIRROR(adev, DMA_TEST) = _afs_read_dmareg(adev, DMA_TEST)) |
#define | afs_dma_reset(adev, dma_sel) |
#define | afs_start_dma(adev, dma_sel) |
#define | afs_stop_dma(adev, dma_sel) |
#define | DMA_DATA_FIFSTA_RD(adev) _afs_read_dmareg(adev, DMA_DATA_FIFSTA) |
#define | DMA_DESC_FIFSTA_RD(adev) _afs_read_dmareg(adev, DMA_DESC_FIFSTA) |
#define | DMA_PUSH_DESC_STA_RD(adev) _afs_read_dmareg(adev, DMA_PUSH_DESC_STA) |
#define | DMA_PULL_DESC_STA_RD(adev) _afs_read_dmareg(adev, DMA_PULL_DESC_STA) |
#define | EMPTY1 0xee11ee11 |
#define | EMPTY2 0x22ee22ee |
#define | RTDMAC_DATA_FIFO_CNT 0x1000 |
#define | RTDMAC_DESC_FIFO_CNT 0x1000 |
#define | HB_ENTRY(plist) list_entry(plist, struct HostBuffer, list) |
Enumerations | |
enum | { PS_OFF, PS_PLEASE_STOP, PS_STOP_DONE } |
Functions | |
void | _afs_write_pcireg (struct AFHBA_DEV *adev, int regoff, u32 value) |
u32 | _afs_read_pcireg (struct AFHBA_DEV *adev, int regoff) |
int | afs_comms_ready (struct AFHBA_DEV *adev) |
void | _afs_write_dmareg (struct AFHBA_DEV *adev, int regoff, u32 value) |
u32 | _afs_read_dmareg (struct AFHBA_DEV *adev, int regoff) |
void | _afs_write_comreg (struct AFHBA_DEV *adev, int regoff, u32 value) |
void | __afs_dma_reset (struct AFHBA_DEV *adev, u32 dma_sel) |
void | __afs_start_dma (struct AFHBA_DEV *adev, u32 dma_sel) |
void | __afs_stop_dma (struct AFHBA_DEV *adev, u32 dma_sel) |
int | afs_init_procfs (struct AFHBA_DEV *adev) |
int | afs_reset_buffers (struct AFHBA_DEV *adev) |
int | afs_comms_init (struct AFHBA_DEV *adev) |
#define AFDMAC_DESC_ADDR_MASK 0xfffffc00 /* base address */ |
Definition at line 30 of file afhba_stream_drv.h.
#define AFDMAC_DESC_EOT 0x00000100 /* End Of Transfer interrupt */ |
Definition at line 33 of file afhba_stream_drv.h.
#define AFDMAC_DESC_ID 0x0000000f /* ID 0..15 */ |
Definition at line 39 of file afhba_stream_drv.h.
#define AFDMAC_DESC_ID_MASK 0x0000000f /* ID 0..15 */ |
Definition at line 38 of file afhba_stream_drv.h.
#define AFDMAC_DESC_LEN_MASK 0x000000f0 /* length (pages) */ |
Definition at line 35 of file afhba_stream_drv.h.
#define AFDMAC_DESC_LEN_SHL 4 |
Definition at line 36 of file afhba_stream_drv.h.
#define AFDMAC_DESC_WRITE 0x00000200 /* Write BIT */ |
Definition at line 32 of file afhba_stream_drv.h.
#define AFDMAC_DESCR | ( | pa, | |
pages, | |||
id | |||
) |
Definition at line 41 of file afhba_stream_drv.h.
#define AFDMAC_LL_PAGE 64 /* page length in LL */ |
Definition at line 28 of file afhba_stream_drv.h.
#define AFDMAC_PAGE 0x400 /* 1K pages */ |
Definition at line 27 of file afhba_stream_drv.h.
#define afs_dma_reset | ( | adev, | |
dma_sel | |||
) |
Definition at line 220 of file afhba_stream_drv.h.
#define afs_start_dma | ( | adev, | |
dma_sel | |||
) |
Definition at line 227 of file afhba_stream_drv.h.
#define afs_stop_dma | ( | adev, | |
dma_sel | |||
) |
Definition at line 234 of file afhba_stream_drv.h.
#define AO_BURST_DEV | ( | sdev | ) | ((struct AO_BURST_DEV*)sdev->user) |
Definition at line 161 of file afhba_stream_drv.h.
#define bp_empties bp[BS_EMPTY] |
Definition at line 77 of file afhba_stream_drv.h.
#define bp_filling bp[BS_FILLING] |
Definition at line 78 of file afhba_stream_drv.h.
#define bp_full bp[BS_FULL] |
Definition at line 79 of file afhba_stream_drv.h.
#define BUFFER_LEN 0x100000 |
Definition at line 21 of file afhba_stream_drv.h.
#define DEV_DBG dev_dbg |
Definition at line 62 of file afhba_stream_drv.h.
#define DMA_CTRL_CLR | ( | adev, | |
bits | |||
) |
Definition at line 186 of file afhba_stream_drv.h.
#define DMA_CTRL_RD | ( | adev | ) | (MIRROR(adev, DMA_CTRL) = _afs_read_dmareg(adev, DMA_CTRL)) |
Definition at line 183 of file afhba_stream_drv.h.
#define DMA_CTRL_SET | ( | adev, | |
bits | |||
) |
Definition at line 197 of file afhba_stream_drv.h.
#define DMA_CTRL_WR | ( | adev, | |
value | |||
) | _afs_write_dmareg(adev, DMA_CTRL, MIRROR(adev, DMA_CTRL) = value) |
Definition at line 179 of file afhba_stream_drv.h.
#define DMA_DATA_FIFSTA_RD | ( | adev | ) | _afs_read_dmareg(adev, DMA_DATA_FIFSTA) |
Definition at line 239 of file afhba_stream_drv.h.
#define DMA_DESC_FIFSTA_RD | ( | adev | ) | _afs_read_dmareg(adev, DMA_DESC_FIFSTA) |
Definition at line 240 of file afhba_stream_drv.h.
#define DMA_PULL_DESC_STA_RD | ( | adev | ) | _afs_read_dmareg(adev, DMA_PULL_DESC_STA) |
Definition at line 242 of file afhba_stream_drv.h.
#define DMA_PUSH_DESC_STA_RD | ( | adev | ) | _afs_read_dmareg(adev, DMA_PUSH_DESC_STA) |
Definition at line 241 of file afhba_stream_drv.h.
#define DMA_TEST_RD | ( | adev | ) | (MIRROR(adev, DMA_TEST) = _afs_read_dmareg(adev, DMA_TEST)) |
Definition at line 212 of file afhba_stream_drv.h.
#define DMA_TEST_WR | ( | adev, | |
value | |||
) | _afs_write_dmareg(adev, DMA_TEST, MIRROR(adev, DMA_TEST) = (value)) |
Definition at line 209 of file afhba_stream_drv.h.
#define EMPTY1 0xee11ee11 |
Definition at line 245 of file afhba_stream_drv.h.
#define EMPTY2 0x22ee22ee |
Definition at line 246 of file afhba_stream_drv.h.
#define HB_ENTRY | ( | plist | ) | list_entry(plist, struct HostBuffer, list) |
Definition at line 251 of file afhba_stream_drv.h.
#define MIRROR | ( | adev, | |
ix | |||
) | (adev->stream_dev->dma_regs[ix]) |
Definition at line 163 of file afhba_stream_drv.h.
#define MSI_DMA 0 |
Definition at line 47 of file afhba_stream_drv.h.
#define MSI_UART 0 |
Definition at line 51 of file afhba_stream_drv.h.
#define N_DRV_STATES 3 |
Definition at line 25 of file afhba_stream_drv.h.
#define NBUFFERS 66 |
Definition at line 15 of file afhba_stream_drv.h.
#define NBUFFERS_FIFO NBUFFERS |
Definition at line 17 of file afhba_stream_drv.h.
#define NBUFFERS_MASK 127 |
Definition at line 19 of file afhba_stream_drv.h.
#define NSTATES 4 |
Definition at line 24 of file afhba_stream_drv.h.
#define PCI_REG_READ | ( | adev, | |
regoff | |||
) | _afs_read_pcireg(adev, regoff) |
Definition at line 173 of file afhba_stream_drv.h.
#define PCI_REG_WRITE | ( | adev, | |
regoff, | |||
value | |||
) | _afs_write_pcireg(adev, regoff, value) |
Definition at line 170 of file afhba_stream_drv.h.
#define RTDMAC_DATA_FIFO_CNT 0x1000 |
Definition at line 248 of file afhba_stream_drv.h.
#define RTDMAC_DESC_FIFO_CNT 0x1000 |
Definition at line 249 of file afhba_stream_drv.h.
#define WORK_REQUEST 0 |
Definition at line 125 of file afhba_stream_drv.h.
anonymous enum |
Enumerator | |
---|---|
PS_OFF | |
PS_PLEASE_STOP | |
PS_STOP_DONE |
Definition at line 53 of file afhba_stream_drv.h.
Definition at line 555 of file afhba_stream_drv.c.
Definition at line 570 of file afhba_stream_drv.c.
Definition at line 563 of file afhba_stream_drv.c.
Definition at line 313 of file afhba_stream_drv.c.
Definition at line 332 of file afhba_stream_drv.c.
Definition at line 296 of file afhba_stream_drv.c.
Definition at line 304 of file afhba_stream_drv.c.
Definition at line 322 of file afhba_stream_drv.c.
int afs_comms_init | ( | struct AFHBA_DEV * | adev | ) |
Definition at line 749 of file afhba_stream_drv.c.
int afs_comms_ready | ( | struct AFHBA_DEV * | adev | ) |
Definition at line 773 of file afhba_stream_drv.c.
int afs_init_procfs | ( | struct AFHBA_DEV * | adev | ) |
Definition at line 296 of file afs_procfs.c.
int afs_reset_buffers | ( | struct AFHBA_DEV * | adev | ) |
Definition at line 1390 of file afhba_stream_drv.c.