Module Name:    src
Committed By:   jdolecek
Date:           Sun Dec  9 11:49:07 UTC 2018

Modified Files:
        src/sys/dev/pci/cxgb: cxgb_main.c

Log Message:
use pci_intr_establish_xname()

XXX due to 2008-01-17 '10 gigabit Chelsio cards now compile and work, although
XXX not very well yet' commit this looks like having worked in past, but since
XXX ~2010 received only mechanical updates, and currently it's unreferenced
XXX and uncompilable - does it make sense to keep the driver around?


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/cxgb/cxgb_main.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/cxgb/cxgb_main.c
diff -u src/sys/dev/pci/cxgb/cxgb_main.c:1.6 src/sys/dev/pci/cxgb/cxgb_main.c:1.7
--- src/sys/dev/pci/cxgb/cxgb_main.c:1.6	Mon Sep  3 16:29:32 2018
+++ src/sys/dev/pci/cxgb/cxgb_main.c	Sun Dec  9 11:49:06 2018
@@ -28,7 +28,7 @@ POSSIBILITY OF SUCH DAMAGE.
 ***************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cxgb_main.c,v 1.6 2018/09/03 16:29:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cxgb_main.c,v 1.7 2018/12/09 11:49:06 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -640,8 +640,8 @@ cxgb_setup_msix(adapter_t *sc, int msix_
         printf("cxgb_setup_msix(%d): pci_intr_map() failed\n", __LINE__);
         return (EINVAL);
     }
-    sc->intr_cookie = pci_intr_establish(sc->pa.pa_pc, sc->intr_handle,
-                        IPL_NET, cxgb_async_intr, sc);
+    sc->intr_cookie = pci_intr_establish_xname(sc->pa.pa_pc, sc->intr_handle,
+                        IPL_NET, cxgb_async_intr, sc, device_xname(sc->dev));
     if (sc->intr_cookie == NULL)
     {
         printf("cxgb_setup_msix(%d): pci_intr_establish() failed\n", __LINE__);
@@ -1124,9 +1124,9 @@ cxgb_up(struct adapter *sc)
             goto out;
         }
         device_printf(sc->dev, "allocated intr_handle=%d\n", sc->intr_handle);
-        sc->intr_cookie = pci_intr_establish(sc->pa.pa_pc,
+        sc->intr_cookie = pci_intr_establish_xname(sc->pa.pa_pc,
                     sc->intr_handle, IPL_NET,
-                    sc->cxgb_intr, sc);
+                    sc->cxgb_intr, sc, device_xname(sc->dev));
         if (sc->intr_cookie == NULL)
         {
             device_printf(sc->dev, "Cannot establish interrupt\n");

Reply via email to