Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rust: pci: refer to legacy as INTx interrupts

Consistently use INTx, as in the description of IrqType::Intx, to refer
to the four legacy PCI interrupts, INTA#, INTB#, INTC#, and INTD#.

Link: https://lore.kernel.org/rust-for-linux/20251015230209.GA960343@bhelgaas/
Link: https://github.com/Rust-for-Linux/linux/issues/1196
Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Peter Colberg <pcolberg@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Peter Colberg and committed by
Danilo Krummrich
c7f6d538 6d0ef689

+5 -5
+5 -5
rust/kernel/pci/irq.rs
··· 42 42 pub struct IrqTypes(u32); 43 43 44 44 impl IrqTypes { 45 - /// Create a set containing all IRQ types (MSI-X, MSI, and Legacy). 45 + /// Create a set containing all IRQ types (MSI-X, MSI, and INTx). 46 46 pub const fn all() -> Self { 47 47 Self(bindings::PCI_IRQ_ALL_TYPES) 48 48 } ··· 52 52 /// # Examples 53 53 /// 54 54 /// ```ignore 55 - /// // Create a set with only MSI and MSI-X (no legacy interrupts). 55 + /// // Create a set with only MSI and MSI-X (no INTx interrupts). 56 56 /// let msi_only = IrqTypes::default() 57 57 /// .with(IrqType::Msi) 58 58 /// .with(IrqType::MsiX); ··· 199 199 /// Allocate IRQ vectors for this PCI device with automatic cleanup. 200 200 /// 201 201 /// Allocates between `min_vecs` and `max_vecs` interrupt vectors for the device. 202 - /// The allocation will use MSI-X, MSI, or legacy interrupts based on the `irq_types` 202 + /// The allocation will use MSI-X, MSI, or INTx interrupts based on the `irq_types` 203 203 /// parameter and hardware capabilities. When multiple types are specified, the kernel 204 - /// will try them in order of preference: MSI-X first, then MSI, then legacy interrupts. 204 + /// will try them in order of preference: MSI-X first, then MSI, then INTx interrupts. 205 205 /// 206 206 /// The allocated vectors are automatically freed when the device is unbound, using the 207 207 /// devres (device resource management) system. ··· 225 225 /// // Allocate using any available interrupt type in the order mentioned above. 226 226 /// let vectors = dev.alloc_irq_vectors(1, 32, pci::IrqTypes::all())?; 227 227 /// 228 - /// // Allocate MSI or MSI-X only (no legacy interrupts). 228 + /// // Allocate MSI or MSI-X only (no INTx interrupts). 229 229 /// let msi_only = pci::IrqTypes::default() 230 230 /// .with(pci::IrqType::Msi) 231 231 /// .with(pci::IrqType::MsiX);