Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Fix PR kern/55920 . Add pci_msi_count() and ...



details:   https://anonhg.NetBSD.org/src/rev/4081911e50ed
branches:  trunk
changeset: 1017851:4081911e50ed
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Tue Jan 12 05:08:50 2021 +0000

description:
Fix PR kern/55920 .  Add pci_msi_count() and pci_msix_count() description.

diffstat:

 share/man/man9/pci_msi.9 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 434ef35e0b46 -r 4081911e50ed share/man/man9/pci_msi.9
--- a/share/man/man9/pci_msi.9  Mon Jan 11 22:02:28 2021 +0000
+++ b/share/man/man9/pci_msi.9  Tue Jan 12 05:08:50 2021 +0000
@@ -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.18 2021/01/12 05:08:50 knakahara 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 @@
 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 *



Home | Main Index | Thread Index | Old Index