summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2021-01-15 17:46:40 +0000
committermartin <martin@NetBSD.org>2021-01-15 17:46:40 +0000
commit73d54b79bea15a9fbf9d79a3df93350aa7821af5 (patch)
treed0348b74e748cfdc092b1d0a10d1bde982c0f114 /share
parent82701929fdd858ec257e6fbad47a72347b62b075 (diff)
Pull up following revision(s) (requested by knakahara in ticket #1185):
share/man/man9/pci_msi.9: revision 1.18 Fix PR kern/55920 . Add pci_msi_count() and pci_msix_count() description.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/pci_msi.912
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man9/pci_msi.9 b/share/man/man9/pci_msi.9
index 76eb7d078f7..6dac7fb1b6f 100644
--- a/share/man/man9/pci_msi.9
+++ b/share/man/man9/pci_msi.9
@@ -1,4 +1,4 @@
-.\" $NetBSD: pci_msi.9,v 1.17 2018/11/27 20:13:43 jdolecek Exp $
+.\" $NetBSD: pci_msi.9,v 1.17.2.1 2021/01/15 17:46:40 martin Exp $
.\"
.\" Copyright (c) 2015 Internet Initiative Japan Inc.
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd November 27, 2018
+.Dd January 12, 2021
.Dt PCI_MSI 9
.Os
.Sh NAME
@@ -96,6 +96,14 @@ which contains, among other things, information about the location
of the device in the PCI bus topology sufficient to allow interrupts
from the device to be handled.
.Pp
+.Fn pci_msi_count
+returns the max number of the device's MSI.
+If the device can not use MSI,
+.Fn pci_msi_count
+returns zero.
+.Fn pci_msix_count
+works in the same manner for MSI-X.
+.Pp
If a driver wishes to establish an MSI handler for the device,
it should pass the
.Ft struct pci_attach_args *