xref: /linux/arch/s390/include/uapi/asm/clp.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2988b86e6SMartin Schwidefsky /*
3988b86e6SMartin Schwidefsky  * ioctl interface for /dev/clp
4988b86e6SMartin Schwidefsky  *
5988b86e6SMartin Schwidefsky  * Copyright IBM Corp. 2016
6988b86e6SMartin Schwidefsky  * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
7988b86e6SMartin Schwidefsky  */
8988b86e6SMartin Schwidefsky 
9988b86e6SMartin Schwidefsky #ifndef _ASM_CLP_H
10988b86e6SMartin Schwidefsky #define _ASM_CLP_H
11988b86e6SMartin Schwidefsky 
12988b86e6SMartin Schwidefsky #include <linux/types.h>
13988b86e6SMartin Schwidefsky #include <linux/ioctl.h>
14988b86e6SMartin Schwidefsky 
15988b86e6SMartin Schwidefsky struct clp_req {
16988b86e6SMartin Schwidefsky 	unsigned int c : 1;
17988b86e6SMartin Schwidefsky 	unsigned int r : 1;
18988b86e6SMartin Schwidefsky 	unsigned int lps : 6;
19988b86e6SMartin Schwidefsky 	unsigned int cmd : 8;
20988b86e6SMartin Schwidefsky 	unsigned int : 16;
21988b86e6SMartin Schwidefsky 	unsigned int reserved;
22988b86e6SMartin Schwidefsky 	__u64 data_p;
23988b86e6SMartin Schwidefsky };
24988b86e6SMartin Schwidefsky 
25988b86e6SMartin Schwidefsky #define CLP_IOCTL_MAGIC 'c'
26988b86e6SMartin Schwidefsky 
27988b86e6SMartin Schwidefsky #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req)
28988b86e6SMartin Schwidefsky 
29988b86e6SMartin Schwidefsky #endif
30