38 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */2/*3 * IOCTLs for Remoteproc's character device interface.4 *5 * Copyright (c) 2020, The Linux Foundation. All rights reserved.6 */7 8#ifndef _UAPI_REMOTEPROC_CDEV_H_9#define _UAPI_REMOTEPROC_CDEV_H_10 11#include <linux/ioctl.h>12#include <linux/types.h>13 14#define RPROC_MAGIC 0xB715 16/*17 * The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the shutdown of a remote18 * processor automatically when the controlling userpsace closes the char device interface.19 *20 * input parameter: integer21 * 0 : disable automatic shutdown22 * other : enable automatic shutdown23 */24#define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, __s32)25 26/*27 * The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about whether the automatic shutdown of28 * a remote processor is enabled or disabled when the controlling userspace closes the char device29 * interface.30 *31 * output parameter: integer32 * 0 : automatic shutdown disable33 * other : automatic shutdown enable34 */35#define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32)36 37#endif38