PCI/MSI: Add pci_msi_vec_count()
authorAlexander Gordeev <agordeev@redhat.com>
Mon, 30 Dec 2013 07:28:13 +0000 (08:28 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 4 Jan 2014 00:17:55 +0000 (17:17 -0700)
commitd1ac1d2622e8f0fd2a25127a8649d135b54db8a9
tree9b267fa3c5d97fc9c6c65877a9d493d407258abe
parent52179dc9edc3b7a2b3bb01cbb1b6c96f6d05fc73
PCI/MSI: Add pci_msi_vec_count()

Device drivers can use this interface to obtain the maximum number of MSI
interrupts the device supports and use that number, e.g., in a subsequent
call to pci_enable_msi_block().

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Documentation/PCI/MSI-HOWTO.txt
drivers/pci/msi.c
include/linux/pci.h