Contributors: 5
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Martyn Welch |
79 |
72.48% |
2 |
28.57% |
| Vincent Bossier |
15 |
13.76% |
1 |
14.29% |
| Aaron Sierra |
13 |
11.93% |
2 |
28.57% |
| Manohar Vanga |
1 |
0.92% |
1 |
14.29% |
| Greg Kroah-Hartman |
1 |
0.92% |
1 |
14.29% |
| Total |
109 |
|
7 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _VME_USER_H_
#define _VME_USER_H_
#define VME_USER_BUS_MAX 1
/*
* VMEbus Master Window Configuration Structure
*/
struct vme_master {
__u32 enable; /* State of Window */
__u64 vme_addr; /* Starting Address on the VMEbus */
__u64 size; /* Window Size */
__u32 aspace; /* Address Space */
__u32 cycle; /* Cycle properties */
__u32 dwidth; /* Maximum Data Width */
} __packed;
/*
* IOCTL Commands and structures
*/
/* Magic number for use in ioctls */
#define VME_IOC_MAGIC 0xAE
/* VMEbus Slave Window Configuration Structure */
struct vme_slave {
__u32 enable; /* State of Window */
__u64 vme_addr; /* Starting Address on the VMEbus */
__u64 size; /* Window Size */
__u32 aspace; /* Address Space */
__u32 cycle; /* Cycle properties */
} __packed;
struct vme_irq_id {
__u8 level;
__u8 statid;
};
#define VME_GET_SLAVE _IOR(VME_IOC_MAGIC, 1, struct vme_slave)
#define VME_SET_SLAVE _IOW(VME_IOC_MAGIC, 2, struct vme_slave)
#define VME_GET_MASTER _IOR(VME_IOC_MAGIC, 3, struct vme_master)
#define VME_SET_MASTER _IOW(VME_IOC_MAGIC, 4, struct vme_master)
#define VME_IRQ_GEN _IOW(VME_IOC_MAGIC, 5, struct vme_irq_id)
#endif /* _VME_USER_H_ */