summaryrefslogtreecommitdiff
path: root/rust/uapi/uapi_helper.h
diff options
context:
space:
mode:
authorAsahi Lina <lina@asahilina.net>2023-02-05 20:42:15 +0900
committerDanilo Krummrich <dakr@kernel.org>2024-10-22 22:55:10 +0200
commit370a36f1198b9e6ffce9dada51e0f530d6dc4739 (patch)
treece9f01c319490dac8974402d5c94b154ac3f95ae /rust/uapi/uapi_helper.h
parentd47199430835aaf2bc27cfc0b8893820a6137eda (diff)
rust: drm: ioctl: Add DRM ioctl abstraction
DRM drivers need to be able to declare which driver-specific ioctls they support. Add an abstraction implementing the required types and a helper macro to generate the ioctl definition inside the DRM driver. Note that this macro is not usable until further bits of the abstraction are in place (but it will not fail to compile on its own, if not called). Signed-off-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/uapi/uapi_helper.h')
-rw-r--r--rust/uapi/uapi_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/uapi/uapi_helper.h b/rust/uapi/uapi_helper.h
index 76d3f103e764..19587e55e604 100644
--- a/rust/uapi/uapi_helper.h
+++ b/rust/uapi/uapi_helper.h
@@ -7,6 +7,7 @@
*/
#include <uapi/asm-generic/ioctl.h>
+#include <uapi/drm/drm.h>
#include <uapi/linux/mdio.h>
#include <uapi/linux/mii.h>
#include <uapi/linux/ethtool.h>