Go to the documentation of this file.
4 #ifndef __LINUX_VME_IO_H
5 #define __LINUX_VME_IO_H
7 #include <linux/ioctl.h>
15 #define VMECTL_RESET _IO('x', 0)
18 #define VMECTL_GETVMETO _IOR('x', 1, int)
19 #define VMECTL_SETVMETO _IOW('x', 1, int)
21 #define VMEMAP_DWIDTH_8 (0)
22 #define VMEMAP_DWIDTH_16 (1)
23 #define VMEMAP_DWIDTH_32 (2)
24 #define VMEMAP_DWIDTH_64 (3)
26 #define VMEMAP_ASPACE_A16 (0)
27 #define VMEMAP_ASPACE_A24 (1)
28 #define VMEMAP_ASPACE_A32 (2)
29 #define VMEMAP_ASPACE_CRCSR (5)
30 #define VMEMAP_ASPACE_USR1 (6)
31 #define VMEMAP_ASPACE_USR2 (7)
33 #define VMEMAP_SUPUSERAM_USER (0)
34 #define VMEMAP_SUPUSERAM_SUPER (1)
36 #define VMEMAP_PRGDATAAM_DATA (0)
37 #define VMEMAP_PRGDATAAM_PRG (1)
39 #define VMEMAP_VMESLAVE_USER (0x01)
40 #define VMEMAP_VMESLAVE_SUPER (0x02)
42 #define VMEMAP_VMESLAVE_DATA (0x01)
43 #define VMEMAP_VMESLAVE_PRG (0x02)
52 #define VMEIMG_GETMAPPING _IOR('x',2,struct vme_mapping_ctrl)
53 #define VMEIMG_SETMAPPING _IOW('x',2,struct vme_mapping_ctrl)
55 #define VMEIMG_GETVMEADDR _IOR('x',3,unsigned long)
56 #define VMEIMG_SETVMEADDR _IOW('x',3,unsigned long)
58 #define VMEIMG_GETGRANULARITY _IOR('x',4,unsigned long)
70 #define VMEIRQ_GETLINK _IOR('x',6,struct vme_irq_mapping_type)
71 #define VMEIRQ_SETLINK _IOW('x',6,struct vme_irq_mapping_type)
84 #define VMEDMA_SETBUFFSIZE _IOW('x',7,size_t)
85 #define VMEDMA_GETBUFFSIZE _IOR('x',7,size_t)
86 #define VMEDMA_DODMA _IO('x',8)
87 #define VMEDMA_ADDBLOCK _IOW('x',9,struct DMA_chainblock_type)
88 #define VMEDMA_CLEARBLOCKS _IO('x',10)
91 #define VMESLAVE_SETSIZE _IOW('x',11,size_t)
92 #define VMESLAVE_GETSIZE _IOR('x',11,size_t)
103 #define VMEIMG_DMA_READ _IOW('x', 12, struct vme_dma_req)
104 #define VMEIMG_DMA_WRITE _IOW('x', 13, struct vme_dma_req)