summaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_loader
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2024-06-18 17:48:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-18 18:45:12 +0200
commitde6582833db0e695ba0c548e3cc2ad7dbb6aa260 (patch)
treeb17747cb2071f35ab705eef8385ad1c485cad6ac /drivers/base/firmware_loader
parentrust: add abstraction for struct device (diff)
downloadlinux-de6582833db0e695ba0c548e3cc2ad7dbb6aa260.tar.xz
linux-de6582833db0e695ba0c548e3cc2ad7dbb6aa260.zip
rust: add firmware abstractions
Add an abstraction around the kernels firmware API to request firmware images. The abstraction provides functions to access the firmware's size and backing buffer. The firmware is released once the abstraction instance is dropped. Signed-off-by: Danilo Krummrich <dakr@redhat.com> Acked-by: Boqun Feng <boqun.feng@gmail.com> Link: https://lore.kernel.org/r/20240618154841.6716-3-dakr@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader')
-rw-r--r--drivers/base/firmware_loader/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/base/firmware_loader/Kconfig b/drivers/base/firmware_loader/Kconfig
index 5ca00e02fe82..a03701674265 100644
--- a/drivers/base/firmware_loader/Kconfig
+++ b/drivers/base/firmware_loader/Kconfig
@@ -37,6 +37,13 @@ config FW_LOADER_DEBUG
SHA256 checksums to the kernel log for each firmware file that is
loaded.
+config RUST_FW_LOADER_ABSTRACTIONS
+ bool "Rust Firmware Loader abstractions"
+ depends on RUST
+ depends on FW_LOADER=y
+ help
+ This enables the Rust abstractions for the firmware loader API.
+
if FW_LOADER
config FW_LOADER_PAGED_BUF