Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
0002 /*
0003  * IOCTLs for Remoteproc's character device interface.
0004  *
0005  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
0006  */
0007 
0008 #ifndef _UAPI_REMOTEPROC_CDEV_H_
0009 #define _UAPI_REMOTEPROC_CDEV_H_
0010 
0011 #include <linux/ioctl.h>
0012 #include <linux/types.h>
0013 
0014 #define RPROC_MAGIC 0xB7
0015 
0016 /*
0017  * The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the shutdown of a remote
0018  * processor automatically when the controlling userpsace closes the char device interface.
0019  *
0020  * input parameter: integer
0021  *   0      : disable automatic shutdown
0022  *   other  : enable automatic shutdown
0023  */
0024 #define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, __s32)
0025 
0026 /*
0027  * The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about whether the automatic shutdown of
0028  * a remote processor is enabled or disabled when the controlling userspace closes the char device
0029  * interface.
0030  *
0031  * output parameter: integer
0032  *   0      : automatic shutdown disable
0033  *   other  : automatic shutdown enable
0034  */
0035 #define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32)
0036 
0037 #endif