Sun Jun 5 16:59:21 2011 UTC ()
device_t, cfdata_t, etc.
CFATTACH_DECL -> CFATTACH_DECL_NEW for sizeof(struct device).


(matt)
diff -r1.92 -r1.93 src/sys/arch/vax/include/cpu.h
diff -r1.26 -r1.27 src/sys/arch/vax/include/nexus.h
diff -r1.41 -r1.42 src/sys/arch/vax/include/types.h
diff -r1.2 -r1.3 src/sys/arch/vax/uba/uba_ubi.c
diff -r1.15 -r1.16 src/sys/arch/vax/vax/ka6400.c
diff -r1.15 -r1.16 src/sys/arch/vax/vax/ka88.c
diff -r1.2 -r1.3 src/sys/arch/vax/vax/ka730.c
diff -r1.53 -r1.54 src/sys/arch/vax/vax/ka820.c
diff -r1.31 -r1.32 src/sys/arch/vax/vax/multicpu.c
diff -r1.3 -r1.4 src/sys/arch/vax/vax/ubi.c

cvs diff -r1.92 -r1.93 src/sys/arch/vax/include/cpu.h (expand / switch to context diff)
--- src/sys/arch/vax/include/cpu.h 2011/04/14 08:17:27 1.92
+++ src/sys/arch/vax/include/cpu.h 2011/06/05 16:59:21 1.93
@@ -1,4 +1,4 @@
-/*      $NetBSD: cpu.h,v 1.92 2011/04/14 08:17:27 matt Exp $      */
+/*      $NetBSD: cpu.h,v 1.93 2011/06/05 16:59:21 matt Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden
@@ -123,7 +123,7 @@
 	 * Public members.
 	 */
 	struct cpu_data ci_data;	/* MI per-cpu data */
-	struct device *ci_dev;		/* device struct for this cpu */
+	device_t ci_dev;		/* device struct for this cpu */
 	int ci_mtx_oldspl;		/* saved spl */
 	int ci_mtx_count;		/* negative count of mutexes */
 	int ci_cpuid;			/* h/w specific cpu id */

