1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
3 * IOCTLs for Remoteproc's character device interface.
5 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
8 #ifndef _UAPI_REMOTEPROC_CDEV_H_
9 #define _UAPI_REMOTEPROC_CDEV_H_
11 #include <linux/ioctl.h>
12 #include <linux/types.h>
14 #define RPROC_MAGIC 0xB7
17 * The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the shutdown of a remote
18 * processor automatically when the controlling userpsace closes the char device interface.
20 * input parameter: integer
21 * 0 : disable automatic shutdown
22 * other : enable automatic shutdown
24 #define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, __s32)
27 * The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about whether the automatic shutdown of
28 * a remote processor is enabled or disabled when the controlling userspace closes the char device
31 * output parameter: integer
32 * 0 : automatic shutdown disable
33 * other : automatic shutdown enable
35 #define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32)