linux/samples/rust
Danilo Krummrich 685376d18e samples: rust: add Rust PCI sample driver
This commit adds a sample Rust PCI driver for QEMU's "pci-testdev"
device. To enable this device QEMU has to be called with
`-device pci-testdev`.

The same driver shows how to use the PCI device / driver abstractions,
as well as how to request and map PCI BARs, including a short sequence of
MMIO operations.

Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Tested-by: Dirk Behme <dirk.behme@de.bosch.com>
Link: https://lore.kernel.org/r/20241219170425.12036-12-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-20 17:21:04 +01:00
..
hostprogs samples: add first Rust examples 2022-09-28 09:03:08 +02:00
Kconfig samples: rust: add Rust PCI sample driver 2024-12-20 17:21:04 +01:00
Makefile samples: rust: add Rust PCI sample driver 2024-12-20 17:21:04 +01:00
rust_driver_pci.rs samples: rust: add Rust PCI sample driver 2024-12-20 17:21:04 +01:00
rust_minimal.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
rust_misc_device.rs samples: rust_misc_device: Provide an example C program to exercise functionality 2024-12-16 16:12:56 +01:00
rust_print_events.c rust: samples: add tracepoint to Rust sample 2024-11-04 16:21:44 -05:00
rust_print_main.rs Rust changes for v6.13 2024-11-26 14:00:26 -08:00