162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright IBM Corp. 2004, 2005
462306a36Sopenharmony_ci * Interface implementation for communication with the z/VM control program
562306a36Sopenharmony_ci * Version 1.0
662306a36Sopenharmony_ci * Author(s): Christian Borntraeger <cborntra@de.ibm.com>
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * z/VMs CP offers the possibility to issue commands via the diagnose code 8
1062306a36Sopenharmony_ci * this driver implements a character device that issues these commands and
1162306a36Sopenharmony_ci * returns the answer of CP.
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci * The idea of this driver is based on cpint from Neale Ferguson
1462306a36Sopenharmony_ci */
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#ifndef _UAPI_ASM_VMCP_H
1762306a36Sopenharmony_ci#define _UAPI_ASM_VMCP_H
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#include <linux/ioctl.h>
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#define VMCP_GETCODE	_IOR(0x10, 1, int)
2262306a36Sopenharmony_ci#define VMCP_SETBUF	_IOW(0x10, 2, int)
2362306a36Sopenharmony_ci#define VMCP_GETSIZE	_IOR(0x10, 3, int)
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#endif /* _UAPI_ASM_VMCP_H */
26