]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Introduce INTx check & mask API
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 4 Nov 2011 08:46:00 +0000 (09:46 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Jan 2012 20:10:34 +0000 (12:10 -0800)
commitb0ca0c60381851835a4e5195036d8ed520c22828
treeb7398b80a56b1e25e4758dfc9ed2af2df27458f3
parent4ed84ab945acd2712375f91a40ca6887ef4aa33e
PCI: Introduce INTx check & mask API

These new PCI services allow to probe for 2.3-compliant INTx masking
support and then use the feature from PCI interrupt handlers. The
services are properly synchronized with concurrent config space access
via sysfs or on device reset.

This enables generic PCI device drivers like uio_pci_generic or KVM's
device assignment to implement the necessary kernel-side IRQ handling
without any knowledge about device-specific interrupt status and control
registers.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/access.c
drivers/pci/pci.c
drivers/pci/pci.h
include/linux/pci.h