Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci improve comments about the difference between le...



details:   https://anonhg.NetBSD.org/src/rev/0948688b7fb7
branches:  trunk
changeset: 823088:0948688b7fb7
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Apr 12 05:08:00 2017 +0000

description:
improve comments about the difference between legacy/msi and msix.

pointed out by msaitoh@n.o.

diffstat:

 sys/dev/pci/if_wm.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 4087d2cf7b73 -r 0948688b7fb7 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Wed Apr 12 00:39:28 2017 +0000
+++ b/sys/dev/pci/if_wm.c       Wed Apr 12 05:08:00 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.506 2017/04/05 10:44:35 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.507 2017/04/12 05:08:00 knakahara Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.506 2017/04/05 10:44:35 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.507 2017/04/12 05:08:00 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -477,9 +477,13 @@
 
        void *sc_ihs[WM_MAX_NINTR];     /*
                                         * interrupt cookie.
-                                        * legacy and msi use sc_ihs[0].
+                                        * - legacy and msi use sc_ihs[0] only
+                                        * - msix use sc_ihs[0] to sc_ihs[nintrs-1]
                                         */
-       pci_intr_handle_t *sc_intrs;    /* legacy and msi use sc_intrs[0] */
+       pci_intr_handle_t *sc_intrs;    /*
+                                        * legacy and msi use sc_intrs[0] only
+                                        * msix use sc_intrs[0] to sc_ihs[nintrs-1]
+                                        */
        int sc_nintrs;                  /* number of interrupts */
 
        int sc_link_intr_idx;           /* index of MSI-X tables */



Home | Main Index | Thread Index | Old Index