Declare all cfattach structures const.

This commit is contained in:
thorpej 2002-09-27 20:41:46 +00:00
parent f818766afe
commit bf97c13c6c
40 changed files with 125 additions and 125 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sd_atapi.c,v 1.14 2002/01/09 18:48:18 drochner Exp $ */
/* $NetBSD: sd_atapi.c,v 1.15 2002/09/27 20:41:46 thorpej Exp $ */
/*
* Copyright 1998
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sd_atapi.c,v 1.14 2002/01/09 18:48:18 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: sd_atapi.c,v 1.15 2002/09/27 20:41:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -61,7 +61,7 @@ __KERNEL_RCSID(0, "$NetBSD: sd_atapi.c,v 1.14 2002/01/09 18:48:18 drochner Exp $
int sd_atapibus_match __P((struct device *, struct cfdata *, void *));
void sd_atapibus_attach __P((struct device *, struct device *, void *));
struct cfattach sd_atapibus_ca = {
const struct cfattach sd_atapibus_ca = {
sizeof(struct sd_softc), sd_atapibus_match, sd_atapibus_attach,
sddetach, sdactivate,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: sd_scsi.c,v 1.22 2002/01/09 04:12:12 thorpej Exp $ */
/* $NetBSD: sd_scsi.c,v 1.23 2002/09/27 20:41:47 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sd_scsi.c,v 1.22 2002/01/09 04:12:12 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: sd_scsi.c,v 1.23 2002/09/27 20:41:47 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -76,7 +76,7 @@ __KERNEL_RCSID(0, "$NetBSD: sd_scsi.c,v 1.22 2002/01/09 04:12:12 thorpej Exp $")
int sd_scsibus_match __P((struct device *, struct cfdata *, void *));
void sd_scsibus_attach __P((struct device *, struct device *, void *));
struct cfattach sd_scsibus_ca = {
const struct cfattach sd_scsibus_ca = {
sizeof(struct sd_softc), sd_scsibus_match, sd_scsibus_attach,
sddetach, sdactivate,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: ses.c,v 1.14 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: ses.c,v 1.15 2002/09/27 20:41:48 thorpej Exp $ */
/*
* Copyright (C) 2000 National Aeronautics & Space Administration
* All rights reserved.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ses.c,v 1.14 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: ses.c,v 1.15 2002/09/27 20:41:48 thorpej Exp $");
#include "opt_scsi.h"
@ -170,7 +170,7 @@ static int ses_match __P((struct device *, struct cfdata *, void *));
static void ses_attach __P((struct device *, struct device *, void *));
static enctyp ses_device_type __P((struct scsipibus_attach_args *));
struct cfattach ses_ca = {
const struct cfattach ses_ca = {
sizeof (struct ses_softc), ses_match, ses_attach
};
extern struct cfdriver ses_cd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ss.c,v 1.41 2002/09/14 21:41:24 chs Exp $ */
/* $NetBSD: ss.c,v 1.42 2002/09/27 20:41:49 thorpej Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ss.c,v 1.41 2002/09/14 21:41:24 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: ss.c,v 1.42 2002/09/27 20:41:49 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -73,7 +73,7 @@ void ssattach(struct device *, struct device *, void *);
int ssdetach(struct device *self, int flags);
int ssactivate(struct device *self, enum devact act);
struct cfattach ss_ca = {
const struct cfattach ss_ca = {
sizeof(struct ss_softc), ssmatch, ssattach, ssdetach, ssactivate
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: st_atapi.c,v 1.8 2002/04/23 20:41:20 bouyer Exp $ */
/* $NetBSD: st_atapi.c,v 1.9 2002/09/27 20:41:49 thorpej Exp $ */
/*
* Copyright (c) 2001 Manuel Bouyer.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: st_atapi.c,v 1.8 2002/04/23 20:41:20 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: st_atapi.c,v 1.9 2002/09/27 20:41:49 thorpej Exp $");
#include "opt_scsi.h"
#include "rnd.h"
@ -54,7 +54,7 @@ int st_atapibus_mode_sense __P((struct st_softc *, int));
int st_atapibus_mode_select __P((struct st_softc *, int));
int st_atapibus_do_ms __P((struct st_softc *, int, void *, int, int));
struct cfattach st_atapibus_ca = {
const struct cfattach st_atapibus_ca = {
sizeof(struct st_softc), st_atapibus_match, st_atapibus_attach,
stdetach, stactivate
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: st_scsi.c,v 1.7 2001/12/07 11:26:31 yamt Exp $ */
/* $NetBSD: st_scsi.c,v 1.8 2002/09/27 20:41:50 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: st_scsi.c,v 1.7 2001/12/07 11:26:31 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: st_scsi.c,v 1.8 2002/09/27 20:41:50 thorpej Exp $");
#include "opt_scsi.h"
#include "rnd.h"
@ -81,7 +81,7 @@ int st_scsibus_mode_sense __P((struct st_softc *, int));
int st_scsibus_mode_select __P((struct st_softc *, int));
int st_scsibus_cmprss __P((struct st_softc *, int, int));
struct cfattach st_scsibus_ca = {
const struct cfattach st_scsibus_ca = {
sizeof(struct st_softc), st_scsibus_match, st_scsibus_attach,
stdetach, stactivate
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: uk.c,v 1.34 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: uk.c,v 1.35 2002/09/27 20:41:50 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uk.c,v 1.34 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: uk.c,v 1.35 2002/09/27 20:41:50 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -71,10 +71,10 @@ int ukactivate __P((struct device *, enum devact));
int ukdetach __P((struct device *, int));
struct cfattach uk_scsibus_ca = {
const struct cfattach uk_scsibus_ca = {
sizeof(struct uk_softc), ukmatch, ukattach, ukdetach, ukactivate,
};
struct cfattach uk_atapibus_ca = {
const struct cfattach uk_atapibus_ca = {
sizeof(struct uk_softc), ukmatch, ukattach, ukdetach, ukactivate,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgsixvar.h,v 1.2 2002/03/11 16:01:57 pk Exp $ */
/* $NetBSD: cgsixvar.h,v 1.3 2002/09/27 20:41:51 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -79,6 +79,6 @@ extern int cgsix_use_rasterconsole;
#endif
/* XXX - export sbus attach struct for overloaded obio bus */
extern struct cfattach cgsix_sbus_ca;
extern const struct cfattach cgsix_sbus_ca;
void cg6attach(struct cgsix_softc *, char *, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbd_zs.c,v 1.10 2001/12/09 12:03:32 pk Exp $ */
/* $NetBSD: kbd_zs.c,v 1.11 2002/09/27 20:41:52 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kbd_zs.c,v 1.10 2001/12/09 12:03:32 pk Exp $");
__KERNEL_RCSID(0, "$NetBSD: kbd_zs.c,v 1.11 2002/09/27 20:41:52 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -101,7 +101,7 @@ static int kbd_zs_match(struct device *, struct cfdata *, void *);
static void kbd_zs_attach(struct device *, struct device *, void *);
static void kbd_zs_write_data __P((struct kbd_softc *, int));
struct cfattach kbd_zs_ca = {
const struct cfattach kbd_zs_ca = {
sizeof(struct kbd_softc), kbd_zs_match, kbd_zs_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: ms_zs.c,v 1.6 2001/12/09 12:02:06 pk Exp $ */
/* $NetBSD: ms_zs.c,v 1.7 2002/09/27 20:41:52 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ms_zs.c,v 1.6 2001/12/09 12:02:06 pk Exp $");
__KERNEL_RCSID(0, "$NetBSD: ms_zs.c,v 1.7 2002/09/27 20:41:52 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -100,7 +100,7 @@ int ms_zs_bps = MS_DEFAULT_BPS;
static int ms_zs_match(struct device *, struct cfdata *, void *);
static void ms_zs_attach(struct device *, struct device *, void *);
struct cfattach ms_zs_ca = {
const struct cfattach ms_zs_ca = {
sizeof(struct ms_softc), ms_zs_match, ms_zs_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunkbd.c,v 1.9 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: sunkbd.c,v 1.10 2002/09/27 20:41:53 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.9 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.10 2002/09/27 20:41:53 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -99,7 +99,7 @@ int sunkbdstart(struct tty *);
/* Default keyboard baud rate */
int sunkbd_bps = KBD_DEFAULT_BPS;
struct cfattach kbd_ca = {
const struct cfattach kbd_ca = {
sizeof(struct kbd_softc), sunkbd_match, sunkbd_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunms.c,v 1.8 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: sunms.c,v 1.9 2002/09/27 20:41:53 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.8 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.9 2002/09/27 20:41:53 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -94,7 +94,7 @@ static void sunms_attach(struct device *, struct device *, void *);
static int sunmsiopen(struct device *, int mode);
int sunmsinput(int, struct tty *);
struct cfattach ms_ca = {
const struct cfattach ms_ca = {
sizeof(struct ms_softc), sunms_match, sunms_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: asc_tc.c,v 1.19 2001/11/15 09:48:19 lukem Exp $ */
/* $NetBSD: asc_tc.c,v 1.20 2002/09/27 20:41:54 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: asc_tc.c,v 1.19 2001/11/15 09:48:19 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: asc_tc.c,v 1.20 2002/09/27 20:41:54 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -75,7 +75,7 @@ struct asc_softc {
static int asc_tc_match __P((struct device *, struct cfdata *, void *));
static void asc_tc_attach __P((struct device *, struct device *, void *));
struct cfattach asc_tc_ca = {
const struct cfattach asc_tc_ca = {
sizeof(struct asc_softc), asc_tc_match, asc_tc_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: asc_tcds.c,v 1.5 2001/11/15 09:48:19 lukem Exp $ */
/* $NetBSD: asc_tcds.c,v 1.6 2002/09/27 20:41:55 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: asc_tcds.c,v 1.5 2001/11/15 09:48:19 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: asc_tcds.c,v 1.6 2002/09/27 20:41:55 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -107,7 +107,7 @@ static int asc_tcds_match __P((struct device *, struct cfdata *, void *));
static void asc_tcds_attach __P((struct device *, struct device *, void *));
/* Linkup to the rest of the kernel */
struct cfattach asc_tcds_ca = {
const struct cfattach asc_tcds_ca = {
sizeof(struct asc_softc), asc_tcds_match, asc_tcds_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: bba.c,v 1.15 2001/11/13 06:26:09 lukem Exp $ */
/* $NetBSD: bba.c,v 1.16 2002/09/27 20:41:55 thorpej Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
/* maxine/alpha baseboard audio (bba) */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bba.c,v 1.15 2001/11/13 06:26:09 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: bba.c,v 1.16 2002/09/27 20:41:55 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -101,7 +101,7 @@ struct bba_softc {
int bba_match __P((struct device *, struct cfdata *, void *));
void bba_attach __P((struct device *, struct device *, void *));
struct cfattach bba_ca = {
const struct cfattach bba_ca = {
sizeof(struct bba_softc), bba_match, bba_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_fta.c,v 1.19 2001/11/13 06:26:10 lukem Exp $ */
/* $NetBSD: if_fta.c,v 1.20 2002/09/27 20:41:55 thorpej Exp $ */
/*-
* Copyright (c) 1996 Matt Thomas <matt@3am-software.com>
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_fta.c,v 1.19 2001/11/13 06:26:10 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_fta.c,v 1.20 2002/09/27 20:41:55 thorpej Exp $");
#include "opt_inet.h"
@ -120,4 +120,4 @@ pdq_tc_attach(
printf("%s: warning: couldn't establish shutdown hook\n", self->dv_xname);
}
struct cfattach fta_ca = { sizeof(pdq_softc_t), pdq_tc_match, pdq_tc_attach };
const struct cfattach fta_ca = { sizeof(pdq_softc_t), pdq_tc_match, pdq_tc_attach };

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_ioasic.c,v 1.18 2001/11/13 06:26:10 lukem Exp $ */
/* $NetBSD: if_le_ioasic.c,v 1.19 2002/09/27 20:41:56 thorpej Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_le_ioasic.c,v 1.18 2001/11/13 06:26:10 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_le_ioasic.c,v 1.19 2002/09/27 20:41:56 thorpej Exp $");
#include "opt_inet.h"
@ -74,7 +74,7 @@ struct le_ioasic_softc {
static int le_ioasic_match __P((struct device *, struct cfdata *, void *));
static void le_ioasic_attach __P((struct device *, struct device *, void *));
struct cfattach le_ioasic_ca = {
const struct cfattach le_ioasic_ca = {
sizeof(struct le_softc), le_ioasic_match, le_ioasic_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $ */
/* $NetBSD: if_le_tc.c,v 1.13 2002/09/27 20:41:56 thorpej Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_le_tc.c,v 1.13 2002/09/27 20:41:56 thorpej Exp $");
#include "opt_inet.h"
@ -63,7 +63,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $");
int le_tc_match __P((struct device *, struct cfdata *, void *));
void le_tc_attach __P((struct device *, struct device *, void *));
struct cfattach le_tc_ca = {
const struct cfattach le_tc_ca = {
sizeof(struct le_softc), le_tc_match, le_tc_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: px.c,v 1.14 2002/06/02 14:44:46 drochner Exp $ */
/* $NetBSD: px.c,v 1.15 2002/09/27 20:41:56 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.14 2002/06/02 14:44:46 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.15 2002/09/27 20:41:56 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -114,7 +114,7 @@ struct px_softc {
volatile u_int32_t *px_qpoll[PX_BUF_COUNT];
};
struct cfattach px_ca = {
const struct cfattach px_ca = {
sizeof(struct px_softc), px_match, px_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: pxg.c,v 1.10 2002/03/17 19:41:02 atatat Exp $ */
/* $NetBSD: pxg.c,v 1.11 2002/09/27 20:41:57 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pxg.c,v 1.10 2002/03/17 19:41:02 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: pxg.c,v 1.11 2002/09/27 20:41:57 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -104,7 +104,7 @@ struct pxg_softc {
struct stic_info *pxg_si;
};
struct cfattach pxg_ca = {
const struct cfattach pxg_ca = {
sizeof(struct pxg_softc), pxg_match, pxg_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: tc.c,v 1.31 2002/09/27 03:18:21 thorpej Exp $ */
/* $NetBSD: tc.c,v 1.32 2002/09/27 20:41:57 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tc.c,v 1.31 2002/09/27 03:18:21 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tc.c,v 1.32 2002/09/27 20:41:57 thorpej Exp $");
#include "opt_tcverbose.h"
@ -45,7 +45,7 @@ __KERNEL_RCSID(0, "$NetBSD: tc.c,v 1.31 2002/09/27 03:18:21 thorpej Exp $");
int tcmatch __P((struct device *, struct cfdata *, void *));
void tcattach __P((struct device *, struct device *, void *));
struct cfattach tc_ca = {
const struct cfattach tc_ca = {
sizeof(struct tc_softc), tcmatch, tcattach
};
extern struct cfdriver tc_cd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcds.c,v 1.5 2002/09/27 15:37:34 provos Exp $ */
/* $NetBSD: tcds.c,v 1.6 2002/09/27 20:41:58 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcds.c,v 1.5 2002/09/27 15:37:34 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcds.c,v 1.6 2002/09/27 20:41:58 thorpej Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -111,7 +111,7 @@ void tcdsattach __P((struct device *, struct device *, void *));
int tcdsprint __P((void *, const char *));
int tcdssubmatch __P((struct device *, struct cfdata *, void *));
struct cfattach tcds_ca = {
const struct cfattach tcds_ca = {
sizeof(struct tcds_softc), tcdsmatch, tcdsattach,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_ioasic.c,v 1.16 2002/09/27 03:18:21 thorpej Exp $ */
/* $NetBSD: zs_ioasic.c,v 1.17 2002/09/27 20:41:58 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_ioasic.c,v 1.16 2002/09/27 03:18:21 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_ioasic.c,v 1.17 2002/09/27 20:41:58 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -196,7 +196,7 @@ void zs_ioasic_attach __P((struct device *, struct device *, void *));
int zs_ioasic_print __P((void *, const char *name));
int zs_ioasic_submatch __P((struct device *, struct cfdata *, void *));
struct cfattach zsc_ioasic_ca = {
const struct cfattach zsc_ioasic_ca = {
sizeof(struct zsc_softc), zs_ioasic_match, zs_ioasic_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: zskbd.c,v 1.5 2002/03/17 19:41:04 atatat Exp $ */
/* $NetBSD: zskbd.c,v 1.6 2002/09/27 20:41:59 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zskbd.c,v 1.5 2002/03/17 19:41:04 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: zskbd.c,v 1.6 2002/09/27 20:41:59 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -127,7 +127,7 @@ static void zskbd_input __P((struct zskbd_softc *, int));
static int zskbd_match __P((struct device *, struct cfdata *, void *));
static void zskbd_attach __P((struct device *, struct device *, void *));
struct cfattach zskbd_ca = {
const struct cfattach zskbd_ca = {
sizeof(struct zskbd_softc), zskbd_match, zskbd_attach,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: zsms.c,v 1.6 2002/05/06 00:48:58 ad Exp $ */
/* $NetBSD: zsms.c,v 1.7 2002/09/27 20:41:59 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zsms.c,v 1.6 2002/05/06 00:48:58 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: zsms.c,v 1.7 2002/09/27 20:41:59 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -118,7 +118,7 @@ static int zsms_match __P((struct device *, struct cfdata *, void *));
static void zsms_attach __P((struct device *, struct device *, void *));
static void zsms_input __P((void *, int));
struct cfattach zsms_ca = {
const struct cfattach zsms_ca = {
sizeof(struct zsms_softc), zsms_match, zsms_attach,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhub.c,v 1.59 2002/09/23 05:51:20 simonb Exp $ */
/* $NetBSD: uhub.c,v 1.60 2002/09/27 20:42:00 thorpej Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
/*
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.59 2002/09/23 05:51:20 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.60 2002/09/27 20:42:00 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -102,7 +102,7 @@ Static bus_child_detached_t uhub_child_detached;
USB_DECLARE_DRIVER(uhub);
/* Create the driver instance for the hub connected to hub case */
struct cfattach uhub_uhub_ca = {
const struct cfattach uhub_uhub_ca = {
sizeof(struct uhub_softc), uhub_match, uhub_attach,
uhub_detach, uhub_activate
};

View File

@ -1,5 +1,5 @@
/* $OpenBSD: usb_port.h,v 1.18 2000/09/06 22:42:10 rahnds Exp $ */
/* $NetBSD: usb_port.h,v 1.56 2002/07/11 21:14:34 augustss Exp $ */
/* $NetBSD: usb_port.h,v 1.57 2002/09/27 20:42:01 thorpej Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@ -133,7 +133,7 @@ int __CONCAT(dname,_activate)(struct device *, enum devact); \
\
extern struct cfdriver __CONCAT(dname,_cd); \
\
struct cfattach __CONCAT(dname,_ca) = { \
const struct cfattach __CONCAT(dname,_ca) = { \
sizeof(struct __CONCAT(dname,_softc)), \
__CONCAT(dname,_match), \
__CONCAT(dname,_attach), \
@ -316,7 +316,7 @@ struct cfdriver __CONCAT(dname,_cd) = { \
NULL, #dname, DV_DULL \
}; \
\
struct cfattach __CONCAT(dname,_ca) = { \
const struct cfattach __CONCAT(dname,_ca) = { \
sizeof(struct __CONCAT(dname,_softc)), \
__CONCAT(dname,_match), \
__CONCAT(dname,_attach), \

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie_vme.c,v 1.14 2001/11/13 06:17:07 lukem Exp $ */
/* $NetBSD: if_ie_vme.c,v 1.15 2002/09/27 20:42:01 thorpej Exp $ */
/*-
* Copyright (c) 1995 Charles D. Cranor
@ -145,7 +145,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.14 2001/11/13 06:17:07 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.15 2002/09/27 20:42:01 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -244,7 +244,7 @@ struct ie_vme_softc {
bus_space_handle_t ievh;
};
struct cfattach ie_vme_ca = {
const struct cfattach ie_vme_ca = {
sizeof(struct ie_vme_softc), ie_vme_match, ie_vme_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: sc_vme.c,v 1.5 2002/09/27 15:37:39 provos Exp $ */
/* $NetBSD: sc_vme.c,v 1.6 2002/09/27 20:42:02 thorpej Exp $ */
/*-
* Copyright (c) 1996,2000,2001 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sc_vme.c,v 1.5 2002/09/27 15:37:39 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sc_vme.c,v 1.6 2002/09/27 20:42:02 thorpej Exp $");
#include "opt_ddb.h"
@ -117,7 +117,7 @@ static void sc_vme_attach __P((struct device *, struct device *, void *));
static int sc_vme_intr __P((void *));
/* Auto-configuration glue. */
struct cfattach sc_vme_ca = {
const struct cfattach sc_vme_ca = {
sizeof(struct sunscpal_softc), sc_vme_match, sc_vme_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: si.c,v 1.9 2002/09/27 15:37:39 provos Exp $ */
/* $NetBSD: si.c,v 1.10 2002/09/27 20:42:03 thorpej Exp $ */
/*-
* Copyright (c) 1996,2000 The NetBSD Foundation, Inc.
@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: si.c,v 1.9 2002/09/27 15:37:39 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: si.c,v 1.10 2002/09/27 20:42:03 thorpej Exp $");
#include "opt_ddb.h"
@ -200,7 +200,7 @@ void si_intr_off __P((struct ncr5380_softc *));
/* Auto-configuration glue. */
struct cfattach si_ca = {
const struct cfattach si_ca = {
sizeof(struct si_softc), si_match, si_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: vme.c,v 1.6 2002/09/27 03:18:22 thorpej Exp $ */
/* $NetBSD: vme.c,v 1.7 2002/09/27 20:42:03 thorpej Exp $ */
/*
* Copyright (c) 1999
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.6 2002/09/27 03:18:22 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.7 2002/09/27 20:42:03 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -57,11 +57,11 @@ int vmedetach __P((struct device*));
#define VME_NUMCFRANGES 3 /* cf. "files.vme" */
struct cfattach vme_ca = {
const struct cfattach vme_ca = {
sizeof(struct vmebus_softc), vmematch, vmeattach,
};
struct cfattach vme_slv_ca = {
const struct cfattach vme_slv_ca = {
0 /* never used */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: xd.c,v 1.42 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: xd.c,v 1.43 2002/09/27 20:42:04 thorpej Exp $ */
/*
*
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.42 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.43 2002/09/27 20:42:04 thorpej Exp $");
#undef XDC_DEBUG /* full debug */
#define XDC_DIAG /* extra sanity checks */
@ -278,12 +278,12 @@ void xdc_md_setup()
* cfattach's: device driver interface to autoconfig
*/
struct cfattach xdc_ca = {
const struct cfattach xdc_ca = {
sizeof(struct xdc_softc), xdcmatch, xdcattach
};
struct cfattach xd_ca = {
const struct cfattach xd_ca = {
sizeof(struct xd_softc), xdmatch, xdattach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: xy.c,v 1.42 2002/09/27 15:37:39 provos Exp $ */
/* $NetBSD: xy.c,v 1.43 2002/09/27 20:42:05 thorpej Exp $ */
/*
*
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.42 2002/09/27 15:37:39 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.43 2002/09/27 20:42:05 thorpej Exp $");
#undef XYC_DEBUG /* full debug */
#undef XYC_DIAG /* extra sanity checks */
@ -193,11 +193,11 @@ int xygetdisklabel __P((struct xy_softc *, void *));
* cfattach's: device driver interface to autoconfig
*/
struct cfattach xyc_ca = {
const struct cfattach xyc_ca = {
sizeof(struct xyc_softc), xycmatch, xycattach
};
struct cfattach xy_ca = {
const struct cfattach xy_ca = {
sizeof(struct xy_softc), xymatch, xyattach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsdisplay.c,v 1.66 2002/09/27 15:37:40 provos Exp $ */
/* $NetBSD: wsdisplay.c,v 1.67 2002/09/27 20:42:08 thorpej Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.66 2002/09/27 15:37:40 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.67 2002/09/27 20:42:08 thorpej Exp $");
#include "opt_wsdisplay_compat.h"
#include "opt_compat_netbsd.h"
@ -143,13 +143,13 @@ static void wsdisplay_emul_attach(struct device *, struct device *, void *);
static int wsdisplay_noemul_match(struct device *, struct cfdata *, void *);
static void wsdisplay_noemul_attach(struct device *, struct device *, void *);
struct cfattach wsdisplay_emul_ca = {
const struct cfattach wsdisplay_emul_ca = {
sizeof (struct wsdisplay_softc),
wsdisplay_emul_match,
wsdisplay_emul_attach,
};
struct cfattach wsdisplay_noemul_ca = {
const struct cfattach wsdisplay_noemul_ca = {
sizeof (struct wsdisplay_softc),
wsdisplay_noemul_match,
wsdisplay_noemul_attach,

View File

@ -1,4 +1,4 @@
/* $NetBSD: wskbd.c,v 1.62 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: wskbd.c,v 1.63 2002/09/27 20:42:09 thorpej Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.62 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: wskbd.c,v 1.63 2002/09/27 20:42:09 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -236,7 +236,7 @@ static int wskbd_mux_close(struct wsevsrc *);
static int wskbd_do_open(struct wskbd_softc *, struct wseventvar *);
static int wskbd_do_ioctl(struct device *, u_long, caddr_t, int, struct proc *);
struct cfattach wskbd_ca = {
const struct cfattach wskbd_ca = {
sizeof (struct wskbd_softc), wskbd_match, wskbd_attach,
wskbd_detach, wskbd_activate
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsmouse.c,v 1.24 2002/09/06 13:18:43 gehenna Exp $ */
/* $NetBSD: wsmouse.c,v 1.25 2002/09/27 20:42:10 thorpej Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.24 2002/09/06 13:18:43 gehenna Exp $");
__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.25 2002/09/27 20:42:10 thorpej Exp $");
#include "wsmouse.h"
#include "wsdisplay.h"
@ -152,7 +152,7 @@ static int wsmousedoioctl(struct device *, u_long, caddr_t, int, struct proc *)
static int wsmousedoopen(struct wsmouse_softc *, struct wseventvar *);
struct cfattach wsmouse_ca = {
const struct cfattach wsmouse_ca = {
sizeof (struct wsmouse_softc), wsmouse_match, wsmouse_attach,
wsmouse_detach, wsmouse_activate
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: bi_xmi.c,v 1.2 2001/11/13 06:08:32 lukem Exp $ */
/* $NetBSD: bi_xmi.c,v 1.3 2002/09/27 20:42:11 thorpej Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bi_xmi.c,v 1.2 2001/11/13 06:08:32 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: bi_xmi.c,v 1.3 2002/09/27 20:42:11 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -83,7 +83,7 @@ bi_xmi_attach(struct device *parent, struct device *self, void *aux)
bi_attach(sc);
}
struct cfattach bi_xmi_ca = {
const struct cfattach bi_xmi_ca = {
sizeof(struct bi_softc), bi_xmi_match, bi_xmi_attach
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_autoconf.c,v 1.72 2002/09/27 15:37:45 provos Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.73 2002/09/27 20:42:12 thorpej Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.72 2002/09/27 15:37:45 provos Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.73 2002/09/27 20:42:12 thorpej Exp $");
#include "opt_ddb.h"
@ -547,7 +547,7 @@ config_attach(struct device *parent, struct cfdata *cf, void *aux,
struct device *dev;
struct cftable *ct;
struct cfdriver *cd;
struct cfattach *ca;
const struct cfattach *ca;
size_t lname, lunit;
const char *xunit;
int myunit;
@ -662,7 +662,7 @@ config_detach(struct device *dev, int flags)
{
struct cftable *ct;
struct cfdata *cf;
struct cfattach *ca;
const struct cfattach *ca;
struct cfdriver *cd;
#ifdef DIAGNOSTIC
struct device *d;
@ -784,7 +784,7 @@ config_detach(struct device *dev, int flags)
int
config_activate(struct device *dev)
{
struct cfattach *ca = dev->dv_cfdata->cf_attach;
const struct cfattach *ca = dev->dv_cfdata->cf_attach;
int rv = 0, oflags = dev->dv_flags;
if (ca->ca_activate == NULL)
@ -802,7 +802,7 @@ config_activate(struct device *dev)
int
config_deactivate(struct device *dev)
{
struct cfattach *ca = dev->dv_cfdata->cf_attach;
const struct cfattach *ca = dev->dv_cfdata->cf_attach;
int rv = 0, oflags = dev->dv_flags;
if (ca->ca_activate == NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: device.h,v 1.53 2002/09/27 03:18:23 thorpej Exp $ */
/* $NetBSD: device.h,v 1.54 2002/09/27 20:42:13 thorpej Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@ -179,7 +179,7 @@ struct cfparent {
*/
struct cfdata {
const char *cf_name; /* driver name */
struct cfattach *cf_attach; /* config attachment */
const struct cfattach *cf_attach;/* config attachment */
short cf_unit; /* unit number */
short cf_fstate; /* finding state (below) */
int *cf_loc; /* locators (machine dependent) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkioconf.c,v 1.64 2002/09/27 02:24:06 thorpej Exp $ */
/* $NetBSD: mkioconf.c,v 1.65 2002/09/27 20:42:14 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -233,7 +233,7 @@ emitexterns(FILE *fp)
TAILQ_FOREACH(da, &alldevas, d_next) {
if (!deva_has_instances(da, WILD))
continue;
if (fprintf(fp, "extern struct cfattach %s_ca;\n",
if (fprintf(fp, "extern const struct cfattach %s_ca;\n",
da->d_name) < 0)
return (1);
}