On Thu Aug 21, 2025 at 6:42 AM CEST, John Hubbard wrote: > 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::as_raw() > Class: From<u32> for Class > ClassMask: Full, ClassSubclass > Device::pci_class() > > Cc: Danilo Krummrich <dakr@xxxxxxxxxx> > Cc: Alexandre Courbot <acourbot@xxxxxxxxxx> > Cc: Elle Rhumsaa <elle@xxxxxxxxxxxxxxxxxxx> > Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx> > --- > rust/kernel/pci.rs | 10 ++ > rust/kernel/pci/id.rs | 239 ++++++++++++++++++++++++++++++++++++++++++ Please add rust/kernel/pci/ to the maintainers entry. (Would have done on apply, but I have another comment on patch 3.) > 2 files changed, 249 insertions(+) > create mode 100644 rust/kernel/pci/id.rs