From: mpi Date: Sun, 24 Oct 2021 17:05:03 +0000 (+0000) Subject: Constify struct cfattach. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eb7eaf8de3ff431d305450f61b441e5460c82246;p=openbsd Constify struct cfattach. ok visa@ a long time ago --- diff --git a/sys/arch/sparc64/dev/auxio.c b/sys/arch/sparc64/dev/auxio.c index ed056ae67c6..41456366b91 100644 --- a/sys/arch/sparc64/dev/auxio.c +++ b/sys/arch/sparc64/dev/auxio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auxio.c,v 1.8 2019/12/05 12:46:54 mpi Exp $ */ +/* $OpenBSD: auxio.c,v 1.9 2021/10/24 17:05:03 mpi Exp $ */ /* $NetBSD: auxio.c,v 1.1 2000/04/15 03:08:13 mrg Exp $ */ /* @@ -58,11 +58,11 @@ int auxio_sbus_match(struct device *, void *, void *); void auxio_sbus_attach(struct device *, struct device *, void *); void auxio_attach_common(struct auxio_softc *); -struct cfattach auxio_ebus_ca = { +const struct cfattach auxio_ebus_ca = { sizeof(struct auxio_softc), auxio_ebus_match, auxio_ebus_attach }; -struct cfattach auxio_sbus_ca = { +const struct cfattach auxio_sbus_ca = { sizeof(struct auxio_softc), auxio_sbus_match, auxio_sbus_attach }; diff --git a/sys/arch/sparc64/dev/bbc.c b/sys/arch/sparc64/dev/bbc.c index 7b51b288335..1aba56e3223 100644 --- a/sys/arch/sparc64/dev/bbc.c +++ b/sys/arch/sparc64/dev/bbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bbc.c,v 1.3 2008/12/14 17:10:44 kettenis Exp $ */ +/* $OpenBSD: bbc.c,v 1.4 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -55,7 +55,7 @@ struct bbc_softc { int bbc_match(struct device *, void *, void *); void bbc_attach(struct device *, struct device *, void *); -struct cfattach bbc_ca = { +const struct cfattach bbc_ca = { sizeof(struct bbc_softc), bbc_match, bbc_attach }; diff --git a/sys/arch/sparc64/dev/beep.c b/sys/arch/sparc64/dev/beep.c index fcc22676615..07c45652bc9 100644 --- a/sys/arch/sparc64/dev/beep.c +++ b/sys/arch/sparc64/dev/beep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: beep.c,v 1.9 2019/06/22 20:30:42 kn Exp $ */ +/* $OpenBSD: beep.c,v 1.10 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2006 Jason L. Wright (jason@thought.net) @@ -78,7 +78,7 @@ int beep_match(struct device *, void *, void *); void beep_attach(struct device *, struct device *, void *); void beep_setfreq(struct beep_softc *, int); -struct cfattach beep_ca = { +const struct cfattach beep_ca = { sizeof(struct beep_softc), beep_match, beep_attach }; diff --git a/sys/arch/sparc64/dev/beeper.c b/sys/arch/sparc64/dev/beeper.c index dd545b49b1d..7109c0f1dd2 100644 --- a/sys/arch/sparc64/dev/beeper.c +++ b/sys/arch/sparc64/dev/beeper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: beeper.c,v 1.13 2019/06/22 20:30:42 kn Exp $ */ +/* $OpenBSD: beeper.c,v 1.14 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -68,7 +68,7 @@ struct beeper_softc { int beeper_match(struct device *, void *, void *); void beeper_attach(struct device *, struct device *, void *); -struct cfattach beeper_ca = { +const struct cfattach beeper_ca = { sizeof(struct beeper_softc), beeper_match, beeper_attach }; diff --git a/sys/arch/sparc64/dev/cbus.c b/sys/arch/sparc64/dev/cbus.c index c45043f730c..404fca0c2fe 100644 --- a/sys/arch/sparc64/dev/cbus.c +++ b/sys/arch/sparc64/dev/cbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cbus.c,v 1.16 2016/12/20 13:40:50 jsg Exp $ */ +/* $OpenBSD: cbus.c,v 1.17 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -43,7 +43,7 @@ int cbus_match(struct device *, void *, void *); void cbus_attach(struct device *, struct device *, void *); int cbus_print(void *, const char *); -struct cfattach cbus_ca = { +const struct cfattach cbus_ca = { sizeof(struct cbus_softc), cbus_match, cbus_attach }; diff --git a/sys/arch/sparc64/dev/ce4231.c b/sys/arch/sparc64/dev/ce4231.c index 39cab2766e2..5e97b0fb228 100644 --- a/sys/arch/sparc64/dev/ce4231.c +++ b/sys/arch/sparc64/dev/ce4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ce4231.c,v 1.36 2018/12/27 11:06:38 claudio Exp $ */ +/* $OpenBSD: ce4231.c,v 1.37 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -175,7 +175,7 @@ struct audio_hw_if ce4231_sa_hw_if = { ce4231_trigger_input }; -struct cfattach audioce_ca = { +const struct cfattach audioce_ca = { sizeof (struct ce4231_softc), ce4231_match, ce4231_attach }; diff --git a/sys/arch/sparc64/dev/central.c b/sys/arch/sparc64/dev/central.c index 2a42a3d3ef9..aac9725ad8d 100644 --- a/sys/arch/sparc64/dev/central.c +++ b/sys/arch/sparc64/dev/central.c @@ -1,4 +1,4 @@ -/* $OpenBSD: central.c,v 1.10 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: central.c,v 1.11 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2004 Jason L. Wright (jason@thought.net) @@ -198,7 +198,7 @@ _central_bus_map(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t addr, return (EINVAL); } -struct cfattach central_ca = { +const struct cfattach central_ca = { sizeof(struct central_softc), central_match, central_attach }; diff --git a/sys/arch/sparc64/dev/clkbrd.c b/sys/arch/sparc64/dev/clkbrd.c index c86ae1db7a7..af465226e75 100644 --- a/sys/arch/sparc64/dev/clkbrd.c +++ b/sys/arch/sparc64/dev/clkbrd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clkbrd.c,v 1.6 2008/01/20 16:41:17 kettenis Exp $ */ +/* $OpenBSD: clkbrd.c,v 1.7 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2004 Jason L. Wright (jason@thought.net) @@ -48,7 +48,7 @@ void clkbrd_attach(struct device *, struct device *, void *); void clkbrd_led_blink(void *, int); void clkbrd_refresh(void *); -struct cfattach clkbrd_ca = { +const struct cfattach clkbrd_ca = { sizeof(struct clkbrd_softc), clkbrd_match, clkbrd_attach }; diff --git a/sys/arch/sparc64/dev/cmp.c b/sys/arch/sparc64/dev/cmp.c index 353c790ab73..8b39f479c17 100644 --- a/sys/arch/sparc64/dev/cmp.c +++ b/sys/arch/sparc64/dev/cmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmp.c,v 1.2 2008/07/11 13:47:20 kettenis Exp $ */ +/* $OpenBSD: cmp.c,v 1.3 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -25,7 +25,7 @@ int cmp_match(struct device *, void *, void *); void cmp_attach(struct device *, struct device *, void *); -struct cfattach cmp_ca = { +const struct cfattach cmp_ca = { sizeof(struct device), cmp_match, cmp_attach }; diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c index ed5585c45e2..6fbb17c76f1 100644 --- a/sys/arch/sparc64/dev/com_ebus.c +++ b/sys/arch/sparc64/dev/com_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ebus.c,v 1.24 2021/01/19 21:52:59 dlg Exp $ */ +/* $OpenBSD: com_ebus.c,v 1.25 2021/10/24 17:05:03 mpi Exp $ */ /* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */ /* @@ -53,7 +53,7 @@ int com_ebus_match(struct device *, void *, void *); void com_ebus_attach(struct device *, struct device *, void *); int com_ebus_speed(struct ebus_attach_args *); -struct cfattach com_ebus_ca = { +const struct cfattach com_ebus_ca = { sizeof(struct com_softc), com_ebus_match, com_ebus_attach }; diff --git a/sys/arch/sparc64/dev/comkbd_ebus.c b/sys/arch/sparc64/dev/comkbd_ebus.c index aacc1cee517..75138271076 100644 --- a/sys/arch/sparc64/dev/comkbd_ebus.c +++ b/sys/arch/sparc64/dev/comkbd_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: comkbd_ebus.c,v 1.23 2018/12/27 11:06:38 claudio Exp $ */ +/* $OpenBSD: comkbd_ebus.c,v 1.24 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -103,7 +103,7 @@ void comkbd_putc(struct comkbd_softc *, u_int8_t); int comkbd_intr(void *); void comkbd_soft(void *); -struct cfattach comkbd_ca = { +const struct cfattach comkbd_ca = { sizeof(struct comkbd_softc), comkbd_match, comkbd_attach }; diff --git a/sys/arch/sparc64/dev/core.c b/sys/arch/sparc64/dev/core.c index c958d4cf364..543a4dc25d1 100644 --- a/sys/arch/sparc64/dev/core.c +++ b/sys/arch/sparc64/dev/core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: core.c,v 1.1 2008/07/11 14:23:53 kettenis Exp $ */ +/* $OpenBSD: core.c,v 1.2 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -25,7 +25,7 @@ int core_match(struct device *, void *, void *); void core_attach(struct device *, struct device *, void *); -struct cfattach core_ca = { +const struct cfattach core_ca = { sizeof(struct device), core_match, core_attach }; diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index 52a5cd870db..a98955aef84 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.53 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: creator.c,v 1.54 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -77,7 +77,7 @@ struct cfdriver creator_cd = { NULL, "creator", DV_DULL }; -struct cfattach creator_ca = { +const struct cfattach creator_ca = { sizeof(struct creator_softc), creator_match, creator_attach }; diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c index 5c35201851d..307c673a89c 100644 --- a/sys/arch/sparc64/dev/ebus.c +++ b/sys/arch/sparc64/dev/ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ebus.c,v 1.25 2019/12/05 12:46:54 mpi Exp $ */ +/* $OpenBSD: ebus.c,v 1.26 2021/10/24 17:05:03 mpi Exp $ */ /* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */ /* @@ -78,7 +78,7 @@ int ebus_debug = 0x0; int ebus_match(struct device *, void *, void *); void ebus_attach(struct device *, struct device *, void *); -struct cfattach ebus_ca = { +const struct cfattach ebus_ca = { sizeof(struct ebus_softc), ebus_match, ebus_attach }; diff --git a/sys/arch/sparc64/dev/ebus_mainbus.c b/sys/arch/sparc64/dev/ebus_mainbus.c index e78a6f56b7f..7e011b9d5b6 100644 --- a/sys/arch/sparc64/dev/ebus_mainbus.c +++ b/sys/arch/sparc64/dev/ebus_mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ebus_mainbus.c,v 1.11 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: ebus_mainbus.c,v 1.12 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -56,7 +56,7 @@ extern struct cfdriver pyro_cd; int ebus_mainbus_match(struct device *, void *, void *); void ebus_mainbus_attach(struct device *, struct device *, void *); -struct cfattach ebus_mainbus_ca = { +const struct cfattach ebus_mainbus_ca = { sizeof(struct ebus_softc), ebus_mainbus_match, ebus_mainbus_attach }; diff --git a/sys/arch/sparc64/dev/environ.c b/sys/arch/sparc64/dev/environ.c index c2d2c7e7aa4..8283a549b12 100644 --- a/sys/arch/sparc64/dev/environ.c +++ b/sys/arch/sparc64/dev/environ.c @@ -1,4 +1,4 @@ -/* $OpenBSD: environ.c,v 1.1 2008/01/18 20:12:38 kettenis Exp $ */ +/* $OpenBSD: environ.c,v 1.2 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -45,7 +45,7 @@ int environ_match(struct device *, void *, void *); void environ_attach(struct device *, struct device *, void *); void environ_refresh(void *); -struct cfattach environ_ca = { +const struct cfattach environ_ca = { sizeof(struct environ_softc), environ_match, environ_attach }; diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index 12d64816cdd..7613601342c 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.51 2020/02/20 02:05:18 cheloha Exp $ */ +/* $OpenBSD: fd.c,v 1.52 2021/10/24 17:05:03 mpi Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -218,11 +218,11 @@ void fdcattach_ebus(struct device *, struct device *, void *); int fdcattach(struct fdc_softc *, int); -struct cfattach fdc_sbus_ca = { +const struct cfattach fdc_sbus_ca = { sizeof(struct fdc_softc), fdcmatch_sbus, fdcattach_sbus }; -struct cfattach fdc_ebus_ca = { +const struct cfattach fdc_ebus_ca = { sizeof(struct fdc_softc), fdcmatch_ebus, fdcattach_ebus }; @@ -276,7 +276,7 @@ int fdmatch(struct device *, void *, void *); void fdattach(struct device *, struct device *, void *); int fdactivate(struct device *, int); -struct cfattach fd_ca = { +const struct cfattach fd_ca = { sizeof(struct fd_softc), fdmatch, fdattach, NULL, fdactivate }; diff --git a/sys/arch/sparc64/dev/fhc_central.c b/sys/arch/sparc64/dev/fhc_central.c index 73e49ee7d1f..df5e82030e4 100644 --- a/sys/arch/sparc64/dev/fhc_central.c +++ b/sys/arch/sparc64/dev/fhc_central.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fhc_central.c,v 1.6 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: fhc_central.c,v 1.7 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2004 Jason L. Wright (jason@thought.net). @@ -44,7 +44,7 @@ int fhc_central_match(struct device *, void *, void *); void fhc_central_attach(struct device *, struct device *, void *); -struct cfattach fhc_central_ca = { +const struct cfattach fhc_central_ca = { sizeof(struct fhc_softc), fhc_central_match, fhc_central_attach }; diff --git a/sys/arch/sparc64/dev/fhc_mainbus.c b/sys/arch/sparc64/dev/fhc_mainbus.c index 99fc1579a56..d33d41cd0e4 100644 --- a/sys/arch/sparc64/dev/fhc_mainbus.c +++ b/sys/arch/sparc64/dev/fhc_mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fhc_mainbus.c,v 1.5 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: fhc_mainbus.c,v 1.6 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2004 Jason L. Wright (jason@thought.net). @@ -42,7 +42,7 @@ int fhc_mainbus_match(struct device *, void *, void *); void fhc_mainbus_attach(struct device *, struct device *, void *); -struct cfattach fhc_mainbus_ca = { +const struct cfattach fhc_mainbus_ca = { sizeof(struct fhc_softc), fhc_mainbus_match, fhc_mainbus_attach }; diff --git a/sys/arch/sparc64/dev/gfb.c b/sys/arch/sparc64/dev/gfb.c index 82e2dbde808..e0db571e4db 100644 --- a/sys/arch/sparc64/dev/gfb.c +++ b/sys/arch/sparc64/dev/gfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gfb.c,v 1.2 2013/10/20 20:07:27 miod Exp $ */ +/* $OpenBSD: gfb.c,v 1.3 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -50,7 +50,7 @@ struct cfdriver gfb_cd = { NULL, "gfb", DV_DULL }; -struct cfattach gfb_ca = { +const struct cfattach gfb_ca = { sizeof(struct gfb_softc), gfb_match, gfb_attach }; diff --git a/sys/arch/sparc64/dev/gfxp.c b/sys/arch/sparc64/dev/gfxp.c index 2c6826ff0a8..ddfec9ae7d8 100644 --- a/sys/arch/sparc64/dev/gfxp.c +++ b/sys/arch/sparc64/dev/gfxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gfxp.c,v 1.14 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: gfxp.c,v 1.15 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -134,7 +134,7 @@ struct wsdisplay_accessops gfxp_accessops = { int gfxp_match(struct device *, void *, void *); void gfxp_attach(struct device *, struct device *, void *); -struct cfattach gfxp_ca = { +const struct cfattach gfxp_ca = { sizeof(struct gfxp_softc), gfxp_match, gfxp_attach }; diff --git a/sys/arch/sparc64/dev/ifb.c b/sys/arch/sparc64/dev/ifb.c index 394b51120df..c2931781f88 100644 --- a/sys/arch/sparc64/dev/ifb.c +++ b/sys/arch/sparc64/dev/ifb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifb.c,v 1.24 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: ifb.c,v 1.25 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Miodrag Vallat. @@ -300,7 +300,7 @@ struct wsdisplay_accessops ifb_accessops = { int ifbmatch(struct device *, void *, void *); void ifbattach(struct device *, struct device *, void *); -struct cfattach ifb_ca = { +const struct cfattach ifb_ca = { sizeof (struct ifb_softc), ifbmatch, ifbattach }; diff --git a/sys/arch/sparc64/dev/led.c b/sys/arch/sparc64/dev/led.c index a064b2d4891..c36060d63b9 100644 --- a/sys/arch/sparc64/dev/led.c +++ b/sys/arch/sparc64/dev/led.c @@ -1,4 +1,4 @@ -/* $OpenBSD: led.c,v 1.2 2019/06/21 08:12:35 kn Exp $ */ +/* $OpenBSD: led.c,v 1.3 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -68,7 +68,7 @@ struct led_softc { int led_match(struct device *, void *, void *); void led_attach(struct device *, struct device *, void *); -struct cfattach led_ca = { +const struct cfattach led_ca = { sizeof(struct led_softc), led_match, led_attach }; diff --git a/sys/arch/sparc64/dev/lom.c b/sys/arch/sparc64/dev/lom.c index 55dd188f329..27fc021b2ff 100644 --- a/sys/arch/sparc64/dev/lom.c +++ b/sys/arch/sparc64/dev/lom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lom.c,v 1.27 2019/10/12 15:55:31 cheloha Exp $ */ +/* $OpenBSD: lom.c,v 1.28 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -181,7 +181,7 @@ int lom_match(struct device *, void *, void *); void lom_attach(struct device *, struct device *, void *); int lom_activate(struct device *, int); -struct cfattach lom_ca = { +const struct cfattach lom_ca = { sizeof(struct lom_softc), lom_match, lom_attach, NULL, lom_activate }; diff --git a/sys/arch/sparc64/dev/lpt_ebus.c b/sys/arch/sparc64/dev/lpt_ebus.c index 950def60cae..86988c8be05 100644 --- a/sys/arch/sparc64/dev/lpt_ebus.c +++ b/sys/arch/sparc64/dev/lpt_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt_ebus.c,v 1.10 2019/12/05 12:46:54 mpi Exp $ */ +/* $OpenBSD: lpt_ebus.c,v 1.11 2021/10/24 17:05:03 mpi Exp $ */ /* $NetBSD: lpt_ebus.c,v 1.8 2002/03/01 11:51:00 martin Exp $ */ /* @@ -51,7 +51,7 @@ struct lpt_ebus_softc { int lpt_ebus_match(struct device *, void *, void *); void lpt_ebus_attach(struct device *, struct device *, void *); -struct cfattach lpt_ebus_ca = { +const struct cfattach lpt_ebus_ca = { sizeof(struct lpt_ebus_softc), lpt_ebus_match, lpt_ebus_attach }; diff --git a/sys/arch/sparc64/dev/machfb.c b/sys/arch/sparc64/dev/machfb.c index c9a122c047e..6f21125a1ab 100644 --- a/sys/arch/sparc64/dev/machfb.c +++ b/sys/arch/sparc64/dev/machfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machfb.c,v 1.11 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: machfb.c,v 1.12 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -201,7 +201,7 @@ struct wsdisplay_accessops machfb_accessops = { int machfb_match(struct device *, void *, void *); void machfb_attach(struct device *, struct device *, void *); -struct cfattach machfb_ca = { +const struct cfattach machfb_ca = { sizeof(struct machfb_softc), machfb_match, machfb_attach }; diff --git a/sys/arch/sparc64/dev/mgiic.c b/sys/arch/sparc64/dev/mgiic.c index 6d1206a95f4..e50fc0c2496 100644 --- a/sys/arch/sparc64/dev/mgiic.c +++ b/sys/arch/sparc64/dev/mgiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mgiic.c,v 1.3 2015/05/07 00:00:52 jsg Exp $ */ +/* $OpenBSD: mgiic.c,v 1.4 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2008 Theo de Raadt * @@ -82,7 +82,7 @@ struct cfdriver mgiic_cd = { NULL, "mgiic", DV_DULL }; -struct cfattach mgiic_ca = { +const struct cfattach mgiic_ca = { sizeof(struct mgiic_softc), mgiic_match, mgiic_attach }; diff --git a/sys/arch/sparc64/dev/pcf8591_envctrl.c b/sys/arch/sparc64/dev/pcf8591_envctrl.c index 558b6c99851..593c641a22a 100644 --- a/sys/arch/sparc64/dev/pcf8591_envctrl.c +++ b/sys/arch/sparc64/dev/pcf8591_envctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8591_envctrl.c,v 1.6 2007/10/25 21:17:20 kettenis Exp $ */ +/* $OpenBSD: pcf8591_envctrl.c,v 1.7 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2006 Damien Miller @@ -59,7 +59,7 @@ int ecadc_match(struct device *, void *, void *); void ecadc_attach(struct device *, struct device *, void *); void ecadc_refresh(void *); -struct cfattach ecadc_ca = { +const struct cfattach ecadc_ca = { sizeof(struct ecadc_softc), ecadc_match, ecadc_attach }; diff --git a/sys/arch/sparc64/dev/pcf8591_ofw.c b/sys/arch/sparc64/dev/pcf8591_ofw.c index 8583f08fa0c..5376e635636 100644 --- a/sys/arch/sparc64/dev/pcf8591_ofw.c +++ b/sys/arch/sparc64/dev/pcf8591_ofw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcf8591_ofw.c,v 1.5 2007/10/22 20:53:10 cnst Exp $ */ +/* $OpenBSD: pcf8591_ofw.c,v 1.6 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2006 Damien Miller @@ -45,7 +45,7 @@ int pcfadc_match(struct device *, void *, void *); void pcfadc_attach(struct device *, struct device *, void *); void pcfadc_refresh(void *); -struct cfattach pcfadc_ca = { +const struct cfattach pcfadc_ca = { sizeof(struct pcfadc_softc), pcfadc_match, pcfadc_attach }; diff --git a/sys/arch/sparc64/dev/pcfiic_ebus.c b/sys/arch/sparc64/dev/pcfiic_ebus.c index a20610a245a..1ecec5ccd67 100644 --- a/sys/arch/sparc64/dev/pcfiic_ebus.c +++ b/sys/arch/sparc64/dev/pcfiic_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcfiic_ebus.c,v 1.14 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: pcfiic_ebus.c,v 1.15 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2006 David Gwynne @@ -50,7 +50,7 @@ struct pcfiic_ebus_softc { void *esc_ih; }; -struct cfattach pcfiic_ebus_ca = { +const struct cfattach pcfiic_ebus_ca = { sizeof(struct pcfiic_ebus_softc), pcfiic_ebus_match, pcfiic_ebus_attach }; diff --git a/sys/arch/sparc64/dev/pckbc_ebus.c b/sys/arch/sparc64/dev/pckbc_ebus.c index ac41b53d8f9..c3f4ff14d21 100644 --- a/sys/arch/sparc64/dev/pckbc_ebus.c +++ b/sys/arch/sparc64/dev/pckbc_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pckbc_ebus.c,v 1.14 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: pckbc_ebus.c,v 1.15 2021/10/24 17:05:03 mpi Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -65,7 +65,7 @@ struct pckbc_ebus_softc { int pckbc_ebus_match(struct device *, void *, void *); void pckbc_ebus_attach(struct device *, struct device *, void *); -struct cfattach pckbc_ebus_ca = { +const struct cfattach pckbc_ebus_ca = { sizeof(struct pckbc_ebus_softc), pckbc_ebus_match, pckbc_ebus_attach }; diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index bcde1e25101..84506f28f44 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.25 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: pcons.c,v 1.26 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -130,7 +130,7 @@ int cn_get_magic(char *magic, int len); int pconsmatch(struct device *, void *, void *); void pconsattach(struct device *, struct device *, void *); -struct cfattach pcons_ca = { +const struct cfattach pcons_ca = { sizeof(struct pconssoftc), pconsmatch, pconsattach }; diff --git a/sys/arch/sparc64/dev/pmc.c b/sys/arch/sparc64/dev/pmc.c index 5f0c19496e9..1db667af0db 100644 --- a/sys/arch/sparc64/dev/pmc.c +++ b/sys/arch/sparc64/dev/pmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmc.c,v 1.4 2014/12/10 12:27:57 mikeb Exp $ */ +/* $OpenBSD: pmc.c,v 1.5 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -53,7 +53,7 @@ void pmc_attach(struct device *, struct device *, void *); int pmc_activate(struct device *, int); int pmc_wdog_cb(void *, int); -struct cfattach pmc_ca = { +const struct cfattach pmc_ca = { sizeof(struct pmc_softc), pmc_match, pmc_attach, NULL, pmc_activate }; diff --git a/sys/arch/sparc64/dev/power.c b/sys/arch/sparc64/dev/power.c index 3ff4dcc425d..cf7eeaed929 100644 --- a/sys/arch/sparc64/dev/power.c +++ b/sys/arch/sparc64/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.8 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: power.c,v 1.9 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2006 Jason L. Wright (jason@thought.net) @@ -62,7 +62,7 @@ int power_match(struct device *, void *, void *); void power_attach(struct device *, struct device *, void *); int power_intr(void *); -struct cfattach power_ca = { +const struct cfattach power_ca = { sizeof(struct power_softc), power_match, power_attach }; diff --git a/sys/arch/sparc64/dev/ppm.c b/sys/arch/sparc64/dev/ppm.c index f351dec36cc..3e80f62c709 100644 --- a/sys/arch/sparc64/dev/ppm.c +++ b/sys/arch/sparc64/dev/ppm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppm.c,v 1.2 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: ppm.c,v 1.3 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2006 Jason L. Wright (jason@thought.net) @@ -58,7 +58,7 @@ struct ppm_softc { int ppm_match(struct device *, void *, void *); void ppm_attach(struct device *, struct device *, void *); -struct cfattach ppm_ca = { +const struct cfattach ppm_ca = { sizeof(struct ppm_softc), ppm_match, ppm_attach }; diff --git a/sys/arch/sparc64/dev/prtc.c b/sys/arch/sparc64/dev/prtc.c index c2d400710aa..dbac5af7acc 100644 --- a/sys/arch/sparc64/dev/prtc.c +++ b/sys/arch/sparc64/dev/prtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prtc.c,v 1.5 2018/08/29 02:03:12 dlg Exp $ */ +/* $OpenBSD: prtc.c,v 1.6 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -44,7 +44,7 @@ struct prtc_softc { int prtc_match(struct device *, void *, void *); void prtc_attach(struct device *, struct device *, void *); -struct cfattach prtc_ca = { +const struct cfattach prtc_ca = { sizeof(struct prtc_softc), prtc_match, prtc_attach }; diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index 0de8e00cc2e..3001a525d47 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psycho.c,v 1.78 2021/02/23 04:44:31 cheloha Exp $ */ +/* $OpenBSD: psycho.c,v 1.79 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */ /* @@ -145,7 +145,7 @@ void psycho_attach(struct device *, struct device *, void *); int psycho_print(void *aux, const char *p); -struct cfattach psycho_ca = { +const struct cfattach psycho_ca = { sizeof(struct psycho_softc), psycho_match, psycho_attach }; diff --git a/sys/arch/sparc64/dev/radeonfb.c b/sys/arch/sparc64/dev/radeonfb.c index bafd767c310..5b81ae6ac6d 100644 --- a/sys/arch/sparc64/dev/radeonfb.c +++ b/sys/arch/sparc64/dev/radeonfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeonfb.c,v 1.6 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: radeonfb.c,v 1.7 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -128,7 +128,7 @@ struct wsdisplay_accessops radeonfb_accessops = { int radeonfb_match(struct device *, void *, void *); void radeonfb_attach(struct device *, struct device *, void *); -struct cfattach radeonfb_ca = { +const struct cfattach radeonfb_ca = { sizeof(struct radeonfb_softc), radeonfb_match, radeonfb_attach }; diff --git a/sys/arch/sparc64/dev/raptor.c b/sys/arch/sparc64/dev/raptor.c index f68884f2cd6..fbd60381563 100644 --- a/sys/arch/sparc64/dev/raptor.c +++ b/sys/arch/sparc64/dev/raptor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raptor.c,v 1.10 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: raptor.c,v 1.11 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis. @@ -140,7 +140,7 @@ struct wsdisplay_accessops raptor_accessops = { int raptor_match(struct device *, void *, void *); void raptor_attach(struct device *, struct device *, void *); -struct cfattach raptor_ca = { +const struct cfattach raptor_ca = { sizeof(struct raptor_softc), raptor_match, raptor_attach }; diff --git a/sys/arch/sparc64/dev/rtc.c b/sys/arch/sparc64/dev/rtc.c index cdc84896bb8..a7df1ca9fb4 100644 --- a/sys/arch/sparc64/dev/rtc.c +++ b/sys/arch/sparc64/dev/rtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtc.c,v 1.11 2021/04/24 10:15:14 mpi Exp $ */ +/* $OpenBSD: rtc.c,v 1.12 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 1992, 1993 @@ -102,7 +102,7 @@ struct rtc_softc { int rtc_match(struct device *, void *, void *); void rtc_attach(struct device *, struct device *, void *); -struct cfattach rtc_ca = { +const struct cfattach rtc_ca = { sizeof(struct rtc_softc), rtc_match, rtc_attach }; diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c index a82f8fb73cd..d3e00a3ded6 100644 --- a/sys/arch/sparc64/dev/sab.c +++ b/sys/arch/sparc64/dev/sab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sab.c,v 1.38 2021/09/01 16:10:39 jan Exp $ */ +/* $OpenBSD: sab.c,v 1.39 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -159,7 +159,7 @@ void sabtty_cnputc(struct sabtty_softc *, int); int sabtty_cngetc(struct sabtty_softc *); void sabtty_abort(struct sabtty_softc *); -struct cfattach sab_ca = { +const struct cfattach sab_ca = { sizeof(struct sab_softc), sab_match, sab_attach }; @@ -167,7 +167,7 @@ struct cfdriver sab_cd = { NULL, "sab", DV_DULL }; -struct cfattach sabtty_ca = { +const struct cfattach sabtty_ca = { sizeof(struct sabtty_softc), sabtty_match, sabtty_attach, NULL, sabtty_activate }; diff --git a/sys/arch/sparc64/dev/sbbc.c b/sys/arch/sparc64/dev/sbbc.c index 66ba35467d7..12ea3fb0a8f 100644 --- a/sys/arch/sparc64/dev/sbbc.c +++ b/sys/arch/sparc64/dev/sbbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbbc.c,v 1.13 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: sbbc.c,v 1.14 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -143,7 +143,7 @@ struct sbbc_softc *sbbc_cons_output; int sbbc_match(struct device *, void *, void *); void sbbc_attach(struct device *, struct device *, void *); -struct cfattach sbbc_ca = { +const struct cfattach sbbc_ca = { sizeof(struct sbbc_softc), sbbc_match, sbbc_attach }; diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c index cac8561ce03..49f222e5179 100644 --- a/sys/arch/sparc64/dev/sbus.c +++ b/sys/arch/sparc64/dev/sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbus.c,v 1.45 2019/06/25 22:30:56 dlg Exp $ */ +/* $OpenBSD: sbus.c,v 1.46 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */ /*- @@ -158,11 +158,11 @@ void sbus_xbox_attach(struct device *, struct device *, void *); int sbus_mb_match(struct device *, void *, void *); int sbus_xbox_match(struct device *, void *, void *); -struct cfattach sbus_mb_ca = { +const struct cfattach sbus_mb_ca = { sizeof(struct sbus_softc), sbus_mb_match, sbus_mb_attach }; -struct cfattach sbus_xbox_ca = { +const struct cfattach sbus_xbox_ca = { sizeof(struct sbus_softc), sbus_xbox_match, sbus_xbox_attach }; diff --git a/sys/arch/sparc64/dev/ssm.c b/sys/arch/sparc64/dev/ssm.c index 0757aff3cd9..d443b961697 100644 --- a/sys/arch/sparc64/dev/ssm.c +++ b/sys/arch/sparc64/dev/ssm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssm.c,v 1.2 2014/07/12 18:44:43 tedu Exp $ */ +/* $OpenBSD: ssm.c,v 1.3 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -26,7 +26,7 @@ int ssm_match(struct device *, void *, void *); void ssm_attach(struct device *, struct device *, void *); -struct cfattach ssm_ca = { +const struct cfattach ssm_ca = { sizeof(struct device), ssm_match, ssm_attach }; diff --git a/sys/arch/sparc64/dev/stp_sbus.c b/sys/arch/sparc64/dev/stp_sbus.c index bcec41f4449..34d962c1ddf 100644 --- a/sys/arch/sparc64/dev/stp_sbus.c +++ b/sys/arch/sparc64/dev/stp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stp_sbus.c,v 1.11 2020/02/18 12:13:39 mpi Exp $ */ +/* $OpenBSD: stp_sbus.c,v 1.12 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */ /*- @@ -63,7 +63,7 @@ struct stp4020_sbus_softc { int stpmatch(struct device *, void *, void *); void stpattach(struct device *, struct device *, void *); -struct cfattach stp_sbus_ca = { +const struct cfattach stp_sbus_ca = { sizeof(struct stp4020_sbus_softc), stpmatch, stpattach }; diff --git a/sys/arch/sparc64/dev/tda.c b/sys/arch/sparc64/dev/tda.c index 416566409d6..2722fff86ff 100644 --- a/sys/arch/sparc64/dev/tda.c +++ b/sys/arch/sparc64/dev/tda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tda.c,v 1.8 2016/03/07 13:21:51 naddy Exp $ */ +/* $OpenBSD: tda.c,v 1.9 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Robert Nagy @@ -66,7 +66,7 @@ void tda_attach(struct device *, struct device *, void *); void tda_setspeed(struct tda_softc *); void tda_adjust(void *); -struct cfattach tda_ca = { +const struct cfattach tda_ca = { sizeof(struct tda_softc), tda_match, tda_attach }; diff --git a/sys/arch/sparc64/dev/upa.c b/sys/arch/sparc64/dev/upa.c index aea9e43ad42..5f9685027f1 100644 --- a/sys/arch/sparc64/dev/upa.c +++ b/sys/arch/sparc64/dev/upa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: upa.c,v 1.10 2017/09/08 05:36:52 deraadt Exp $ */ +/* $OpenBSD: upa.c,v 1.11 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -63,7 +63,7 @@ struct upa_softc { int upa_match(struct device *, void *, void *); void upa_attach(struct device *, struct device *, void *); -struct cfattach upa_ca = { +const struct cfattach upa_ca = { sizeof(struct upa_softc), upa_match, upa_attach }; diff --git a/sys/arch/sparc64/dev/uperf_ebus.c b/sys/arch/sparc64/dev/uperf_ebus.c index c63cb25da49..0bcd4fdff35 100644 --- a/sys/arch/sparc64/dev/uperf_ebus.c +++ b/sys/arch/sparc64/dev/uperf_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uperf_ebus.c,v 1.7 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: uperf_ebus.c,v 1.8 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -63,7 +63,7 @@ struct uperf_ebus_softc { int uperf_ebus_match(struct device *, void *, void *); void uperf_ebus_attach(struct device *, struct device *, void *); -struct cfattach uperf_ebus_ca = { +const struct cfattach uperf_ebus_ca = { sizeof(struct uperf_ebus_softc), uperf_ebus_match, uperf_ebus_attach }; diff --git a/sys/arch/sparc64/dev/vbus.c b/sys/arch/sparc64/dev/vbus.c index 381876fd85e..983fbac3aaf 100644 --- a/sys/arch/sparc64/dev/vbus.c +++ b/sys/arch/sparc64/dev/vbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vbus.c,v 1.11 2018/06/27 11:38:59 kettenis Exp $ */ +/* $OpenBSD: vbus.c,v 1.12 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -42,7 +42,7 @@ int vbus_match(struct device *, void *, void *); void vbus_attach(struct device *, struct device *, void *); int vbus_print(void *, const char *); -struct cfattach vbus_ca = { +const struct cfattach vbus_ca = { sizeof(struct vbus_softc), vbus_match, vbus_attach }; diff --git a/sys/arch/sparc64/dev/vcc.c b/sys/arch/sparc64/dev/vcc.c index 536d2ab6797..cfafffda1b5 100644 --- a/sys/arch/sparc64/dev/vcc.c +++ b/sys/arch/sparc64/dev/vcc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vcc.c,v 1.1 2009/05/10 12:24:04 kettenis Exp $ */ +/* $OpenBSD: vcc.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -42,7 +42,7 @@ struct vcc_softc { int vcc_match(struct device *, void *, void *); void vcc_attach(struct device *, struct device *, void *); -struct cfattach vcc_ca = { +const struct cfattach vcc_ca = { sizeof(struct vcc_softc), vcc_match, vcc_attach }; diff --git a/sys/arch/sparc64/dev/vcctty.c b/sys/arch/sparc64/dev/vcctty.c index a837811839f..7bc5e46c65a 100644 --- a/sys/arch/sparc64/dev/vcctty.c +++ b/sys/arch/sparc64/dev/vcctty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vcctty.c,v 1.14 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: vcctty.c,v 1.15 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -71,7 +71,7 @@ struct vcctty_softc { int vcctty_match(struct device *, void *, void *); void vcctty_attach(struct device *, struct device *, void *); -struct cfattach vcctty_ca = { +const struct cfattach vcctty_ca = { sizeof(struct vcctty_softc), vcctty_match, vcctty_attach }; diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c index d62ae1d1542..7e3e4a9d0cd 100644 --- a/sys/arch/sparc64/dev/vcons.c +++ b/sys/arch/sparc64/dev/vcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vcons.c,v 1.18 2020/07/22 14:02:31 deraadt Exp $ */ +/* $OpenBSD: vcons.c,v 1.19 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -47,7 +47,7 @@ struct vcons_softc { int vcons_match(struct device *, void *, void *); void vcons_attach(struct device *, struct device *, void *); -struct cfattach vcons_ca = { +const struct cfattach vcons_ca = { sizeof(struct vcons_softc), vcons_match, vcons_attach }; diff --git a/sys/arch/sparc64/dev/vds.c b/sys/arch/sparc64/dev/vds.c index b02d7473a06..f0ea227bd96 100644 --- a/sys/arch/sparc64/dev/vds.c +++ b/sys/arch/sparc64/dev/vds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vds.c,v 1.1 2009/12/31 11:58:41 kettenis Exp $ */ +/* $OpenBSD: vds.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -42,7 +42,7 @@ struct vds_softc { int vds_match(struct device *, void *, void *); void vds_attach(struct device *, struct device *, void *); -struct cfattach vds_ca = { +const struct cfattach vds_ca = { sizeof(struct vds_softc), vds_match, vds_attach }; diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c index f9191142e1f..8c3c41b0679 100644 --- a/sys/arch/sparc64/dev/vdsk.c +++ b/sys/arch/sparc64/dev/vdsk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsk.c,v 1.71 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: vdsk.c,v 1.72 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009, 2011 Mark Kettenis * @@ -169,7 +169,7 @@ struct vdsk_softc { int vdsk_match(struct device *, void *, void *); void vdsk_attach(struct device *, struct device *, void *); -struct cfattach vdsk_ca = { +const struct cfattach vdsk_ca = { sizeof(struct vdsk_softc), vdsk_match, vdsk_attach }; diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c index 913f1bb107d..b97564a70ac 100644 --- a/sys/arch/sparc64/dev/vdsp.c +++ b/sys/arch/sparc64/dev/vdsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsp.c,v 1.47 2020/01/16 13:03:28 mpi Exp $ */ +/* $OpenBSD: vdsp.c,v 1.48 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009, 2011, 2014 Mark Kettenis * @@ -267,7 +267,7 @@ struct vdsp_softc { int vdsp_match(struct device *, void *, void *); void vdsp_attach(struct device *, struct device *, void *); -struct cfattach vdsp_ca = { +const struct cfattach vdsp_ca = { sizeof(struct vdsp_softc), vdsp_match, vdsp_attach }; diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index eba8ced5d43..8f3bd1ac84b 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.66 2018/12/27 11:06:38 claudio Exp $ */ +/* $OpenBSD: vgafb.c,v 1.67 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -91,7 +91,7 @@ struct wsdisplay_accessops vgafb_accessops = { int vgafbmatch(struct device *, void *, void *); void vgafbattach(struct device *, struct device *, void *); -struct cfattach vgafb_ca = { +const struct cfattach vgafb_ca = { sizeof (struct vgafb_softc), vgafbmatch, vgafbattach }; diff --git a/sys/arch/sparc64/dev/vldc.c b/sys/arch/sparc64/dev/vldc.c index ee187eda3bb..5d738b49b0e 100644 --- a/sys/arch/sparc64/dev/vldc.c +++ b/sys/arch/sparc64/dev/vldc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vldc.c,v 1.1 2012/03/17 20:07:18 kettenis Exp $ */ +/* $OpenBSD: vldc.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009, 2012 Mark Kettenis * @@ -42,7 +42,7 @@ struct vldc_softc { int vldc_match(struct device *, void *, void *); void vldc_attach(struct device *, struct device *, void *); -struct cfattach vldc_ca = { +const struct cfattach vldc_ca = { sizeof(struct vldc_softc), vldc_match, vldc_attach }; diff --git a/sys/arch/sparc64/dev/vldcp.c b/sys/arch/sparc64/dev/vldcp.c index 6aefb941bdd..1dea00796e8 100644 --- a/sys/arch/sparc64/dev/vldcp.c +++ b/sys/arch/sparc64/dev/vldcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vldcp.c,v 1.21 2020/12/25 12:59:51 visa Exp $ */ +/* $OpenBSD: vldcp.c,v 1.22 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009, 2012 Mark Kettenis * @@ -76,7 +76,7 @@ int filt_vldcpread(struct knote *, long); int filt_vldcpwrite(struct knote *, long); int vldcpkqfilter(dev_t, struct knote *); -struct cfattach vldcp_ca = { +const struct cfattach vldcp_ca = { sizeof(struct vldcp_softc), vldcp_match, vldcp_attach }; diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c index 5a4459d5f72..120f9cd8c09 100644 --- a/sys/arch/sparc64/dev/vnet.c +++ b/sys/arch/sparc64/dev/vnet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnet.c,v 1.63 2020/12/12 11:48:52 jan Exp $ */ +/* $OpenBSD: vnet.c,v 1.64 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009, 2015 Mark Kettenis * @@ -184,7 +184,7 @@ struct vnet_softc { int vnet_match(struct device *, void *, void *); void vnet_attach(struct device *, struct device *, void *); -struct cfattach vnet_ca = { +const struct cfattach vnet_ca = { sizeof(struct vnet_softc), vnet_match, vnet_attach }; diff --git a/sys/arch/sparc64/dev/vrng.c b/sys/arch/sparc64/dev/vrng.c index 259ded23d16..bfc174d19ad 100644 --- a/sys/arch/sparc64/dev/vrng.c +++ b/sys/arch/sparc64/dev/vrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vrng.c,v 1.6 2020/05/29 04:42:24 deraadt Exp $ */ +/* $OpenBSD: vrng.c,v 1.7 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -53,7 +53,7 @@ struct vrng_softc { int vrng_match(struct device *, void *, void *); void vrng_attach(struct device *, struct device *, void *); -struct cfattach vrng_ca = { +const struct cfattach vrng_ca = { sizeof(struct vrng_softc), vrng_match, vrng_attach }; diff --git a/sys/arch/sparc64/dev/vrtc.c b/sys/arch/sparc64/dev/vrtc.c index a7816b98852..2d71f57b8ae 100644 --- a/sys/arch/sparc64/dev/vrtc.c +++ b/sys/arch/sparc64/dev/vrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vrtc.c,v 1.1 2008/03/08 19:19:43 kettenis Exp $ */ +/* $OpenBSD: vrtc.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -32,7 +32,7 @@ extern todr_chip_handle_t todr_handle; int vrtc_match(struct device *, void *, void *); void vrtc_attach(struct device *, struct device *, void *); -struct cfattach vrtc_ca = { +const struct cfattach vrtc_ca = { sizeof(struct device), vrtc_match, vrtc_attach }; diff --git a/sys/arch/sparc64/dev/vsw.c b/sys/arch/sparc64/dev/vsw.c index 6202230b2c3..b18e351fbbd 100644 --- a/sys/arch/sparc64/dev/vsw.c +++ b/sys/arch/sparc64/dev/vsw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vsw.c,v 1.1 2009/05/16 10:53:06 kettenis Exp $ */ +/* $OpenBSD: vsw.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -42,7 +42,7 @@ struct vsw_softc { int vsw_match(struct device *, void *, void *); void vsw_attach(struct device *, struct device *, void *); -struct cfattach vsw_ca = { +const struct cfattach vsw_ca = { sizeof(struct vsw_softc), vsw_match, vsw_attach }; diff --git a/sys/arch/sparc64/dev/wbsd_ebus.c b/sys/arch/sparc64/dev/wbsd_ebus.c index 0b2f64fd48c..2dd2dd6de8f 100644 --- a/sys/arch/sparc64/dev/wbsd_ebus.c +++ b/sys/arch/sparc64/dev/wbsd_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wbsd_ebus.c,v 1.1 2009/10/03 19:56:14 kettenis Exp $ */ +/* $OpenBSD: wbsd_ebus.c,v 1.2 2021/10/24 17:05:04 mpi Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -34,7 +34,7 @@ int wbsd_ebus_match(struct device *, void *, void *); void wbsd_ebus_attach(struct device *, struct device *, void *); -struct cfattach wbsd_ebus_ca = { +const struct cfattach wbsd_ebus_ca = { sizeof(struct wb_softc), wbsd_ebus_match, wbsd_ebus_attach }; diff --git a/sys/arch/sparc64/dev/z8530kbd.c b/sys/arch/sparc64/dev/z8530kbd.c index 169344a6040..689d35c7f62 100644 --- a/sys/arch/sparc64/dev/z8530kbd.c +++ b/sys/arch/sparc64/dev/z8530kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530kbd.c,v 1.29 2018/12/27 11:06:38 claudio Exp $ */ +/* $OpenBSD: z8530kbd.c,v 1.30 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */ /*- @@ -201,7 +201,7 @@ struct zskbd_softc { static int zskbd_match(struct device *, void *, void *); static void zskbd_attach(struct device *, struct device *, void *); -struct cfattach zskbd_ca = { +const struct cfattach zskbd_ca = { sizeof(struct zskbd_softc), zskbd_match, zskbd_attach }; diff --git a/sys/arch/sparc64/dev/zs.c b/sys/arch/sparc64/dev/zs.c index acd7da6439f..f6d592f69cf 100644 --- a/sys/arch/sparc64/dev/zs.c +++ b/sys/arch/sparc64/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.31 2018/12/27 11:06:38 claudio Exp $ */ +/* $OpenBSD: zs.c,v 1.32 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: zs.c,v 1.29 2001/05/30 15:24:24 lukem Exp $ */ /*- @@ -146,11 +146,11 @@ static void zs_attach_fhc(struct device *, struct device *, void *); static void zs_attach(struct zsc_softc *, struct zsdevice *, int); static int zs_print(void *, const char *name); -struct cfattach zs_sbus_ca = { +const struct cfattach zs_sbus_ca = { sizeof(struct zsc_softc), zs_match_sbus, zs_attach_sbus }; -struct cfattach zs_fhc_ca = { +const struct cfattach zs_fhc_ca = { sizeof(struct zsc_softc), zs_match_fhc, zs_attach_fhc }; diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 4595998b440..a828db2f853 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.139 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: autoconf.c,v 1.140 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -1146,7 +1146,7 @@ extern bus_space_tag_t mainbus_space_tag; } } -struct cfattach mainbus_ca = { +const struct cfattach mainbus_ca = { sizeof(struct device), mainbus_match, mainbus_attach }; diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index 0ddf3537a40..f23a46dfb58 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.70 2021/03/11 11:17:00 jsg Exp $ */ +/* $OpenBSD: clock.c,v 1.71 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -171,15 +171,15 @@ static int clockmatch_fhc(struct device *, void *, void *); static void clockattach_fhc(struct device *, struct device *, void *); static void clockattach(int, bus_space_tag_t, bus_space_handle_t); -struct cfattach clock_sbus_ca = { +const struct cfattach clock_sbus_ca = { sizeof(struct device), clockmatch_sbus, clockattach_sbus }; -struct cfattach clock_ebus_ca = { +const struct cfattach clock_ebus_ca = { sizeof(struct device), clockmatch_ebus, clockattach_ebus }; -struct cfattach clock_fhc_ca = { +const struct cfattach clock_fhc_ca = { sizeof(struct device), clockmatch_fhc, clockattach_fhc }; @@ -192,7 +192,7 @@ static void timerattach(struct device *, struct device *, void *); struct timerreg_4u timerreg_4u; /* XXX - need more cleanup */ -struct cfattach timer_ca = { +const struct cfattach timer_ca = { sizeof(struct device), timermatch, timerattach }; diff --git a/sys/arch/sparc64/sparc64/cpu.c b/sys/arch/sparc64/sparc64/cpu.c index 3cf70be752e..8907bb75698 100644 --- a/sys/arch/sparc64/sparc64/cpu.c +++ b/sys/arch/sparc64/sparc64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.72 2021/01/02 05:36:49 jmatthew Exp $ */ +/* $OpenBSD: cpu.c,v 1.73 2021/10/24 17:05:04 mpi Exp $ */ /* $NetBSD: cpu.c,v 1.13 2001/05/26 21:27:15 chs Exp $ */ /* @@ -93,7 +93,7 @@ char cpu_model[100]; int cpu_match(struct device *, void *, void *); void cpu_attach(struct device *, struct device *, void *); -struct cfattach cpu_ca = { +const struct cfattach cpu_ca = { sizeof(struct device), cpu_match, cpu_attach };