Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax struct device * -> device_t, use device_xname(...



details:   https://anonhg.NetBSD.org/src/rev/237007f369b6
branches:  trunk
changeset: 782030:237007f369b6
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Oct 13 06:51:22 2012 +0000

description:
struct device * -> device_t, use device_xname()  (from chs@)

diffstat:

 sys/arch/pmax/pmax/autoconf.c     |  18 +++++++++---------
 sys/arch/pmax/pmax/dec_3100.c     |   8 ++++----
 sys/arch/pmax/pmax/dec_3max.c     |   6 +++---
 sys/arch/pmax/pmax/dec_3maxplus.c |   8 ++++----
 sys/arch/pmax/pmax/dec_3min.c     |   8 ++++----
 sys/arch/pmax/pmax/dec_5100.c     |   8 ++++----
 sys/arch/pmax/pmax/dec_maxine.c   |   8 ++++----
 sys/arch/pmax/tc/tcbus.c          |  10 +++++-----
 8 files changed, 37 insertions(+), 37 deletions(-)

diffs (294 lines):

diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/autoconf.c
--- a/sys/arch/pmax/pmax/autoconf.c     Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/autoconf.c     Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.79 2012/07/29 18:05:45 mlelstv Exp $    */
+/*     $NetBSD: autoconf.c,v 1.80 2012/10/13 06:51:22 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.79 2012/07/29 18:05:45 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.80 2012/10/13 06:51:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -62,9 +62,9 @@
 #include "opt_dec_3100.h"
 #include "opt_dec_5100.h"
 
-struct intrhand                 intrtab[MAX_DEV_NCOOKIES];
-static struct device   *booted_controller;
-static int              booted_slot, booted_unit;
+struct intrhand                intrtab[MAX_DEV_NCOOKIES];
+static device_t                booted_controller;
+static int             booted_slot, booted_unit;
 static const char      *booted_protocol;
 
 /*
@@ -149,7 +149,7 @@
 {
 
        printf("boot device: %s\n",
-           booted_device ? booted_device->dv_xname : "<unknown>");
+           booted_device ? device_xname(booted_device) : "<unknown>");
 
        rootconf();
 }
@@ -158,11 +158,11 @@
  * Try to determine the boot device.
  */
 void
-device_register(struct device *dev, void *aux)
+device_register(device_t dev, void *aux)
 {
        static int found, initted, scsiboot, netboot;
-       static struct device *ioasicdev;
-       struct device *parent = device_parent(dev);
+       static device_t ioasicdev;
+       device_t parent = device_parent(dev);
 
        if (found)
                return;
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_3100.c
--- a/sys/arch/pmax/pmax/dec_3100.c     Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_3100.c     Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3100.c,v 1.52 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_3100.c,v 1.53 2012/10/13 06:51:22 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -69,7 +69,7 @@
 
 #define __INTR_PRIVATE
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3100.c,v 1.52 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3100.c,v 1.53 2012/10/13 06:51:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -102,7 +102,7 @@
 static void    dec_3100_cons_init(void);
 static void    dec_3100_errintr(void);
 static void    dec_3100_intr(uint32_t, vaddr_t, uint32_t);
-static void    dec_3100_intr_establish(struct device *, void *,
+static void    dec_3100_intr_establish(device_t, void *,
                    int, int (*)(void *), void *);
 
 #define        kn01_wbflush()  wbflush() /* XXX to be corrected XXX */
@@ -221,7 +221,7 @@
 }
 
 static void
-dec_3100_intr_establish(struct device *dev, void *cookie, int level,
+dec_3100_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
 
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_3max.c
--- a/sys/arch/pmax/pmax/dec_3max.c     Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_3max.c     Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3max.c,v 1.54 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_3max.c,v 1.55 2012/10/13 06:51:22 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define        __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.54 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3max.c,v 1.55 2012/10/13 06:51:22 tsutsui Exp $");
 
 #include "dzkbd.h"
 
@@ -220,7 +220,7 @@
 };
 
 static void
-dec_3max_intr_establish(struct device *dev, void *cookie, int level,
+dec_3max_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
        int i;
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_3maxplus.c
--- a/sys/arch/pmax/pmax/dec_3maxplus.c Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_3maxplus.c Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3maxplus.c,v 1.68 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_3maxplus.c,v 1.69 2012/10/13 06:51:22 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.68 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.69 2012/10/13 06:51:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -104,7 +104,7 @@
 static void    dec_3maxplus_cons_init(void);
 static void    dec_3maxplus_errintr(void);
 static void    dec_3maxplus_intr(uint32_t, vaddr_t, uint32_t);
-static void    dec_3maxplus_intr_establish(struct device *, void *,
+static void    dec_3maxplus_intr_establish(device_t, void *,
                    int, int (*)(void *), void *);
 
 static void    kn03_wbflush(void);
@@ -234,7 +234,7 @@
 }
 
 static void
-dec_3maxplus_intr_establish(struct device *dev, void *cookie, int level,
+dec_3maxplus_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
        uint32_t mask;
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_3min.c
--- a/sys/arch/pmax/pmax/dec_3min.c     Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_3min.c     Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3min.c,v 1.71 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_3min.c,v 1.72 2012/10/13 06:51:23 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define        __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.71 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3min.c,v 1.72 2012/10/13 06:51:23 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -102,7 +102,7 @@
 static void    dec_3min_bus_reset(void);
 static void    dec_3min_cons_init(void);
 static void    dec_3min_intr(uint32_t, vaddr_t, uint32_t);
-static void    dec_3min_intr_establish(struct device *, void *,
+static void    dec_3min_intr_establish(device_t, void *,
                    int, int (*)(void *), void *);
 
 static void    kn02ba_wbflush(void);
@@ -233,7 +233,7 @@
 }
 
 static void
-dec_3min_intr_establish(struct device *dev, void *cookie, int level,
+dec_3min_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
        uint32_t mask;
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_5100.c
--- a/sys/arch/pmax/pmax/dec_5100.c     Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_5100.c     Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_5100.c,v 1.46 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_5100.c,v 1.47 2012/10/13 06:51:23 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_5100.c,v 1.46 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_5100.c,v 1.47 2012/10/13 06:51:23 tsutsui Exp $");
 
 #define __INTR_PRIVATE
 #include <sys/param.h>
@@ -63,7 +63,7 @@
 static void    dec_5100_bus_reset(void);
 static void    dec_5100_cons_init(void);
 static void    dec_5100_intr(uint32_t, vaddr_t, uint32_t);
-static void    dec_5100_intr_establish(struct device *, void *,
+static void    dec_5100_intr_establish(device_t, void *,
                    int, int (*)(void *), void *);
 static void    dec_5100_memintr(void);
 
@@ -135,7 +135,7 @@
 }
 
 static void
-dec_5100_intr_establish(struct device *dev, void *cookie, int level,
+dec_5100_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
 
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/pmax/dec_maxine.c
--- a/sys/arch/pmax/pmax/dec_maxine.c   Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/pmax/dec_maxine.c   Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_maxine.c,v 1.63 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: dec_maxine.c,v 1.64 2012/10/13 06:51:23 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_maxine.c,v 1.63 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_maxine.c,v 1.64 2012/10/13 06:51:23 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -101,7 +101,7 @@
 static void    dec_maxine_bus_reset(void);
 static void    dec_maxine_cons_init(void);
 static void    dec_maxine_intr(uint32_t, vaddr_t, uint32_t);
-static void    dec_maxine_intr_establish(struct device *, void *,
+static void    dec_maxine_intr_establish(device_t, void *,
                    int, int (*)(void *), void *);
 
 static void    dec_maxine_tc_init(void);
@@ -227,7 +227,7 @@
 }
 
 static void
-dec_maxine_intr_establish(struct device *dev, void *cookie, int level,
+dec_maxine_intr_establish(device_t dev, void *cookie, int level,
     int (*handler)(void *), void *arg)
 {
        uint32_t mask;
diff -r e16d808ff55a -r 237007f369b6 sys/arch/pmax/tc/tcbus.c
--- a/sys/arch/pmax/tc/tcbus.c  Sat Oct 13 06:49:26 2012 +0000
+++ b/sys/arch/pmax/tc/tcbus.c  Sat Oct 13 06:51:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcbus.c,v 1.28 2011/07/09 17:32:31 matt Exp $  */
+/*     $NetBSD: tcbus.c,v 1.29 2012/10/13 06:51:23 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcbus.c,v 1.28 2011/07/09 17:32:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcbus.c,v 1.29 2012/10/13 06:51:23 tsutsui Exp $");
 
 #define        _PMAX_BUS_DMA_PRIVATE
 /*
@@ -52,10 +52,10 @@
 #include <dev/tc/tcvar.h>
 #include <pmax/pmax/pmaxtype.h>
 
-static const struct evcnt *tc_ds_intr_evcnt(struct device *, void *);
-static void    tc_ds_intr_establish(struct device *, void *,
+static const struct evcnt *tc_ds_intr_evcnt(device_t, void *);
+static void    tc_ds_intr_establish(device_t, void *,
                                int, int (*)(void *), void *);
-static void    tc_ds_intr_disestablish(struct device *, void *);
+static void    tc_ds_intr_disestablish(device_t, void *);
 static bus_dma_tag_t tc_ds_get_dma_tag(int);
 
 extern struct tcbus_attach_args kn02_tc_desc[];        /* XXX */



Home | Main Index | Thread Index | Old Index