xref: /openbmc/linux/arch/s390/include/uapi/asm/clp.h (revision 4f205687)
1 /*
2  * ioctl interface for /dev/clp
3  *
4  * Copyright IBM Corp. 2016
5  * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
6  */
7 
8 #ifndef _ASM_CLP_H
9 #define _ASM_CLP_H
10 
11 #include <linux/types.h>
12 #include <linux/ioctl.h>
13 
14 struct clp_req {
15 	unsigned int c : 1;
16 	unsigned int r : 1;
17 	unsigned int lps : 6;
18 	unsigned int cmd : 8;
19 	unsigned int : 16;
20 	unsigned int reserved;
21 	__u64 data_p;
22 };
23 
24 #define CLP_IOCTL_MAGIC 'c'
25 
26 #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req)
27 
28 #endif
29