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