Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * ioctl interface for /dev/clp
0004  *
0005  * Copyright IBM Corp. 2016
0006  * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
0007  */
0008 
0009 #ifndef _ASM_CLP_H
0010 #define _ASM_CLP_H
0011 
0012 #include <linux/types.h>
0013 #include <linux/ioctl.h>
0014 
0015 struct clp_req {
0016     unsigned int c : 1;
0017     unsigned int r : 1;
0018     unsigned int lps : 6;
0019     unsigned int cmd : 8;
0020     unsigned int : 16;
0021     unsigned int reserved;
0022     __u64 data_p;
0023 };
0024 
0025 #define CLP_IOCTL_MAGIC 'c'
0026 
0027 #define CLP_SYNC _IOWR(CLP_IOCTL_MAGIC, 0xC1, struct clp_req)
0028 
0029 #endif