diff options
author | John Hubbard <jhubbard@nvidia.com> | 2025-08-29 15:36:27 -0700 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-09-01 19:58:44 +0200 |
commit | ed78a01887e2257cff0412b640db68b70a2654dc (patch) | |
tree | 057f0225a3f29ee9be68dc7f68acfd59eb55e596 /samples/rust/rust_dma.rs | |
parent | b71763a0a3305b685e0378b7f7a4c4c16d4c66ba (diff) |
rust: pci: provide access to PCI Class and Class-related items
Allow callers to write Class::STORAGE_SCSI instead of
bindings::PCI_CLASS_STORAGE_SCSI, for example.
New APIs:
Class::STORAGE_SCSI, Class::NETWORK_ETHERNET, etc.
Class::from_raw() -- Only callable from pci module.
Class::as_raw()
ClassMask: Full, ClassSubclass
Device::pci_class()
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Elle Rhumsaa <elle@weathered-steel.dev>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://lore.kernel.org/r/20250829223632.144030-2-jhubbard@nvidia.com
[ Minor doc-comment improvements, align Debug and Display. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples/rust/rust_dma.rs')
0 files changed, 0 insertions, 0 deletions