Module Name:    src
Committed By:   matt
Date:           Mon Jun  6 17:30:33 UTC 2011

Modified Files:
        src/sys/arch/alpha/isa: isa_machdep.c
        src/sys/arch/alpha/pci: ttwoga.c
        src/sys/arch/alpha/tlsb: tlsb.c

Log Message:
CFATTACH_DECL(..., sizeof(struct device), -> CFATTACH_DECL_NEW(..., 0
struct device * -> device_t
struct cfdata * -> cfdata_t


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/alpha/isa/isa_machdep.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/alpha/pci/ttwoga.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/alpha/tlsb/tlsb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/isa/isa_machdep.c
diff -u src/sys/arch/alpha/isa/isa_machdep.c:1.19 src/sys/arch/alpha/isa/isa_machdep.c:1.20
--- src/sys/arch/alpha/isa/isa_machdep.c:1.19	Wed Dec 15 01:29:37 2010
+++ src/sys/arch/alpha/isa/isa_machdep.c	Mon Jun  6 17:30:32 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: isa_machdep.c,v 1.19 2010/12/15 01:29:37 matt Exp $ */
+/* $NetBSD: isa_machdep.c,v 1.20 2011/06/06 17:30:32 matt Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.19 2010/12/15 01:29:37 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.20 2011/06/06 17:30:32 matt Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -55,10 +55,10 @@
 #if (NPCPPI > 0)
 #include <dev/isa/pcppivar.h>
 
-int isabeepmatch(struct device *, struct cfdata *, void *);
-void isabeepattach(struct device *, struct device *, void *);
+int isabeepmatch(device_t, cfdata_t, void *);
+void isabeepattach(device_t, device_t, void *);
 
-CFATTACH_DECL(isabeep, sizeof(struct device),
+CFATTACH_DECL_NEW(isabeep, 0,
     isabeepmatch, isabeepattach, NULL, NULL);
 
 static int ppi_attached;
@@ -79,13 +79,13 @@
 
 #if (NPCPPI > 0)
 int
-isabeepmatch(struct device *parent, struct cfdata *match, void *aux)
+isabeepmatch(device_t parent, cfdata_t match, void *aux)
 {
 	return (!ppi_attached);
 }
 
 void
-isabeepattach(struct device *parent, struct device *self, void *aux)
+isabeepattach(device_t parent, device_t self, void *aux)
 {
 	printf("\n");
 

Index: src/sys/arch/alpha/pci/ttwoga.c
diff -u src/sys/arch/alpha/pci/ttwoga.c:1.12 src/sys/arch/alpha/pci/ttwoga.c:1.13
--- src/sys/arch/alpha/pci/ttwoga.c:1.12	Tue May 17 17:34:47 2011
+++ src/sys/arch/alpha/pci/ttwoga.c	Mon Jun  6 17:30:32 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ttwoga.c,v 1.12 2011/05/17 17:34:47 dyoung Exp $ */
+/* $NetBSD: ttwoga.c,v 1.13 2011/06/06 17:30:32 matt Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: ttwoga.c,v 1.12 2011/05/17 17:34:47 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttwoga.c,v 1.13 2011/06/06 17:30:32 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -62,18 +62,18 @@
 
 #include "locators.h"
 
-int	ttwogamatch(struct device *, struct cfdata *, void *);
-void	ttwogaattach(struct device *, struct device *, void *);
+int	ttwogamatch(device_t, cfdata_t, void *);
+void	ttwogaattach(device_t, device_t, void *);
 
-CFATTACH_DECL(ttwoga, sizeof(struct device),
+CFATTACH_DECL_NEW(ttwoga, 0,
     ttwogamatch, ttwogaattach, NULL, NULL);
 
 int	ttwogaprint(void *, const char *);
 
-int	ttwopcimatch(struct device *, struct cfdata *, void *);
-void	ttwopciattach(struct device *, struct device *, void *);
+int	ttwopcimatch(device_t, cfdata_t, void *);
+void	ttwopciattach(device_t, device_t, void *);
 
-CFATTACH_DECL(ttwopci, sizeof(struct device),
+CFATTACH_DECL_NEW(ttwopci, 0,
     ttwopcimatch, ttwopciattach, NULL, NULL);
 
 int	ttwosableioprint(void *, const char *);
@@ -108,7 +108,7 @@
 #undef MEGABYTE
 
 int
-ttwogamatch(struct device *parent, struct cfdata *match, void *aux)
+ttwogamatch(device_t parent, cfdata_t match, void *aux)
 {
 	struct mainbus_attach_args *ma = aux;
 
@@ -123,7 +123,7 @@
 }
 
 void
-ttwogaattach(struct device *parent, struct device *self, void *aux)
+ttwogaattach(device_t parent, device_t self, void *aux)
 {
 	struct pcibus_attach_args pba;
 	int hose;
@@ -205,7 +205,7 @@
 }
 
 int
-ttwopcimatch(struct device *parent, struct cfdata *match, void *aux)
+ttwopcimatch(device_t parent, cfdata_t match, void *aux)
 {
 	struct pcibus_attach_args *pba = aux;
 
@@ -217,7 +217,7 @@
 }
 
 void
-ttwopciattach(struct device *parent, struct device *self, void *aux)
+ttwopciattach(device_t parent, device_t self, void *aux)
 {
 	struct pcibus_attach_args *pba = aux, npba;
 	struct ttwoga_config *tcp;

Index: src/sys/arch/alpha/tlsb/tlsb.c
diff -u src/sys/arch/alpha/tlsb/tlsb.c:1.34 src/sys/arch/alpha/tlsb/tlsb.c:1.35
--- src/sys/arch/alpha/tlsb/tlsb.c:1.34	Sat Mar 14 15:36:00 2009
+++ src/sys/arch/alpha/tlsb/tlsb.c	Mon Jun  6 17:30:33 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: tlsb.c,v 1.34 2009/03/14 15:36:00 dsl Exp $ */
+/* $NetBSD: tlsb.c,v 1.35 2011/06/06 17:30:33 matt Exp $ */
 /*
  * Copyright (c) 1997 by Matthew Jacob
  * NASA AMES Research Center.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.34 2009/03/14 15:36:00 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.35 2011/06/06 17:30:33 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -62,10 +62,10 @@
 
 #define KV(_addr)	((void *)ALPHA_PHYS_TO_K0SEG((_addr)))
 
-static int	tlsbmatch(struct device *, struct cfdata *, void *);
-static void	tlsbattach(struct device *, struct device *, void *);
+static int	tlsbmatch(device_t, cfdata_t, void *);
+static void	tlsbattach(device_t, device_t, void *);
 
-CFATTACH_DECL(tlsb, sizeof (struct device),
+CFATTACH_DECL_NEW(tlsb, 0,
     tlsbmatch, tlsbattach, NULL, NULL);
 
 extern struct cfdriver tlsb_cd;
@@ -100,7 +100,7 @@
 }
 
 static int
-tlsbmatch(struct device *parent, struct cfdata *cf, void *aux)
+tlsbmatch(device_t parent, cfdata_t cf, void *aux)
 {
 	struct mainbus_attach_args *ma = aux;
 
@@ -120,7 +120,7 @@
 }
 
 static void
-tlsbattach(struct device *parent, struct device *self, void *aux)
+tlsbattach(device_t parent, device_t self, void *aux)
 {
 	struct tlsb_dev_attach_args ta;
 	u_int32_t tldev;

Reply via email to