License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / drivers / staging / vme / devices / vme_user.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
238add52
MW
2#ifndef _VME_USER_H_
3#define _VME_USER_H_
4
0a4b6b02 5#define VME_USER_BUS_MAX 1
f00a86d9
MW
6
7/*
8 * VMEbus Master Window Configuration Structure
9 */
238add52 10struct vme_master {
7e4290c6
AS
11 __u32 enable; /* State of Window */
12 __u64 vme_addr; /* Starting Address on the VMEbus */
13 __u64 size; /* Window Size */
14 __u32 aspace; /* Address Space */
15 __u32 cycle; /* Cycle properties */
16 __u32 dwidth; /* Maximum Data Width */
f00a86d9 17#if 0
f827c165
LN
18 char prefetchenable; /* Prefetch Read Enable State */
19 int prefetchsize; /* Prefetch Read Size (Cache Lines) */
20 char wrpostenable; /* Write Post State */
f00a86d9 21#endif
66a01f11 22} __packed;
f00a86d9 23
f00a86d9
MW
24/*
25 * IOCTL Commands and structures
26 */
27
28/* Magic number for use in ioctls */
29#define VME_IOC_MAGIC 0xAE
30
f00a86d9 31/* VMEbus Slave Window Configuration Structure */
238add52 32struct vme_slave {
7e4290c6
AS
33 __u32 enable; /* State of Window */
34 __u64 vme_addr; /* Starting Address on the VMEbus */
35 __u64 size; /* Window Size */
36 __u32 aspace; /* Address Space */
37 __u32 cycle; /* Cycle properties */
f00a86d9 38#if 0
f827c165
LN
39 char wrpostenable; /* Write Post State */
40 char rmwlock; /* Lock PCI during RMW Cycles */
41 char data64bitcapable; /* non-VMEbus capable of 64-bit Data */
f00a86d9 42#endif
66a01f11 43} __packed;
238add52 44
dca22184
VB
45struct vme_irq_id {
46 __u8 level;
47 __u8 statid;
48};
49
238add52
MW
50#define VME_GET_SLAVE _IOR(VME_IOC_MAGIC, 1, struct vme_slave)
51#define VME_SET_SLAVE _IOW(VME_IOC_MAGIC, 2, struct vme_slave)
52#define VME_GET_MASTER _IOR(VME_IOC_MAGIC, 3, struct vme_master)
53#define VME_SET_MASTER _IOW(VME_IOC_MAGIC, 4, struct vme_master)
dca22184 54#define VME_IRQ_GEN _IOW(VME_IOC_MAGIC, 5, struct vme_irq_id)
f00a86d9 55
238add52 56#endif /* _VME_USER_H_ */
f00a86d9 57