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