Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/bebox/bebox Covert to CFATTACH_DECL_NEW, device_t, ...



details:   https://anonhg.NetBSD.org/src/rev/be57192e4ac4
branches:  trunk
changeset: 765687:be57192e4ac4
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 03 00:16:27 2011 +0000

description:
Covert to CFATTACH_DECL_NEW, device_t, cfdata_t

diffstat:

 sys/arch/bebox/bebox/cpu.c     |  14 +++++++-------
 sys/arch/bebox/bebox/mainbus.c |  14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (98 lines):

diff -r e16b5fadf58b -r be57192e4ac4 sys/arch/bebox/bebox/cpu.c
--- a/sys/arch/bebox/bebox/cpu.c        Thu Jun 02 22:15:22 2011 +0000
+++ b/sys/arch/bebox/bebox/cpu.c        Fri Jun 03 00:16:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.9 2008/04/28 20:23:15 martin Exp $   */
+/*     $NetBSD: cpu.c,v 1.10 2011/06/03 00:16:27 matt Exp $    */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.9 2008/04/28 20:23:15 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.10 2011/06/03 00:16:27 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -40,16 +40,16 @@
 #include <machine/bus.h>
 #include <machine/cpu.h>
 
-int cpumatch(struct device *, struct cfdata *, void *);
-void cpuattach(struct device *, struct device *, void *);
+int cpumatch(device_t, cfdata_t, void *);
+void cpuattach(device_t, device_t, void *);
 
-CFATTACH_DECL(cpu, sizeof(struct device),
+CFATTACH_DECL_NEW(cpu, 0,
     cpumatch, cpuattach, NULL, NULL);
 
 extern struct cfdriver cpu_cd;
 
 int
-cpumatch(struct device *parent, struct cfdata *cfdata, void *aux)
+cpumatch(device_t parent, cfdata_t cfdata, void *aux)
 {
        struct confargs *ca = aux;
   
@@ -61,7 +61,7 @@
 }
 
 void
-cpuattach(struct device *parent, struct device *self, void *aux)
+cpuattach(device_t parent, device_t self, void *aux)
 {
        (void) cpu_attach_common(self, 0);
 }
diff -r e16b5fadf58b -r be57192e4ac4 sys/arch/bebox/bebox/mainbus.c
--- a/sys/arch/bebox/bebox/mainbus.c    Thu Jun 02 22:15:22 2011 +0000
+++ b/sys/arch/bebox/bebox/mainbus.c    Fri Jun 03 00:16:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.25 2011/05/17 17:34:48 dyoung Exp $      */
+/*     $NetBSD: mainbus.c,v 1.26 2011/06/03 00:16:27 matt Exp $        */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.25 2011/05/17 17:34:48 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.26 2011/06/03 00:16:27 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/extent.h>
@@ -49,10 +49,10 @@
 #include <machine/pci_machdep.h>
 #include <machine/isa_machdep.h>
 
-int    mainbus_match(struct device *, struct cfdata *, void *);
-void   mainbus_attach(struct device *, struct device *, void *);
+int    mainbus_match(device_t, cfdata_t, void *);
+void   mainbus_attach(device_t, device_t, void *);
 
-CFATTACH_DECL(mainbus, sizeof(struct device),
+CFATTACH_DECL_NEW(mainbus, 0,
     mainbus_match, mainbus_attach, NULL, NULL);
 
 int    mainbus_print (void *, const char *);
@@ -72,7 +72,7 @@
  * Probe for the mainbus; always succeeds.
  */
 int
-mainbus_match(struct device *parent, struct cfdata *match, void *aux)
+mainbus_match(device_t parent, cfdata_t match, void *aux)
 {
        return 1;
 }
@@ -81,7 +81,7 @@
  * Attach the mainbus.
  */
 void
-mainbus_attach(struct device *parent, struct device *self, void *aux)
+mainbus_attach(device_t parent, device_t self, void *aux)
 {
        union mainbus_attach_args mba;
        struct confargs ca;



Home | Main Index | Thread Index | Old Index