aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pcieport_if.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2009-01-13 08:39:39 -0500
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 22:29:21 -0400
commit90e9cd50f7feeddc911325c8a8c1b7e1fccc6599 (patch)
tree4a9536daa4ea8e8b96be4cb20f93ea6237663144 /include/linux/pcieport_if.h
parent1bf83e558cb29d163f4bc6decbc3800ecf4db195 (diff)
PCI: PCIe portdrv: Aviod using service devices with wrong interrupts
The PCI Express port driver should not attempt to register service devices that require the ability to generate interrupts if generating interrupts is not possible. Namely, if the port has no interrupt pin configured and we cannot set up MSI or MSI-X for it, there is no way it can generate interrupts and in such a case the port services that rely on interrupts (PME, PCIe HP, AER) should not be enabled for it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pcieport_if.h')
-rw-r--r--include/linux/pcieport_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h
index 194409af1037..8e1ae1fd92f6 100644
--- a/include/linux/pcieport_if.h
+++ b/include/linux/pcieport_if.h
@@ -22,6 +22,7 @@
22#define PCIE_PORT_SERVICE_VC 8 /* Virtual Channel */ 22#define PCIE_PORT_SERVICE_VC 8 /* Virtual Channel */
23 23
24/* Root/Upstream/Downstream Port's Interrupt Mode */ 24/* Root/Upstream/Downstream Port's Interrupt Mode */
25#define PCIE_PORT_NO_IRQ (-1)
25#define PCIE_PORT_INTx_MODE 0 26#define PCIE_PORT_INTx_MODE 0
26#define PCIE_PORT_MSI_MODE 1 27#define PCIE_PORT_MSI_MODE 1
27#define PCIE_PORT_MSIX_MODE 2 28#define PCIE_PORT_MSIX_MODE 2