]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 6 Dec 2011 17:26:10 +0000 (09:26 -0800)
commit63aa98224af9545a2d657ecce6cb480f8705f0d7
tree6fa527f9eaa4dfa63f1374dfe648a3d56ab03e8c
parent6c03c7b748b605b0c1de57eb454ddc8dad83e4ef
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