remoteproc_cdev.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef _UAPI_REMOTEPROC_CDEV_H_
  8. #define _UAPI_REMOTEPROC_CDEV_H_
  9. #include <linux/ioctl.h>
  10. #include <linux/types.h>
  11. #define RPROC_MAGIC 0xB7
  12. /*
  13. * The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the shutdown of a remote
  14. * processor automatically when the controlling userpsace closes the char device interface.
  15. *
  16. * input parameter: integer
  17. * 0 : disable automatic shutdown
  18. * other : enable automatic shutdown
  19. */
  20. #define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, __s32)
  21. /*
  22. * The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about whether the automatic shutdown of
  23. * a remote processor is enabled or disabled when the controlling userspace closes the char device
  24. * interface.
  25. *
  26. * output parameter: integer
  27. * 0 : automatic shutdown disable
  28. * other : automatic shutdown enable
  29. */
  30. #define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32)
  31. #endif