mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
37 lines
No EOL
1.1 KiB
C
Vendored
37 lines
No EOL
1.1 KiB
C
Vendored
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
|
/*
|
|
* IOCTLs for Remoteproc's character device interface.
|
|
*
|
|
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _REMOTEPROC_CDEV_H_
|
|
#define _REMOTEPROC_CDEV_H_
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
#define RPROC_MAGIC 0xB7
|
|
|
|
/*
|
|
* The RPROC_SET_SHUTDOWN_ON_RELEASE ioctl allows to enable/disable the shutdown of a remote
|
|
* processor automatically when the controlling userpsace closes the char device interface.
|
|
*
|
|
* input parameter: integer
|
|
* 0 : disable automatic shutdown
|
|
* other : enable automatic shutdown
|
|
*/
|
|
#define RPROC_SET_SHUTDOWN_ON_RELEASE _IOW(RPROC_MAGIC, 1, __s32)
|
|
|
|
/*
|
|
* The RPROC_GET_SHUTDOWN_ON_RELEASE ioctl gets information about whether the automatic shutdown of
|
|
* a remote processor is enabled or disabled when the controlling userspace closes the char device
|
|
* interface.
|
|
*
|
|
* output parameter: integer
|
|
* 0 : automatic shutdown disable
|
|
* other : automatic shutdown enable
|
|
*/
|
|
#define RPROC_GET_SHUTDOWN_ON_RELEASE _IOR(RPROC_MAGIC, 2, __s32)
|
|
|
|
#endif |