Module Name: src Committed By: maya Date: Tue Jul 19 17:04:25 UTC 2016
Modified Files: src/sys/arch/playstation2/dev: sbus.c spd.c src/sys/arch/playstation2/playstation2: mainbus.c Log Message: CFATTACH_DECL -> CFATTACH_DECL_NEW struct device * -> device_t To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/playstation2/dev/sbus.c cvs rdiff -u -r1.12 -r1.13 src/sys/arch/playstation2/dev/spd.c cvs rdiff -u -r1.15 -r1.16 src/sys/arch/playstation2/playstation2/mainbus.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/playstation2/dev/sbus.c diff -u src/sys/arch/playstation2/dev/sbus.c:1.16 src/sys/arch/playstation2/dev/sbus.c:1.17 --- src/sys/arch/playstation2/dev/sbus.c:1.16 Tue Jul 19 13:48:51 2016 +++ src/sys/arch/playstation2/dev/sbus.c Tue Jul 19 17:04:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: sbus.c,v 1.16 2016/07/19 13:48:51 maya Exp $ */ +/* $NetBSD: sbus.c,v 1.17 2016/07/19 17:04:25 maya Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.16 2016/07/19 13:48:51 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.17 2016/07/19 17:04:25 maya Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -79,20 +79,20 @@ STATIC void *sbus_usb_context; STATIC void sbus_init(int); STATIC int sbus_intr(void *); -STATIC int sbus_match(struct device *, cfdata_t, void *); -STATIC void sbus_attach(struct device *, struct device *, void *); -STATIC int sbus_search(struct device *, cfdata_t, +STATIC int sbus_match(device_t, cfdata_t, void *); +STATIC void sbus_attach(device_t, device_t, void *); +STATIC int sbus_search(device_t, cfdata_t, const int *, void *); STATIC int sbus_print(void *, const char *); -CFATTACH_DECL(sbus, sizeof (struct device), +CFATTACH_DECL_NEW(sbus, sizeof (struct device), sbus_match, sbus_attach, NULL, NULL); extern struct cfdriver sbus_cd; STATIC int __sbus_attached; int -sbus_match(struct device *parent, cfdata_t cf, void *aux) +sbus_match(device_t parent, cfdata_t cf, void *aux) { struct mainbus_attach_args *ma = aux; @@ -103,7 +103,7 @@ sbus_match(struct device *parent, cfdata } void -sbus_attach(struct device *parent, struct device *self, void *aux) +sbus_attach(device_t parent, device_t self, void *aux) { int type = BOOTINFO_REF(BOOTINFO_PCMCIA_TYPE); @@ -116,7 +116,7 @@ sbus_attach(struct device *parent, struc } int -sbus_search(struct device *parent, cfdata_t cf, +sbus_search(device_t parent, cfdata_t cf, const int *ldesc, void *aux) { struct sbus_attach_args sa; Index: src/sys/arch/playstation2/dev/spd.c diff -u src/sys/arch/playstation2/dev/spd.c:1.12 src/sys/arch/playstation2/dev/spd.c:1.13 --- src/sys/arch/playstation2/dev/spd.c:1.12 Tue Jul 19 13:48:51 2016 +++ src/sys/arch/playstation2/dev/spd.c Tue Jul 19 17:04:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: spd.c,v 1.12 2016/07/19 13:48:51 maya Exp $ */ +/* $NetBSD: spd.c,v 1.13 2016/07/19 17:04:25 maya Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.12 2016/07/19 13:48:51 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.13 2016/07/19 17:04:25 maya Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -49,8 +49,8 @@ __KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.12 #define STATIC static #endif -STATIC int spd_match(struct device *, cfdata_t, void *); -STATIC void spd_attach(struct device *, struct device *, void *); +STATIC int spd_match(device_t, cfdata_t, void *); +STATIC void spd_attach(device_t, device_t, void *); STATIC int spd_print(void *, const char *); STATIC int spd_intr(void *); STATIC void __spd_eeprom_out(u_int8_t *, int); @@ -63,7 +63,7 @@ STATIC struct { const char *name; } __spd_table[2]; -CFATTACH_DECL(spd, sizeof(struct device), +CFATTACH_DECL_NEW(spd, sizeof(struct device), spd_match, spd_attach, NULL, NULL); #ifdef DEBUG @@ -71,7 +71,7 @@ CFATTACH_DECL(spd, sizeof(struct device) #endif int -spd_match(struct device *parent, cfdata_t cf, void *aux) +spd_match(device_t parent, cfdata_t cf, void *aux) { return ((BOOTINFO_REF(BOOTINFO_DEVCONF) == @@ -79,7 +79,7 @@ spd_match(struct device *parent, cfdata_ } void -spd_attach(struct device *parent, struct device *self, void *aux) +spd_attach(device_t parent, device_t self, void *aux) { struct spd_attach_args spa; Index: src/sys/arch/playstation2/playstation2/mainbus.c diff -u src/sys/arch/playstation2/playstation2/mainbus.c:1.15 src/sys/arch/playstation2/playstation2/mainbus.c:1.16 --- src/sys/arch/playstation2/playstation2/mainbus.c:1.15 Tue Jul 19 13:48:52 2016 +++ src/sys/arch/playstation2/playstation2/mainbus.c Tue Jul 19 17:04:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.15 2016/07/19 13:48:52 maya Exp $ */ +/* $NetBSD: mainbus.c,v 1.16 2016/07/19 17:04:25 maya Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.15 2016/07/19 13:48:52 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.16 2016/07/19 17:04:25 maya Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -35,24 +35,24 @@ __KERNEL_RCSID(0, "$NetBSD: mainbus.c,v #include <machine/autoconf.h> -static int mainbus_match(struct device *, cfdata_t, void *); -static void mainbus_attach(struct device *, struct device *, void *); -static int mainbus_search(struct device *, cfdata_t, +static int mainbus_match(device_t, cfdata_t, void *); +static void mainbus_attach(device_t, device_t, void *); +static int mainbus_search(device_t, cfdata_t, const int *, void *); static int mainbus_print(void *, const char *); -CFATTACH_DECL(mainbus, sizeof(struct device), +CFATTACH_DECL_NEW(mainbus, sizeof(struct device), mainbus_match, mainbus_attach, NULL, NULL); static int -mainbus_match(struct device *parent, cfdata_t cf, void *aux) +mainbus_match(device_t parent, cfdata_t cf, void *aux) { return (1); } static void -mainbus_attach(struct device *parent, struct device *self, void *aux) +mainbus_attach(device_t parent, device_t self, void *aux) { printf("\n"); @@ -65,7 +65,7 @@ mainbus_attach(struct device *parent, st } static int -mainbus_search(struct device *parent, cfdata_t cf, +mainbus_search(device_t parent, cfdata_t cf, const int *ldesc, void *aux) { struct mainbus_attach_args ma;