diff options
| author | Asahi Lina <lina@asahilina.net> | 2025-04-11 01:55:23 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-04-24 14:00:10 +0200 |
| commit | 1e4b8896c0f3cb305a32870e1d8624f1155072d5 (patch) | |
| tree | 842570e25acc47731100c077243a4656e01b4818 /rust/bindings/bindings_helper.h | |
| parent | 07c9016085f95fe9ad90079753f156859c54f476 (diff) | |
rust: drm: add device abstraction
Implement the abstraction for a `struct drm_device`.
A `drm::Device` creates a static const `struct drm_driver` filled with
the data from the `drm::Driver` trait implementation of the actual
driver creating the `drm::Device`.
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250410235546.43736-5-dakr@kernel.org
[ Rewrite of drm::Device
* full rewrite of the drm::Device abstraction using the subclassing
pattern
* original source archive: http://archive.today/5NxBo
- Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/bindings/bindings_helper.h')
| -rw-r--r-- | rust/bindings/bindings_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h index a647fcc3d4a4..280d3c3159c9 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -6,6 +6,7 @@ * Sorted alphabetically. */ +#include <drm/drm_device.h> #include <drm/drm_drv.h> #include <drm/drm_ioctl.h> #include <kunit/test.h> |