-
- Downloads
rust: platform: add basic platform device / driver abstractions
Implement the basic platform bus abstractions required to write a basic platform driver. This includes the following data structures: The `platform::Driver` trait represents the interface to the driver and provides `platform::Driver::probe` for the driver to implement. The `platform::Device` abstraction represents a `struct platform_device`. In order to provide the platform bus specific parts to a generic `driver::Registration` the `driver::RegistrationOps` trait is implemented by `platform::Adapter`. Reviewed-by:Rob Herring (Arm) <robh@kernel.org> Signed-off-by:
Danilo Krummrich <dakr@kernel.org>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- rust/bindings/bindings_helper.h 1 addition, 0 deletionsrust/bindings/bindings_helper.h
- rust/helpers/helpers.c 1 addition, 0 deletionsrust/helpers/helpers.c
- rust/helpers/platform.c 13 additions, 0 deletionsrust/helpers/platform.c
- rust/kernel/lib.rs 1 addition, 0 deletionsrust/kernel/lib.rs
- rust/kernel/platform.rs 198 additions, 0 deletionsrust/kernel/platform.rs
Loading
Please register or sign in to comment