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 0xB7 |
15 | |
16 | /* |
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. |
19 | * |
20 | * input parameter: integer |
21 | * 0 : disable automatic shutdown |
22 | * other : enable automatic shutdown |
23 | */ |
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 of |
28 | * a remote processor is enabled or disabled when the controlling userspace closes the char device |
29 | * interface. |
30 | * |
31 | * output parameter: integer |
32 | * 0 : automatic shutdown disable |
33 | * other : automatic shutdown enable |
34 | */ |
35 | #define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32) |
36 | |
37 | #endif |
38 | |