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