Module Name:    src
Committed By:   knakahara
Date:           Wed Apr 12 05:08:00 UTC 2017

Modified Files:
        src/sys/dev/pci: if_wm.c

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

pointed out by msaitoh@n.o.


To generate a diff of this commit:
cvs rdiff -u -r1.506 -r1.507 src/sys/dev/pci/if_wm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_wm.c
diff -u src/sys/dev/pci/if_wm.c:1.506 src/sys/dev/pci/if_wm.c:1.507
--- src/sys/dev/pci/if_wm.c:1.506	Wed Apr  5 10:44:35 2017
+++ src/sys/dev/pci/if_wm.c	Wed Apr 12 05:08:00 2017
@@ -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 @@ struct wm_softc {
 
 	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] only
+					 * msix use sc_intrs[0] to sc_ihs[nintrs-1]
 					 */
-	pci_intr_handle_t *sc_intrs;	/* legacy and msi use sc_intrs[0] */
 	int sc_nintrs;			/* number of interrupts */
 
 	int sc_link_intr_idx;		/* index of MSI-X tables */

Reply via email to