xref: /OK3568_Linux_fs/kernel/arch/s390/include/uapi/asm/vmcp.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright IBM Corp. 2004, 2005
4*4882a593Smuzhiyun  * Interface implementation for communication with the z/VM control program
5*4882a593Smuzhiyun  * Version 1.0
6*4882a593Smuzhiyun  * Author(s): Christian Borntraeger <cborntra@de.ibm.com>
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * z/VMs CP offers the possibility to issue commands via the diagnose code 8
10*4882a593Smuzhiyun  * this driver implements a character device that issues these commands and
11*4882a593Smuzhiyun  * returns the answer of CP.
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * The idea of this driver is based on cpint from Neale Ferguson
14*4882a593Smuzhiyun  */
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #ifndef _UAPI_ASM_VMCP_H
17*4882a593Smuzhiyun #define _UAPI_ASM_VMCP_H
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #include <linux/ioctl.h>
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #define VMCP_GETCODE	_IOR(0x10, 1, int)
22*4882a593Smuzhiyun #define VMCP_SETBUF	_IOW(0x10, 2, int)
23*4882a593Smuzhiyun #define VMCP_GETSIZE	_IOR(0x10, 3, int)
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif /* _UAPI_ASM_VMCP_H */
26