[PATCH v3 01/23] PCI: Add SNIA SDXI accelerator sub-class
From: Nathan Lynch via B4 Relay
Date: Fri Jun 05 2026 - 20:02:41 EST
From: Nathan Lynch <nathan.lynch@xxxxxxx>
Make the class code for SNIA Smart Data Accelerator Interface (SDXI)
functions available to both C and Rust code.
See PCI Code and ID Assignment spec r1.14, sec 1.19.
Co-developed-by: Wei Huang <wei.huang2@xxxxxxx>
Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
Signed-off-by: Nathan Lynch <nathan.lynch@xxxxxxx>
---
include/linux/pci_ids.h | 1 +
rust/kernel/pci/id.rs | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 24cb42f66e4b..83ab3f27eb5a 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -154,6 +154,7 @@
#define PCI_BASE_CLASS_ACCELERATOR 0x12
#define PCI_CLASS_ACCELERATOR_PROCESSING 0x1200
+#define PCI_CLASS_ACCELERATOR_SDXI 0x120100
#define PCI_CLASS_OTHERS 0xff
diff --git a/rust/kernel/pci/id.rs b/rust/kernel/pci/id.rs
index 50005d176561..d5e006cd6641 100644
--- a/rust/kernel/pci/id.rs
+++ b/rust/kernel/pci/id.rs
@@ -292,6 +292,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
SP_OTHER = bindings::PCI_CLASS_SP_OTHER, // 0x118000
ACCELERATOR_PROCESSING = bindings::PCI_CLASS_ACCELERATOR_PROCESSING, // 0x120000
+ ACCELERATOR_SDXI = bindings::PCI_CLASS_ACCELERATOR_SDXI, // 0x120100
OTHERS = bindings::PCI_CLASS_OTHERS, // 0xff0000
}
--
2.54.0