Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700 Use device_xname.



details:   https://anonhg.NetBSD.org/src/rev/b5474d5aedee
branches:  trunk
changeset: 781961:b5474d5aedee
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 10 15:46:33 2012 +0000

description:
Use device_xname.

>From chuq

diffstat:

 sys/arch/hp700/dev/asp.c        |   6 +++---
 sys/arch/hp700/dev/cpu.c        |  10 +++++-----
 sys/arch/hp700/dev/elroy.c      |   4 ++--
 sys/arch/hp700/dev/wax.c        |   6 +++---
 sys/arch/hp700/hp700/autoconf.c |   6 +++---
 5 files changed, 16 insertions(+), 16 deletions(-)

diffs (144 lines):

diff -r b770cdf8790d -r b5474d5aedee sys/arch/hp700/dev/asp.c
--- a/sys/arch/hp700/dev/asp.c  Wed Oct 10 11:15:57 2012 +0000
+++ b/sys/arch/hp700/dev/asp.c  Wed Oct 10 15:46:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asp.c,v 1.21 2012/05/23 16:11:37 skrll Exp $   */
+/*     $NetBSD: asp.c,v 1.22 2012/10/10 15:46:33 skrll Exp $   */
 
 /*     $OpenBSD: asp.c,v 1.5 2000/02/09 05:04:22 mickey Exp $  */
 
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.21 2012/05/23 16:11:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.22 2012/10/10 15:46:33 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -262,7 +262,7 @@
 
        /* Attach the GSC bus. */
        ga.ga_ca = *ca; /* clone from us */
-       if (strcmp(parent->dv_xname, "mainbus0") == 0) {
+       if (strcmp(device_xname(parent), "mainbus0") == 0) {
                ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1];
                ga.ga_dp.dp_bc[1] = ga.ga_dp.dp_bc[2];
                ga.ga_dp.dp_bc[2] = ga.ga_dp.dp_bc[3];
diff -r b770cdf8790d -r b5474d5aedee sys/arch/hp700/dev/cpu.c
--- a/sys/arch/hp700/dev/cpu.c  Wed Oct 10 11:15:57 2012 +0000
+++ b/sys/arch/hp700/dev/cpu.c  Wed Oct 10 15:46:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.28 2012/05/23 21:11:34 skrll Exp $   */
+/*     $NetBSD: cpu.c,v 1.29 2012/10/10 15:46:34 skrll Exp $   */
 
 /*     $OpenBSD: cpu.c,v 1.29 2009/02/08 18:33:28 miod Exp $   */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.28 2012/05/23 21:11:34 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.29 2012/10/10 15:46:34 skrll Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -122,7 +122,7 @@
        }
 
        /* Print the CPU type, spec, level, category, and speed. */
-       aprint_normal("\n%s: %s, PA-RISC %s", self->dv_xname,
+       aprint_normal("\n%s: %s, PA-RISC %s", device_xname(self),
            hppa_cpu_info->hci_chip_type,
            hppa_cpu_info->hci_chip_spec);
        aprint_normal(", lev %s, cat %c, ",
@@ -132,7 +132,7 @@
        if (mhz % 100 > 9)
                aprint_normal(".%02d", mhz % 100);
 
-       aprint_normal(" MHz clk\n%s: %s", self->dv_xname,
+       aprint_normal(" MHz clk\n%s: %s", device_xname(self),
            pdc_model.sh? "shadows, ": "");
 
        if (pdc_cache.dc_conf.cc_fsel)
@@ -158,7 +158,7 @@
         * Describe the floating-point support.
         */
        KASSERT(fpu_present);
-       aprint_normal("%s: %s floating point, rev %d\n", self->dv_xname,
+       aprint_normal("%s: %s floating point, rev %d\n", device_xname(self),
            hppa_mod_info(HPPA_TYPE_FPU, (fpu_version >> 16) & 0x1f),
            (fpu_version >> 11) & 0x1f);
 
diff -r b770cdf8790d -r b5474d5aedee sys/arch/hp700/dev/elroy.c
--- a/sys/arch/hp700/dev/elroy.c        Wed Oct 10 11:15:57 2012 +0000
+++ b/sys/arch/hp700/dev/elroy.c        Wed Oct 10 15:46:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elroy.c,v 1.12 2012/01/27 18:52:56 para Exp $  */
+/*     $NetBSD: elroy.c,v 1.13 2012/10/10 15:46:34 skrll Exp $ */
 
 /*     $OpenBSD: elroy.c,v 1.5 2009/03/30 21:24:57 kettenis Exp $      */
 
@@ -452,7 +452,7 @@
                                return (NULL);
 
                        snprintf(sc->sc_memexname, sizeof(sc->sc_memexname),
-                           "%s_mem", sc->sc_dv.dv_xname);
+                           "%s_mem", device_xname(sc->sc_dv));
                        if ((sc->sc_memex = extent_create(sc->sc_memexname,
                            mem_start, mem_start + ELROY_MEM_WINDOW,
                            NULL, 0, EX_NOWAIT | EX_MALLOCOK)) == NULL) {
diff -r b770cdf8790d -r b5474d5aedee sys/arch/hp700/dev/wax.c
--- a/sys/arch/hp700/dev/wax.c  Wed Oct 10 11:15:57 2012 +0000
+++ b/sys/arch/hp700/dev/wax.c  Wed Oct 10 15:46:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wax.c,v 1.20 2012/05/23 16:11:37 skrll Exp $   */
+/*     $NetBSD: wax.c,v 1.21 2012/10/10 15:46:34 skrll Exp $   */
 
 /*     $OpenBSD: wax.c,v 1.1 1998/11/23 03:04:10 mickey Exp $  */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.20 2012/05/23 16:11:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.21 2012/10/10 15:46:34 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -152,7 +152,7 @@
 
        /* Attach the GSC bus. */
        ga.ga_ca = *ca; /* clone from us */
-       if (strcmp(parent->dv_xname, "mainbus0") == 0) {
+       if (strcmp(device_xname(parent), "mainbus0") == 0) {
                ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1];
                ga.ga_dp.dp_bc[1] = ga.ga_dp.dp_bc[2];
                ga.ga_dp.dp_bc[2] = ga.ga_dp.dp_bc[3];
diff -r b770cdf8790d -r b5474d5aedee sys/arch/hp700/hp700/autoconf.c
--- a/sys/arch/hp700/hp700/autoconf.c   Wed Oct 10 11:15:57 2012 +0000
+++ b/sys/arch/hp700/hp700/autoconf.c   Wed Oct 10 15:46:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.48 2012/07/29 18:05:40 mlelstv Exp $    */
+/*     $NetBSD: autoconf.c,v 1.49 2012/10/10 15:46:34 skrll Exp $      */
 
 /*     $OpenBSD: autoconf.c,v 1.15 2001/06/25 00:43:10 mickey Exp $    */
 
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.48 2012/07/29 18:05:40 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.49 2012/10/10 15:46:34 skrll Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_useleds.h"
@@ -474,7 +474,7 @@
 #endif /* DEBUG */
 
        if (boot_device != NULL)
-               printf("boot device: %s\n", boot_device->dv_xname );
+               printf("boot device: %s\n", device_xname(boot_device));
        booted_device = boot_device;
        rootconf();
 }



Home | Main Index | Thread Index | Old Index