diff options
| author | Danilo Krummrich <[email protected]> | 2024-12-19 17:04:13 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-20 16:21:04 +0000 |
| commit | 685376d18e9ae2f08ab6ac36285dc3a949c8cb77 (patch) | |
| tree | 37ff04dfc900d2babec8d8771423d46dfa693bf4 /rust/helpers/helpers.c | |
| parent | rust: pci: implement I/O mappable `pci::Bar` (diff) | |
| download | kernel-685376d18e9ae2f08ab6ac36285dc3a949c8cb77.tar.gz kernel-685376d18e9ae2f08ab6ac36285dc3a949c8cb77.zip | |
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 <[email protected]>
Tested-by: Dirk Behme <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
