Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Update the module command-processing routine to ...



details:   https://anonhg.NetBSD.org/src/rev/f04fc20ad577
branches:  trunk
changeset: 768696:f04fc20ad577
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Aug 25 02:27:31 2011 +0000

description:
Update the module command-processing routine to match the ioconf files

diffstat:

 sys/dev/usb/if_axe.c |  16 ++++++++++------
 sys/dev/usb/if_rum.c |  12 ++++++------
 2 files changed, 16 insertions(+), 12 deletions(-)

diffs (86 lines):

diff -r 85ba1d461e6b -r f04fc20ad577 sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c      Thu Aug 25 02:07:38 2011 +0000
+++ b/sys/dev/usb/if_axe.c      Thu Aug 25 02:27:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axe.c,v 1.48 2011/08/23 12:53:29 pgoyette Exp $     */
+/*     $NetBSD: if_axe.c,v 1.49 2011/08/25 02:27:31 pgoyette Exp $     */
 /*     $OpenBSD: if_axe.c,v 1.96 2010/01/09 05:33:08 jsg Exp $ */
 
 /*
@@ -89,7 +89,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.48 2011/08/23 12:53:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.49 2011/08/25 02:27:31 pgoyette Exp $");
 
 #if defined(__NetBSD__)
 #ifndef _MODULE
@@ -212,6 +212,8 @@
 static void    axe_ax88178_init(struct axe_softc *);
 static void    axe_ax88772_init(struct axe_softc *);
 
+extern int usbdebug;   /* XXX */
+
 /* Get exclusive access to the MII registers */
 static void
 axe_lock_mii(struct axe_softc *sc)
@@ -1473,14 +1475,16 @@
        switch (cmd) {
        case MODULE_CMD_INIT:
 #ifdef _MODULE
-               error = config_init_component(cfdriver_ioconf_if_axe,
-                   cfattach_ioconf_if_axe, cfdata_ioconf_if_axe);
+               usbdebug++; /* XXX */
+               error = config_init_component(cfdriver_ioconf_axe,
+                   cfattach_ioconf_axe, cfdata_ioconf_axe);
+               usbdebug--; /* XXX */
 #endif
                return error;
        case MODULE_CMD_FINI:
 #ifdef _MODULE
-               error = config_fini_component(cfdriver_ioconf_if_axe,
-                   cfattach_ioconf_if_axe, cfdata_ioconf_if_axe);
+               error = config_fini_component(cfdriver_ioconf_axe,
+                   cfattach_ioconf_axe, cfdata_ioconf_axe);
 #endif
                return error;
        default:
diff -r 85ba1d461e6b -r f04fc20ad577 sys/dev/usb/if_rum.c
--- a/sys/dev/usb/if_rum.c      Thu Aug 25 02:07:38 2011 +0000
+++ b/sys/dev/usb/if_rum.c      Thu Aug 25 02:27:31 2011 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: if_rum.c,v 1.40 2006/09/18 16:20:20 damien Exp $      */
-/*     $NetBSD: if_rum.c,v 1.38 2011/08/23 12:53:29 pgoyette Exp $     */
+/*     $NetBSD: if_rum.c,v 1.39 2011/08/25 02:27:31 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.38 2011/08/23 12:53:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.39 2011/08/25 02:27:31 pgoyette Exp $");
 
 
 #include <sys/param.h>
@@ -2313,14 +2313,14 @@
        switch (cmd) {
        case MODULE_CMD_INIT:
 #ifdef _MODULE
-               error = config_init_component(cfdriver_ioconf_if_rum,
-                   cfattach_ioconf_if_rum, cfdata_ioconf_if_rum);
+               error = config_init_component(cfdriver_ioconf_rum,
+                   cfattach_ioconf_rum, cfdata_ioconf_rum);
 #endif
                return error;
        case MODULE_CMD_FINI:
 #ifdef _MODULE
-               error = config_fini_component(cfdriver_ioconf_if_rum,
-                   cfattach_ioconf_if_rum, cfdata_ioconf_if_rum);
+               error = config_fini_component(cfdriver_ioconf_rum,
+                   cfattach_ioconf_rum, cfdata_ioconf_rum);
 #endif
                return error;
        default:



Home | Main Index | Thread Index | Old Index