Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/cxgb use pci_intr_establish_xname()



details:   https://anonhg.NetBSD.org/src/rev/47982c33a06a
branches:  trunk
changeset: 446522:47982c33a06a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Dec 09 11:49:06 2018 +0000

description:
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?

diffstat:

 sys/dev/pci/cxgb/cxgb_main.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 6be853672b39 -r 47982c33a06a sys/dev/pci/cxgb/cxgb_main.c
--- a/sys/dev/pci/cxgb/cxgb_main.c      Sun Dec 09 11:22:35 2018 +0000
+++ b/sys/dev/pci/cxgb/cxgb_main.c      Sun Dec 09 11:49:06 2018 +0000
@@ -28,7 +28,7 @@
 ***************************************************************************/
 
 #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 @@
         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 @@
             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");



Home | Main Index | Thread Index | Old Index