CFATTACH_DECL -> CFATTACH_DECL_NEW

This commit is contained in:
matt 2008-12-12 17:36:14 +00:00
parent bc330923c1
commit ce637ca878
8 changed files with 32 additions and 30 deletions

View File

@ -1,7 +1,7 @@
/* $Id: obio_ohci.c,v 1.3 2008/10/24 05:39:00 matt Exp $ */ /* $Id: obio_ohci.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* adapted from: */ /* adapted from: */
/* $NetBSD: obio_ohci.c,v 1.3 2008/10/24 05:39:00 matt Exp $ */ /* $NetBSD: obio_ohci.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* $OpenBSD: pxa2x0_ohci.c,v 1.19 2005/04/08 02:32:54 dlg Exp $ */ /* $OpenBSD: pxa2x0_ohci.c,v 1.19 2005/04/08 02:32:54 dlg Exp $ */
/* /*
@ -23,7 +23,7 @@
#include "opt_omap.h" #include "opt_omap.h"
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: obio_ohci.c,v 1.3 2008/10/24 05:39:00 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: obio_ohci.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -59,7 +59,7 @@ static int obioohci_detach(struct device *, int);
void * obioohci_fake_intr_establish(int (*)(void *), void *); void * obioohci_fake_intr_establish(int (*)(void *), void *);
void obioohci_fake_intr(void); void obioohci_fake_intr(void);
CFATTACH_DECL(obioohci, sizeof(struct obioohci_softc), CFATTACH_DECL_NEW(obioohci, sizeof(struct obioohci_softc),
obioohci_match, obioohci_attach, obioohci_detach, ohci_activate); obioohci_match, obioohci_attach, obioohci_detach, ohci_activate);
static void obioohci_clkinit(struct obio_attach_args *); static void obioohci_clkinit(struct obio_attach_args *);

View File

@ -1,7 +1,7 @@
/* $Id: omap2_obio.c,v 1.6 2008/11/21 17:13:07 matt Exp $ */ /* $Id: omap2_obio.c,v 1.7 2008/12/12 17:36:14 matt Exp $ */
/* adapted from: */ /* adapted from: */
/* $NetBSD: omap2_obio.c,v 1.6 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap2_obio.c,v 1.7 2008/12/12 17:36:14 matt Exp $ */
/* /*
@ -103,7 +103,7 @@
#include "opt_omap.h" #include "opt_omap.h"
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap2_obio.c,v 1.6 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap2_obio.c,v 1.7 2008/12/12 17:36:14 matt Exp $");
#include "locators.h" #include "locators.h"
#include "obio.h" #include "obio.h"
@ -383,9 +383,12 @@ obio_attach_critical(struct obio_softc *sc)
continue; continue;
cf = config_search_ia(obio_find, sc->sc_dev, "obio", &oa); cf = config_search_ia(obio_find, sc->sc_dev, "obio", &oa);
if (cf == NULL && critical_devs[i].required) if (cf == NULL) {
panic("obio_attach_critical: failed to find %s!", if (critical_devs[i].required)
critical_devs[i].name); panic("obio_attach_critical: failed to find %s!",
critical_devs[i].name);
continue;
}
oa.obio_addr = cf->cf_loc[OBIOCF_ADDR]; oa.obio_addr = cf->cf_loc[OBIOCF_ADDR];
oa.obio_size = cf->cf_loc[OBIOCF_SIZE]; oa.obio_size = cf->cf_loc[OBIOCF_SIZE];

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_emifs.c,v 1.3 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_emifs.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* /*
@ -97,7 +97,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_emifs.c,v 1.3 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_emifs.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include "locators.h" #include "locators.h"
@ -165,7 +165,7 @@ static const timing_parm_info timing_parms[] = {
}; };
/* attach structures */ /* attach structures */
CFATTACH_DECL(emifs, sizeof(struct emifs_softc), CFATTACH_DECL_NEW(emifs, sizeof(struct emifs_softc),
emifs_match, emifs_attach, NULL, NULL); emifs_match, emifs_attach, NULL, NULL);
static int emifs_attached; static int emifs_attached;

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_gpio.c,v 1.3 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_gpio.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* /*
* The OMAP GPIO Controller interface is inspired by pxa2x0_gpio.c * The OMAP GPIO Controller interface is inspired by pxa2x0_gpio.c
@ -38,7 +38,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_gpio.c,v 1.3 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_gpio.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -79,7 +79,7 @@ static void omapgpio_attach(device_t, device_t, void *);
extern struct cfdriver omapgpio_cd; extern struct cfdriver omapgpio_cd;
CFATTACH_DECL(omapgpio, sizeof(struct omapgpio_softc), CFATTACH_DECL_NEW(omapgpio, sizeof(struct omapgpio_softc),
omapgpio_match, omapgpio_attach, NULL, NULL); omapgpio_match, omapgpio_attach, NULL, NULL);
static int omapgpio_intr(void *); static int omapgpio_intr(void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_mputmr.c,v 1.4 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_mputmr.c,v 1.5 2008/12/12 17:36:14 matt Exp $ */
/* /*
* Based on i80321_timer.c and arch/arm/sa11x0/sa11x0_ost.c * Based on i80321_timer.c and arch/arm/sa11x0/sa11x0_ost.c
@ -73,7 +73,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_mputmr.c,v 1.4 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_mputmr.c,v 1.5 2008/12/12 17:36:14 matt Exp $");
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
@ -139,7 +139,7 @@ static struct omapmputmr_softc *ref_sc = NULL;
#define MPU_LOAD_TIMER 0x04 #define MPU_LOAD_TIMER 0x04
#define MPU_READ_TIMER 0x08 #define MPU_READ_TIMER 0x08
CFATTACH_DECL(omapmputmr, sizeof(struct omapmputmr_softc), CFATTACH_DECL_NEW(omapmputmr, sizeof(struct omapmputmr_softc),
omapmputmr_match, omapmputmr_attach, NULL, NULL); omapmputmr_match, omapmputmr_attach, NULL, NULL);
static int static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_ocp.c,v 1.3 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_ocp.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* /*
* Autoconfiguration support for the Texas Instruments OMAP OCP bus. * Autoconfiguration support for the Texas Instruments OMAP OCP bus.
@ -96,7 +96,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_ocp.c,v 1.3 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_ocp.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include "locators.h" #include "locators.h"
@ -126,7 +126,7 @@ static int ocp_search(device_t, cfdata_t, const int *, void *);
static int ocp_print(void *, const char *); static int ocp_print(void *, const char *);
/* attach structures */ /* attach structures */
CFATTACH_DECL(ocp, sizeof(struct ocp_softc), CFATTACH_DECL_NEW(ocp, sizeof(struct ocp_softc),
ocp_match, ocp_attach, NULL, NULL); ocp_match, ocp_attach, NULL, NULL);
static int ocp_attached; static int ocp_attached;

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_rtc.c,v 1.3 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_rtc.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* /*
* OMAP RTC driver, based on i80321_timer.c. * OMAP RTC driver, based on i80321_timer.c.
@ -32,7 +32,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_rtc.c,v 1.3 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_rtc.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
@ -90,7 +90,7 @@ struct omaprtc_softc {
struct todr_chip_handle sc_todr; struct todr_chip_handle sc_todr;
}; };
CFATTACH_DECL(omaprtc, sizeof(struct omaprtc_softc), CFATTACH_DECL_NEW(omaprtc, sizeof(struct omaprtc_softc),
omaprtc_match, omaprtc_attach, NULL, NULL); omaprtc_match, omaprtc_attach, NULL, NULL);
static int omaprtc_gettime(todr_chip_handle_t, struct clock_ymdhms *); static int omaprtc_gettime(todr_chip_handle_t, struct clock_ymdhms *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: omap_tipb.c,v 1.3 2008/11/21 17:13:07 matt Exp $ */ /* $NetBSD: omap_tipb.c,v 1.4 2008/12/12 17:36:14 matt Exp $ */
/* /*
* Autoconfiguration support for the Texas Instruments OMAP TIPB. * Autoconfiguration support for the Texas Instruments OMAP TIPB.
@ -97,7 +97,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: omap_tipb.c,v 1.3 2008/11/21 17:13:07 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: omap_tipb.c,v 1.4 2008/12/12 17:36:14 matt Exp $");
#include "locators.h" #include "locators.h"
@ -123,12 +123,11 @@ struct tipb_softc {
/* prototypes */ /* prototypes */
static int tipb_match(device_t, cfdata_t, void *); static int tipb_match(device_t, cfdata_t, void *);
static void tipb_attach(device_t, device_t, void *); static void tipb_attach(device_t, device_t, void *);
static int tipb_search(device_t, cfdata_t, static int tipb_search(device_t, cfdata_t, const int *, void *);
const int *, void *);
static int tipb_print(void *, const char *); static int tipb_print(void *, const char *);
/* attach structures */ /* attach structures */
CFATTACH_DECL(tipb, sizeof(struct tipb_softc), CFATTACH_DECL_NEW(tipb, sizeof(struct tipb_softc),
tipb_match, tipb_attach, NULL, NULL); tipb_match, tipb_attach, NULL, NULL);
static int tipb_attached; static int tipb_attached;