18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2004, 2005
48c2ecf20Sopenharmony_ci * Interface implementation for communication with the z/VM control program
58c2ecf20Sopenharmony_ci * Version 1.0
68c2ecf20Sopenharmony_ci * Author(s): Christian Borntraeger <cborntra@de.ibm.com>
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * z/VMs CP offers the possibility to issue commands via the diagnose code 8
108c2ecf20Sopenharmony_ci * this driver implements a character device that issues these commands and
118c2ecf20Sopenharmony_ci * returns the answer of CP.
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * The idea of this driver is based on cpint from Neale Ferguson
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_VMCP_H
178c2ecf20Sopenharmony_ci#define _UAPI_ASM_VMCP_H
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#include <linux/ioctl.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define VMCP_GETCODE	_IOR(0x10, 1, int)
228c2ecf20Sopenharmony_ci#define VMCP_SETBUF	_IOW(0x10, 2, int)
238c2ecf20Sopenharmony_ci#define VMCP_GETSIZE	_IOR(0x10, 3, int)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_VMCP_H */
26