cvs diff -r1.26 -r1.27 src/sys/arch/vax/include/nexus.h (expand / switch to context diff)
--- src/sys/arch/vax/include/nexus.h 2010/07/01 19:50:12 1.26
+++ src/sys/arch/vax/include/nexus.h 2011/06/05 16:59:21 1.27
@@ -1,4 +1,4 @@
-/*	$NetBSD: nexus.h,v 1.26 2010/07/01 19:50:12 ragge Exp $	*/
+/*	$NetBSD: nexus.h,v 1.27 2011/06/05 16:59:21 matt Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -114,7 +114,7 @@
 
 /* Memory device struct. This should be somewhere else */
 struct mem_softc {
-	struct	device *sc_dev;
+	device_t sc_dev;
 	void *	sc_memaddr;
 	int	sc_memtype;
 	int	sc_memnr;

cvs diff -r1.41 -r1.42 src/sys/arch/vax/include/types.h (expand / switch to context diff)
--- src/sys/arch/vax/include/types.h 2010/12/22 01:03:18 1.41
+++ src/sys/arch/vax/include/types.h 2011/06/05 16:59:21 1.42
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.41 2010/12/22 01:03:18 matt Exp $	*/
+/*	$NetBSD: types.h,v 1.42 2011/06/05 16:59:21 matt Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -76,5 +76,7 @@
 #define	__HAVE_SYSCALL_INTERN
 #define	__HAVE_FAST_SOFTINTS
 #define	__HAVE_CPU_DATA_FIRST
+
+#define	__HAVE___LWP_GETPRIVATE_FAST
 
 #endif	/* _MACHTYPES_H_ */

cvs diff -r1.2 -r1.3 src/sys/arch/vax/uba/uba_ubi.c (expand / switch to context diff)
--- src/sys/arch/vax/uba/uba_ubi.c 2010/12/14 23:38:30 1.2
+++ src/sys/arch/vax/uba/uba_ubi.c 2011/06/05 16:59:21 1.3
@@ -1,4 +1,4 @@
-/*	$NetBSD: uba_ubi.c,v 1.2 2010/12/14 23:38:30 matt Exp $	   */
+/*	$NetBSD: uba_ubi.c,v 1.3 2011/06/05 16:59:21 matt Exp $	   */
 /*
  * Copyright (c) 1982, 1986 The Regents of the University of California.
  * All rights reserved.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uba_ubi.c,v 1.2 2010/12/14 23:38:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uba_ubi.c,v 1.3 2011/06/05 16:59:21 matt Exp $");
 
 #define _VAX_BUS_DMA_PRIVATE
 
@@ -98,8 +98,8 @@
  * and bus status/command registers, the latter are (partly) IPR's
  * on 750.
  */
-static	int	dw730_match(struct device *, struct cfdata *, void *);
-static	void	dw730_attach(struct device *, struct device *, void *);
+static	int	dw730_match(device_t, cfdata_t, void *);
+static	void	dw730_attach(device_t, device_t, void *);
 static	void	dw730_init(struct uba_softc*);
 #ifdef notyet
 static	void	dw730_purge(struct uba_softc *, int);

cvs diff -r1.15 -r1.16 src/sys/arch/vax/vax/ka6400.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/ka6400.c 2010/12/14 23:44:49 1.15
+++ src/sys/arch/vax/vax/ka6400.c 2011/06/05 16:59:21 1.16
@@ -1,4 +1,4 @@
-/*	$NetBSD: ka6400.c,v 1.15 2010/12/14 23:44:49 matt Exp $	*/
+/*	$NetBSD: ka6400.c,v 1.16 2011/06/05 16:59:21 matt Exp $	*/
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka6400.c,v 1.15 2010/12/14 23:44:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka6400.c,v 1.16 2011/06/05 16:59:21 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -194,7 +194,7 @@
 static void ms6400_attach(device_t , device_t , void*);
 
 struct mem_xmi_softc {
-	struct device *sc_dev;
+	device_t sc_dev;
 	bus_space_tag_t sc_iot;
 	bus_space_handle_t sc_ioh;
 };

cvs diff -r1.15 -r1.16 src/sys/arch/vax/vax/ka88.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/ka88.c 2010/12/14 23:44:49 1.15
+++ src/sys/arch/vax/vax/ka88.c 2011/06/05 16:59:21 1.16
@@ -1,4 +1,4 @@
-/*	$NetBSD: ka88.c,v 1.15 2010/12/14 23:44:49 matt Exp $	*/
+/*	$NetBSD: ka88.c,v 1.16 2011/06/05 16:59:21 matt Exp $	*/
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka88.c,v 1.15 2010/12/14 23:44:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka88.c,v 1.16 2011/06/05 16:59:21 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -165,7 +165,7 @@
     ka88_cpu_match, ka88_cpu_attach, NULL, NULL);
 
 struct mem_nmi_softc {
-	struct device *sc_dev;
+	device_t sc_dev;
 	bus_space_tag_t sc_iot;
 	bus_space_handle_t sc_ioh;
 };

cvs diff -r1.2 -r1.3 src/sys/arch/vax/vax/ka730.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/ka730.c 2010/12/14 23:44:49 1.2
+++ src/sys/arch/vax/vax/ka730.c 2011/06/05 16:59:21 1.3
@@ -1,4 +1,4 @@
-/*	$NetBSD: ka730.c,v 1.2 2010/12/14 23:44:49 matt Exp $ */
+/*	$NetBSD: ka730.c,v 1.3 2011/06/05 16:59:21 matt Exp $ */
 /*
  * Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
  * All rights reserved.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka730.c,v 1.2 2010/12/14 23:44:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka730.c,v 1.3 2011/06/05 16:59:21 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -120,16 +120,16 @@
 	aprint_normal("KA730, ucode rev %d\n", V730UCODE(vax_cpudata));
 }
 
-static void ka730_memenable(struct device *, struct device *, void *);
-static int ka730_memmatch(struct device  *, struct cfdata *, void *);
+static void ka730_memenable(device_t, device_t, void *);
+static int ka730_memmatch(device_t, cfdata_t, void *);
 
-CFATTACH_DECL(mem_ubi, sizeof(struct device),
+CFATTACH_DECL_NEW(mem_ubi, 0,
     ka730_memmatch, ka730_memenable, NULL, NULL);
 
 int
-ka730_memmatch(struct device *parent, struct cfdata *cf, void *aux)
+ka730_memmatch(device_t parent, cfdata_t cf, void *aux)
 {
-	struct	sbi_attach_args *sa = (struct sbi_attach_args *)aux;
+	struct	sbi_attach_args *sa = aux;
 
 	if (cf->cf_loc[UBICF_TR] != sa->sa_nexnum &&
 	    cf->cf_loc[UBICF_TR] > UBICF_TR_DEFAULT)
@@ -148,7 +148,7 @@
 
 /* enable crd interrupts */
 void
