AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
|
Go to the documentation of this file.
22 #ifndef __RTM_T_IOCTL_H__
23 #define __RTM_T_IOCTL_H__
25 #include <linux/ioctl.h>
65 #define AO_BURST_ID 0xA0B55555
73 #define VALID_AO_BURST(p) (((struct AO_BURST*)p)->id == AO_BURST_ID)
75 #define RTM_T_USE_HOSTBUF 0
79 #define RTM_T_START_STREAM _IO(DMAGIC, 1)
81 #define RTM_T_START_LLC _IOW(DMAGIC, 2, struct LLC_DEF)
85 #define RTM_T_START_STREAM_MAX _IOW(DMAGIC, 3, u32)
88 #define RTM_T_START_AOLLC _IOW(DMAGIC, 4, struct AO_LLC_DEF)
90 #define AFHBA_START_AI_LLC _IOWR(DMAGIC, 5, struct XLLC_DEF)
95 #define AFHBA_START_AO_LLC _IOWR(DMAGIC, 6, struct XLLC_DEF)
98 #define AFHBA_START_AI_AB _IOWR(DMAGIC, 7, struct AB)
104 #define AFHBA_START_AI_ABN _IOWR(DMAGIC, 8, struct ABN)
106 #define AFHBA_START_AO_ABN _IOWR(DMAGIC, 9, struct ABN)
110 #define AFHBA_AO_BURST_INIT _IOWR(DMAGIC, 10, struct AO_BURST)
112 #define AFHBA_AO_BURST_SETBUF _IOWR(DMAGIC, 12, u32)
115 #define RTM_T_START_STREAM_AO _IO(DMAGIC, 11)
121 #define IBUF_MAGIC 0xb1f00000
122 #define IBUF_MAGIC_MASK 0xfff00000
123 #define IBUF_IDX 0x000f0000
124 #define IBUF_IDX_SHL 16
125 #define IBUF_IBUF 0x0000ffff
126 #define ESTA_CRC 0x0000ffff
127 #define SBDSZ sizeof(struct StreamBufferDef)
struct XLLC_DEF buffers[2]
u32 target_pa
target bus address round to 1K boundary.
u32 pa
SRC or DST buffer PA - round to 1K RTM_T_USE_HOSTBUF=> use Driver buffer 0.
unsigned len
length in bytes - will round up to next %64
int length
< arg for ioctl RTM_T_START_AOLLC
< arg for ioctl RTM_T_START_LLC
u32 src_pa
source bus address round to 1k boundary.
struct XLLC_DEF buffers[MAXABN]
u8 clk_div
1..255: ECM value 1..255 usec with 1MHz EXTCLK