]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Documentation: PCI: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 25 Mar 2024 07:09:14 +0000 (16:09 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Apr 2024 17:53:29 +0000 (12:53 -0500)
Change all references to PCI_IRQ_LEGACY to PCI_IRQ_INTX in the PCI
documentation to reflect that PCI_IRQ_LEGACY is deprecated.

Link: https://lore.kernel.org/r/20240325070944.3600338-4-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/PCI/msi-howto.rst
Documentation/PCI/pci.rst
Documentation/translations/zh_CN/PCI/msi-howto.rst
Documentation/translations/zh_CN/PCI/pci.rst

index 783d30b7bb428ac52ea10de79610fe28dfe6bab0..0692c9aec66fd48cb3d35af20d44b55101c2bcc8 100644 (file)
@@ -103,7 +103,7 @@ min_vecs argument set to this limit, and the PCI core will return -ENOSPC
 if it can't meet the minimum number of vectors.
 
 The flags argument is used to specify which type of interrupt can be used
-by the device and the driver (PCI_IRQ_LEGACY, PCI_IRQ_MSI, PCI_IRQ_MSIX).
+by the device and the driver (PCI_IRQ_INTX, PCI_IRQ_MSI, PCI_IRQ_MSIX).
 A convenient short-hand (PCI_IRQ_ALL_TYPES) is also available to ask for
 any possible kind of interrupt.  If the PCI_IRQ_AFFINITY flag is set,
 pci_alloc_irq_vectors() will spread the interrupts around the available CPUs.
index cced568d78e9a12f8eed629152f34d1ceb216fe6..dd7b1c0c21da020e218b94d57a09bf78917d4f41 100644 (file)
@@ -335,7 +335,7 @@ causes the PCI support to program CPU vector data into the PCI device
 capability registers. Many architectures, chip-sets, or BIOSes do NOT
 support MSI or MSI-X and a call to pci_alloc_irq_vectors with just
 the PCI_IRQ_MSI and PCI_IRQ_MSIX flags will fail, so try to always
-specify PCI_IRQ_LEGACY as well.
+specify PCI_IRQ_INTX as well.
 
 Drivers that have different interrupt handlers for MSI/MSI-X and
 legacy INTx should chose the right one based on the msi_enabled
index 1b9b5ea790d8496c276b7404832d9ba4cad0235d..95baadf767e437d939c512470250fd07efef9333 100644 (file)
@@ -88,7 +88,7 @@ MSI功能。
 如果设备对最小数量的向量有要求,驱动程序可以传递一个min_vecs参数,设置为这个限制,
 如果PCI核不能满足最小数量的向量,将返回-ENOSPC。
 
-flags参数用来指定设备和驱动程序可以使用哪种类型的中断(PCI_IRQ_LEGACY, PCI_IRQ_MSI,
+flags参数用来指定设备和驱动程序可以使用哪种类型的中断(PCI_IRQ_INTX, PCI_IRQ_MSI,
 PCI_IRQ_MSIX)。一个方便的短语(PCI_IRQ_ALL_TYPES)也可以用来要求任何可能的中断类型。
 如果PCI_IRQ_AFFINITY标志被设置,pci_alloc_irq_vectors()将把中断分散到可用的CPU上。
 
index 83c2a41d38d30cb7c2c45bc8eac307ef1dae654c..347f5c3f5ce99bade1221f083b208972baf102ec 100644 (file)
@@ -304,7 +304,7 @@ MSI-X可以分配几个单独的向量。
 的PCI_IRQ_MSI和/或PCI_IRQ_MSIX标志来启用MSI功能。这将导致PCI支持将CPU向量数
 据编程到PCI设备功能寄存器中。许多架构、芯片组或BIOS不支持MSI或MSI-X,调用
 ``pci_alloc_irq_vectors`` 时只使用PCI_IRQ_MSI和PCI_IRQ_MSIX标志会失败,
-所以尽量也要指定 ``PCI_IRQ_LEGACY`` 。
+所以尽量也要指定 ``PCI_IRQ_INTX`` 。
 
 对MSI/MSI-X和传统INTx有不同中断处理程序的驱动程序应该在调用
 ``pci_alloc_irq_vectors`` 后根据 ``pci_dev``结构体中的 ``msi_enabled``