]> 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, 13 Dec 2011 18:41:54 +0000 (10:41 -0800)
commit2efa1807f9ac543b0b8488f09e8361d60318cc23
tree74cbcd0687f41a3ed4010dbaff00d3b343bc9417
parent6b98003ac32c3ea0d4ba5def7737353a058708cb
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