-ka730_memenable(struct device *parent, struct device *self, void *aux)
+ka730_memenable(device_t parent, device_t self, void *aux)
 {
 }
 

cvs diff -r1.53 -r1.54 src/sys/arch/vax/vax/ka820.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/ka820.c 2010/12/14 23:44:49 1.53
+++ src/sys/arch/vax/vax/ka820.c 2011/06/05 16:59:21 1.54
@@ -1,4 +1,4 @@
-/*	$NetBSD: ka820.c,v 1.53 2010/12/14 23:44:49 matt Exp $	*/
+/*	$NetBSD: ka820.c,v 1.54 2011/06/05 16:59:21 matt Exp $	*/
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.53 2010/12/14 23:44:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.54 2011/06/05 16:59:21 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -279,7 +279,7 @@
 static void ms820_attach(device_t, device_t, void*);
 
 struct mem_bi_softc {
-	struct device *sc_dev;
+	device_t sc_dev;
 	bus_space_tag_t sc_iot;
 	bus_space_handle_t sc_ioh;
 };

cvs diff -r1.31 -r1.32 src/sys/arch/vax/vax/multicpu.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/multicpu.c 2010/12/14 23:44:49 1.31
+++ src/sys/arch/vax/vax/multicpu.c 2011/06/05 16:59:21 1.32
@@ -1,4 +1,4 @@
-/*	$NetBSD: multicpu.c,v 1.31 2010/12/14 23:44:49 matt Exp $	*/
+/*	$NetBSD: multicpu.c,v 1.32 2011/06/05 16:59:21 matt Exp $	*/
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: multicpu.c,v 1.31 2010/12/14 23:44:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: multicpu.c,v 1.32 2011/06/05 16:59:21 matt Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -57,7 +57,7 @@
 struct cpuq {
 	SIMPLEQ_ENTRY(cpuq) cq_q;
 	struct cpu_info *cq_ci;
-	struct device *cq_dev;
+	device_t cq_dev;
 };
 
 SIMPLEQ_HEAD(, cpuq) cpuq = SIMPLEQ_HEAD_INITIALIZER(cpuq);

cvs diff -r1.3 -r1.4 src/sys/arch/vax/vax/ubi.c (expand / switch to context diff)
--- src/sys/arch/vax/vax/ubi.c 2010/12/14 23:44:50 1.3
+++ src/sys/arch/vax/vax/ubi.c 2011/06/05 16:59:21 1.4
@@ -1,4 +1,4 @@
-/*	$NetBSD: ubi.c,v 1.3 2010/12/14 23:44:50 matt Exp $ */
+/*	$NetBSD: ubi.c,v 1.4 2011/06/05 16:59:21 matt Exp $ */
 /*
  * Copyright (c) 1999 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ubi.c,v 1.3 2010/12/14 23:44:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubi.c,v 1.4 2011/06/05 16:59:21 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -44,10 +44,10 @@
 #include <machine/ka730.h>
 
 static	int ubi_print(void *, const char *);
-static	int ubi_match(struct device *, struct cfdata *, void *);
-static	void ubi_attach(struct device *, struct device *, void*);
+static	int ubi_match(device_t, cfdata_t, void *);
+static	void ubi_attach(device_t, device_t, void*);
 
-CFATTACH_DECL_NEW(ubi, sizeof(struct device),
+CFATTACH_DECL_NEW(ubi, 0,
     ubi_match, ubi_attach, NULL, NULL);
 
 int
@@ -64,7 +64,7 @@
 
 
 int
-ubi_match(struct device *parent, struct cfdata *cf, void *aux)
+ubi_match(device_t parent, cfdata_t cf, void *aux)
 {
 	if (vax_bustype == VAX_UNIBUS)
 		return 1;
@@ -72,7 +72,7 @@
 }
 
 void
-ubi_attach(struct device *parent, struct device *self, void *aux)
+ubi_attach(device_t parent, device_t self, void *aux)
 {
 	struct	sbi_attach_args sa;