summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2022-03-13 08:04:39 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2022-03-13 08:04:39 +0000
commitecd34776fe2c5a8a2e74ded8ea4c93337cf01d30 (patch)
tree6ba4139991fafde7a514b0444cb7d3596bfaf6d7 /sys
parent992ad5fdbf7650fb9cae2161ef0444188157e7bd (diff)
Constify struct cfattach.
ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/cpu.c4
-rw-r--r--sys/arch/alpha/alpha/mainbus.c4
-rw-r--r--sys/arch/alpha/isa/mcclock_isa.c4
-rw-r--r--sys/arch/alpha/mcbus/mcbus.c4
-rw-r--r--sys/arch/alpha/mcbus/mcmem.c4
-rw-r--r--sys/arch/alpha/pci/apecs.c4
-rw-r--r--sys/arch/alpha/pci/cia.c4
-rw-r--r--sys/arch/alpha/pci/irongate.c4
-rw-r--r--sys/arch/alpha/pci/lca.c4
-rw-r--r--sys/arch/alpha/pci/mcpcia.c4
-rw-r--r--sys/arch/alpha/pci/sio.c4
-rw-r--r--sys/arch/alpha/pci/tsc.c6
-rw-r--r--sys/arch/alpha/tc/ioasic.c4
-rw-r--r--sys/arch/alpha/tc/mcclock_ioasic.c4
-rw-r--r--sys/arch/alpha/tc/tcasic.c4
-rw-r--r--sys/arch/hppa/dev/astro.c4
-rw-r--r--sys/arch/hppa/dev/com_dino.c4
-rw-r--r--sys/arch/hppa/dev/com_ssio.c4
-rw-r--r--sys/arch/hppa/dev/cpu.c4
-rw-r--r--sys/arch/hppa/dev/dino.c4
-rw-r--r--sys/arch/hppa/dev/elroy.c4
-rw-r--r--sys/arch/hppa/dev/gecko.c4
-rw-r--r--sys/arch/hppa/dev/lcd.c4
-rw-r--r--sys/arch/hppa/dev/lpt_ssio.c4
-rw-r--r--sys/arch/hppa/dev/mongoose.c4
-rw-r--r--sys/arch/hppa/dev/pdc.c4
-rw-r--r--sys/arch/hppa/dev/phantomas.c4
-rw-r--r--sys/arch/hppa/dev/power.c4
-rw-r--r--sys/arch/hppa/dev/siop_sgc.c4
-rw-r--r--sys/arch/hppa/dev/ssio.c4
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c4
-rw-r--r--sys/arch/hppa/dev/uturn.c4
-rw-r--r--sys/arch/hppa/gsc/com_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/fdc_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/gsckbc.c4
-rw-r--r--sys/arch/hppa/gsc/harmony.c4
-rw-r--r--sys/arch/hppa/gsc/hil_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/if_ie_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/lpt_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/mongoose_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/oosiop_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/osiop_gsc.c4
-rw-r--r--sys/arch/hppa/gsc/siop_gsc.c4
-rw-r--r--sys/arch/hppa/hppa/mainbus.c4
-rw-r--r--sys/arch/hppa/hppa/mem.c4
45 files changed, 91 insertions, 91 deletions
diff --git a/sys/arch/alpha/alpha/cpu.c b/sys/arch/alpha/alpha/cpu.c
index 9f9821a9c99..2f7258a4520 100644
--- a/sys/arch/alpha/alpha/cpu.c
+++ b/sys/arch/alpha/alpha/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.44 2020/07/15 08:24:29 fcambus Exp $ */
+/* $OpenBSD: cpu.c,v 1.45 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: cpu.c,v 1.44 2000/05/23 05:12:53 thorpej Exp $ */
/*-
@@ -107,7 +107,7 @@ u_long cpu_implver, cpu_amask;
int cpumatch(struct device *, void *, void *);
void cpuattach(struct device *, struct device *, void *);
-struct cfattach cpu_ca = {
+const struct cfattach cpu_ca = {
sizeof(struct device), cpumatch, cpuattach
};
diff --git a/sys/arch/alpha/alpha/mainbus.c b/sys/arch/alpha/alpha/mainbus.c
index 80f0e736924..d8abf640a17 100644
--- a/sys/arch/alpha/alpha/mainbus.c
+++ b/sys/arch/alpha/alpha/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.14 2013/12/22 18:52:34 miod Exp $ */
+/* $OpenBSD: mainbus.c,v 1.15 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mainbus.c,v 1.27 1998/06/24 01:10:35 ross Exp $ */
/*
@@ -43,7 +43,7 @@ static int mbmatch(struct device *, void *, void *);
static void mbattach(struct device *, struct device *, void *);
static int mbprint(void *, const char *);
-struct cfattach mainbus_ca = {
+const struct cfattach mainbus_ca = {
sizeof(struct device), mbmatch, mbattach
};
diff --git a/sys/arch/alpha/isa/mcclock_isa.c b/sys/arch/alpha/isa/mcclock_isa.c
index d33f8aaa591..89c368a72e4 100644
--- a/sys/arch/alpha/isa/mcclock_isa.c
+++ b/sys/arch/alpha/isa/mcclock_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcclock_isa.c,v 1.8 2006/01/02 05:21:24 brad Exp $ */
+/* $OpenBSD: mcclock_isa.c,v 1.9 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mcclock_isa.c,v 1.5 1996/12/05 01:39:29 cgd Exp $ */
/*
@@ -50,7 +50,7 @@ struct mcclock_isa_softc {
int mcclock_isa_match(struct device *, void *, void *);
void mcclock_isa_attach(struct device *, struct device *, void *);
-struct cfattach mcclock_isa_ca = {
+const struct cfattach mcclock_isa_ca = {
sizeof (struct mcclock_isa_softc), mcclock_isa_match,
mcclock_isa_attach,
};
diff --git a/sys/arch/alpha/mcbus/mcbus.c b/sys/arch/alpha/mcbus/mcbus.c
index 27ef68970e3..936d5bd6c55 100644
--- a/sys/arch/alpha/mcbus/mcbus.c
+++ b/sys/arch/alpha/mcbus/mcbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcbus.c,v 1.4 2021/03/11 11:16:54 jsg Exp $ */
+/* $OpenBSD: mcbus.c,v 1.5 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mcbus.c,v 1.19 2007/03/04 05:59:11 christos Exp $ */
/*
@@ -68,7 +68,7 @@ typedef struct {
u_int8_t mcbus_types[MCBUS_MID_MAX];
} mcbus_softc_t;
-struct cfattach mcbus_ca = {
+const struct cfattach mcbus_ca = {
sizeof(mcbus_softc_t), mcbusmatch, mcbusattach
};
diff --git a/sys/arch/alpha/mcbus/mcmem.c b/sys/arch/alpha/mcbus/mcmem.c
index e736d3d0549..ee8902535f9 100644
--- a/sys/arch/alpha/mcbus/mcmem.c
+++ b/sys/arch/alpha/mcbus/mcmem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcmem.c,v 1.2 2012/12/05 23:20:10 deraadt Exp $ */
+/* $OpenBSD: mcmem.c,v 1.3 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mcmem.c,v 1.4 2002/10/02 04:06:38 thorpej Exp $ */
/*
@@ -52,7 +52,7 @@
int mcmemmatch (struct device *, void *, void *);
void mcmemattach (struct device *, struct device *, void *);
-struct cfattach mcmem_ca = {
+const struct cfattach mcmem_ca = {
sizeof(struct device), mcmemmatch, mcmemattach
};
diff --git a/sys/arch/alpha/pci/apecs.c b/sys/arch/alpha/pci/apecs.c
index 43dc7578570..9a8c08c03d0 100644
--- a/sys/arch/alpha/pci/apecs.c
+++ b/sys/arch/alpha/pci/apecs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apecs.c,v 1.22 2009/03/30 21:43:13 kettenis Exp $ */
+/* $OpenBSD: apecs.c,v 1.23 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: apecs.c,v 1.16 1996/12/05 01:39:34 cgd Exp $ */
/*-
@@ -90,7 +90,7 @@
int apecsmatch(struct device *, void *, void *);
void apecsattach(struct device *, struct device *, void *);
-struct cfattach apecs_ca = {
+const struct cfattach apecs_ca = {
sizeof(struct device), apecsmatch, apecsattach,
};
diff --git a/sys/arch/alpha/pci/cia.c b/sys/arch/alpha/pci/cia.c
index d1b172cad65..daf3ffc4c98 100644
--- a/sys/arch/alpha/pci/cia.c
+++ b/sys/arch/alpha/pci/cia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cia.c,v 1.26 2017/10/20 12:05:01 mpi Exp $ */
+/* $OpenBSD: cia.c,v 1.27 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: cia.c,v 1.56 2000/06/29 08:58:45 mrg Exp $ */
/*-
@@ -95,7 +95,7 @@
int ciamatch(struct device *, void *, void *);
void ciaattach(struct device *, struct device *, void *);
-struct cfattach cia_ca = {
+const struct cfattach cia_ca = {
sizeof(struct device), ciamatch, ciaattach,
};
diff --git a/sys/arch/alpha/pci/irongate.c b/sys/arch/alpha/pci/irongate.c
index 4e32d716391..30e6a6f165a 100644
--- a/sys/arch/alpha/pci/irongate.c
+++ b/sys/arch/alpha/pci/irongate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irongate.c,v 1.11 2009/03/30 21:43:13 kettenis Exp $ */
+/* $OpenBSD: irongate.c,v 1.12 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: irongate.c,v 1.3 2000/11/29 06:29:10 thorpej Exp $ */
/*-
@@ -53,7 +53,7 @@
int irongate_match(struct device *, void *, void *);
void irongate_attach(struct device *, struct device *, void *);
-struct cfattach irongate_ca = {
+const struct cfattach irongate_ca = {
sizeof(struct device), irongate_match, irongate_attach,
};
diff --git a/sys/arch/alpha/pci/lca.c b/sys/arch/alpha/pci/lca.c
index 48474e38813..54fca04ba70 100644
--- a/sys/arch/alpha/pci/lca.c
+++ b/sys/arch/alpha/pci/lca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lca.c,v 1.23 2013/06/04 19:12:34 miod Exp $ */
+/* $OpenBSD: lca.c,v 1.24 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: lca.c,v 1.14 1996/12/05 01:39:35 cgd Exp $ */
/*-
@@ -89,7 +89,7 @@
int lcamatch(struct device *, void *, void *);
void lcaattach(struct device *, struct device *, void *);
-struct cfattach lca_ca = {
+const struct cfattach lca_ca = {
sizeof(struct device), lcamatch, lcaattach,
};
diff --git a/sys/arch/alpha/pci/mcpcia.c b/sys/arch/alpha/pci/mcpcia.c
index d0326ae347d..3e66b8a6095 100644
--- a/sys/arch/alpha/pci/mcpcia.c
+++ b/sys/arch/alpha/pci/mcpcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcpcia.c,v 1.6 2012/12/05 23:20:10 deraadt Exp $ */
+/* $OpenBSD: mcpcia.c,v 1.7 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mcpcia.c,v 1.20 2007/03/04 05:59:11 christos Exp $ */
/*-
@@ -99,7 +99,7 @@ void mcpcia_config_cleanup (void);
int mcpciaprint (void *, const char *);
-struct cfattach mcpcia_ca = {
+const struct cfattach mcpcia_ca = {
sizeof(struct mcpcia_softc), mcpciamatch, mcpciaattach
};
diff --git a/sys/arch/alpha/pci/sio.c b/sys/arch/alpha/pci/sio.c
index 8a9191f57ef..fc98d492a85 100644
--- a/sys/arch/alpha/pci/sio.c
+++ b/sys/arch/alpha/pci/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.40 2015/08/15 19:26:00 miod Exp $ */
+/* $OpenBSD: sio.c,v 1.41 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */
/*
@@ -79,7 +79,7 @@ struct cfdriver sio_cd = {
int pcebmatch(struct device *, void *, void *);
-struct cfattach pceb_ca = {
+const struct cfattach pceb_ca = {
sizeof(struct sio_softc), pcebmatch, sioattach,
};
diff --git a/sys/arch/alpha/pci/tsc.c b/sys/arch/alpha/pci/tsc.c
index 8549752d96a..b68f7e83f2d 100644
--- a/sys/arch/alpha/pci/tsc.c
+++ b/sys/arch/alpha/pci/tsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tsc.c,v 1.16 2014/12/24 18:46:14 miod Exp $ */
+/* $OpenBSD: tsc.c,v 1.17 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: tsc.c,v 1.3 2000/06/25 19:17:40 thorpej Exp $ */
/*-
@@ -56,7 +56,7 @@
int tscmatch(struct device *, void *, void *);
void tscattach(struct device *, struct device *, void *);
-struct cfattach tsc_ca = {
+const struct cfattach tsc_ca = {
sizeof(struct device), tscmatch, tscattach,
};
@@ -71,7 +71,7 @@ static int tscprint(void *, const char *pnp);
int tspmatch(struct device *, void *, void *);
void tspattach(struct device *, struct device *, void *);
-struct cfattach tsp_ca = {
+const struct cfattach tsp_ca = {
sizeof(struct tsp_softc), tspmatch, tspattach,
};
diff --git a/sys/arch/alpha/tc/ioasic.c b/sys/arch/alpha/tc/ioasic.c
index 6e507095bca..89fc00c10cb 100644
--- a/sys/arch/alpha/tc/ioasic.c
+++ b/sys/arch/alpha/tc/ioasic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioasic.c,v 1.18 2017/10/11 08:14:28 mpi Exp $ */
+/* $OpenBSD: ioasic.c,v 1.19 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: ioasic.c,v 1.34 2000/07/18 06:10:06 thorpej Exp $ */
/*-
@@ -81,7 +81,7 @@
int ioasicmatch(struct device *, void *, void *);
void ioasicattach(struct device *, struct device *, void *);
-struct cfattach ioasic_ca = {
+const struct cfattach ioasic_ca = {
sizeof(struct ioasic_softc), ioasicmatch, ioasicattach,
};
diff --git a/sys/arch/alpha/tc/mcclock_ioasic.c b/sys/arch/alpha/tc/mcclock_ioasic.c
index da7e8e7a4f6..06024870c5a 100644
--- a/sys/arch/alpha/tc/mcclock_ioasic.c
+++ b/sys/arch/alpha/tc/mcclock_ioasic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcclock_ioasic.c,v 1.6 2002/05/02 22:56:06 miod Exp $ */
+/* $OpenBSD: mcclock_ioasic.c,v 1.7 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: mcclock_ioasic.c,v 1.9 2000/07/04 02:37:51 nisimura Exp $ */
/*
@@ -53,7 +53,7 @@ struct mcclock_ioasic_softc {
int mcclock_ioasic_match(struct device *, void *, void *);
void mcclock_ioasic_attach(struct device *, struct device *, void *);
-struct cfattach mcclock_ioasic_ca = {
+const struct cfattach mcclock_ioasic_ca = {
sizeof (struct mcclock_ioasic_softc), mcclock_ioasic_match,
mcclock_ioasic_attach,
};
diff --git a/sys/arch/alpha/tc/tcasic.c b/sys/arch/alpha/tc/tcasic.c
index 45ec602ea23..9145d85b0b1 100644
--- a/sys/arch/alpha/tc/tcasic.c
+++ b/sys/arch/alpha/tc/tcasic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcasic.c,v 1.18 2020/05/23 08:40:55 jsg Exp $ */
+/* $OpenBSD: tcasic.c,v 1.19 2022/03/13 08:04:13 mpi Exp $ */
/* $NetBSD: tcasic.c,v 1.36 2001/08/23 01:16:52 nisimura Exp $ */
/*
@@ -44,7 +44,7 @@ int tcasicmatch(struct device *, void *, void *);
void tcasicattach(struct device *, struct device *, void *);
int tcasicactivate(struct device *, int);
-struct cfattach tcasic_ca = {
+const struct cfattach tcasic_ca = {
.ca_devsize = sizeof (struct device),
.ca_match = tcasicmatch,
.ca_attach = tcasicattach,
diff --git a/sys/arch/hppa/dev/astro.c b/sys/arch/hppa/dev/astro.c
index 1aa2db44506..e3460807294 100644
--- a/sys/arch/hppa/dev/astro.c
+++ b/sys/arch/hppa/dev/astro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: astro.c,v 1.17 2014/11/16 12:30:57 deraadt Exp $ */
+/* $OpenBSD: astro.c,v 1.18 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -156,7 +156,7 @@ struct iommu_map_state {
int astro_match(struct device *, void *, void *);
void astro_attach(struct device *, struct device *, void *);
-struct cfattach astro_ca = {
+const struct cfattach astro_ca = {
sizeof(struct astro_softc), astro_match, astro_attach
};
diff --git a/sys/arch/hppa/dev/com_dino.c b/sys/arch/hppa/dev/com_dino.c
index d1cac3c28c5..8115f020cc2 100644
--- a/sys/arch/hppa/dev/com_dino.c
+++ b/sys/arch/hppa/dev/com_dino.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_dino.c,v 1.4 2007/07/15 19:25:49 kettenis Exp $ */
+/* $OpenBSD: com_dino.c,v 1.5 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff
@@ -61,7 +61,7 @@ struct com_dino_regs {
int com_dino_match(struct device *, void *, void *);
void com_dino_attach(struct device *, struct device *, void *);
-struct cfattach com_dino_ca = {
+const struct cfattach com_dino_ca = {
sizeof(struct com_softc), com_dino_match, com_dino_attach
};
diff --git a/sys/arch/hppa/dev/com_ssio.c b/sys/arch/hppa/dev/com_ssio.c
index 97d86fb77e2..7c0ca94eb1b 100644
--- a/sys/arch/hppa/dev/com_ssio.c
+++ b/sys/arch/hppa/dev/com_ssio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_ssio.c,v 1.2 2007/06/24 16:28:39 kettenis Exp $ */
+/* $OpenBSD: com_ssio.c,v 1.3 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -34,7 +34,7 @@
int com_ssio_match(struct device *, void *, void *);
void com_ssio_attach(struct device *, struct device *, void *);
-struct cfattach com_ssio_ca = {
+const struct cfattach com_ssio_ca = {
sizeof(struct com_softc), com_ssio_match, com_ssio_attach
};
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c
index 047d9602cd5..f6abc9dbd24 100644
--- a/sys/arch/hppa/dev/cpu.c
+++ b/sys/arch/hppa/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.42 2020/05/29 04:42:23 deraadt Exp $ */
+/* $OpenBSD: cpu.c,v 1.43 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -54,7 +54,7 @@ static volatile int start_secondary_cpu;
int cpumatch(struct device *, void *, void *);
void cpuattach(struct device *, struct device *, void *);
-struct cfattach cpu_ca = {
+const struct cfattach cpu_ca = {
sizeof(struct cpu_softc), cpumatch, cpuattach
};
diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c
index f08bf18e993..dd52d95835d 100644
--- a/sys/arch/hppa/dev/dino.c
+++ b/sys/arch/hppa/dev/dino.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dino.c,v 1.32 2018/05/14 13:54:39 kettenis Exp $ */
+/* $OpenBSD: dino.c,v 1.33 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2003-2005 Michael Shalayeff
@@ -126,7 +126,7 @@ int dinomatch(struct device *, void *, void *);
void dinoattach(struct device *, struct device *, void *);
int dino_intr(void *);
-struct cfattach dino_ca = {
+const struct cfattach dino_ca = {
sizeof(struct dino_softc), dinomatch, dinoattach
};
diff --git a/sys/arch/hppa/dev/elroy.c b/sys/arch/hppa/dev/elroy.c
index d7ff4bc9859..4b389dfb2d2 100644
--- a/sys/arch/hppa/dev/elroy.c
+++ b/sys/arch/hppa/dev/elroy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elroy.c,v 1.11 2012/02/25 17:08:49 miod Exp $ */
+/* $OpenBSD: elroy.c,v 1.12 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -49,7 +49,7 @@ int elroy_match(struct device *, void *, void *);
void elroy_attach(struct device *, struct device *, void *);
int elroy_intr(void *);
-struct cfattach elroy_ca = {
+const struct cfattach elroy_ca = {
sizeof(struct elroy_softc), elroy_match, elroy_attach
};
diff --git a/sys/arch/hppa/dev/gecko.c b/sys/arch/hppa/dev/gecko.c
index 171b208513e..13ea4366f82 100644
--- a/sys/arch/hppa/dev/gecko.c
+++ b/sys/arch/hppa/dev/gecko.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gecko.c,v 1.1 2008/04/27 14:39:51 kettenis Exp $ */
+/* $OpenBSD: gecko.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -39,7 +39,7 @@ struct gecko_softc {
int gecko_match(struct device *, void *, void *);
void gecko_attach(struct device *, struct device *, void *);
-struct cfattach gecko_ca = {
+const struct cfattach gecko_ca = {
sizeof(struct gecko_softc), gecko_match, gecko_attach
};
diff --git a/sys/arch/hppa/dev/lcd.c b/sys/arch/hppa/dev/lcd.c
index 70be90a9a0a..335a14e858f 100644
--- a/sys/arch/hppa/dev/lcd.c
+++ b/sys/arch/hppa/dev/lcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcd.c,v 1.5 2020/03/06 01:45:32 cheloha Exp $ */
+/* $OpenBSD: lcd.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -48,7 +48,7 @@ struct lcd_softc {
int lcd_match(struct device *, void *, void *);
void lcd_attach(struct device *, struct device *, void *);
-struct cfattach lcd_ca = {
+const struct cfattach lcd_ca = {
sizeof(struct lcd_softc), lcd_match, lcd_attach
};
diff --git a/sys/arch/hppa/dev/lpt_ssio.c b/sys/arch/hppa/dev/lpt_ssio.c
index 42253d547ef..3ed1e4a043a 100644
--- a/sys/arch/hppa/dev/lpt_ssio.c
+++ b/sys/arch/hppa/dev/lpt_ssio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpt_ssio.c,v 1.1 2007/06/20 18:22:15 kettenis Exp $ */
+/* $OpenBSD: lpt_ssio.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -30,7 +30,7 @@
int lpt_ssio_match(struct device *, void *, void *);
void lpt_ssio_attach(struct device *, struct device *, void *);
-struct cfattach lpt_ssio_ca = {
+const struct cfattach lpt_ssio_ca = {
sizeof(struct lpt_softc), lpt_ssio_match, lpt_ssio_attach
};
diff --git a/sys/arch/hppa/dev/mongoose.c b/sys/arch/hppa/dev/mongoose.c
index 4e3794f473e..098c520c9a9 100644
--- a/sys/arch/hppa/dev/mongoose.c
+++ b/sys/arch/hppa/dev/mongoose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mongoose.c,v 1.22 2022/02/14 23:20:46 jsg Exp $ */
+/* $OpenBSD: mongoose.c,v 1.23 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -50,7 +50,7 @@
void mgattach_gedoens(struct device *, struct device *, void *);
int mgmatch_gedoens(struct device *, void *, void *);
-struct cfattach mg_gedoens_ca = {
+const struct cfattach mg_gedoens_ca = {
sizeof(struct mongoose_softc), mgmatch_gedoens, mgattach_gedoens
};
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c
index 7835c64cc68..896075bbd6b 100644
--- a/sys/arch/hppa/dev/pdc.c
+++ b/sys/arch/hppa/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.40 2018/02/19 08:59:52 mpi Exp $ */
+/* $OpenBSD: pdc.c,v 1.41 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -63,7 +63,7 @@ struct consdev pdccons = { NULL, NULL, pdccngetc, pdccnputc,
int pdcmatch(struct device *, void *, void *);
void pdcattach(struct device *, struct device *, void *);
-struct cfattach pdc_ca = {
+const struct cfattach pdc_ca = {
sizeof(pdcsoftc_t), pdcmatch, pdcattach
};
diff --git a/sys/arch/hppa/dev/phantomas.c b/sys/arch/hppa/dev/phantomas.c
index 5cb4b25de08..fb59d9b554e 100644
--- a/sys/arch/hppa/dev/phantomas.c
+++ b/sys/arch/hppa/dev/phantomas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: phantomas.c,v 1.5 2010/04/29 13:48:29 jsing Exp $ */
+/* $OpenBSD: phantomas.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -48,7 +48,7 @@ struct phantomas_softc {
int phantomasmatch(struct device *, void *, void *);
void phantomasattach(struct device *, struct device *, void *);
-struct cfattach phantomas_ca = {
+const struct cfattach phantomas_ca = {
sizeof(struct phantomas_softc), phantomasmatch, phantomasattach
};
diff --git a/sys/arch/hppa/dev/power.c b/sys/arch/hppa/dev/power.c
index 4c14be5868a..340859991c8 100644
--- a/sys/arch/hppa/dev/power.c
+++ b/sys/arch/hppa/dev/power.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: power.c,v 1.10 2019/10/12 15:53:24 cheloha Exp $ */
+/* $OpenBSD: power.c,v 1.11 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
@@ -55,7 +55,7 @@ struct power_softc {
int powermatch(struct device *, void *, void *);
void powerattach(struct device *, struct device *, void *);
-struct cfattach power_ca = {
+const struct cfattach power_ca = {
sizeof(struct power_softc), powermatch, powerattach
};
diff --git a/sys/arch/hppa/dev/siop_sgc.c b/sys/arch/hppa/dev/siop_sgc.c
index 0cefeb3f1ac..d70543a3d5e 100644
--- a/sys/arch/hppa/dev/siop_sgc.c
+++ b/sys/arch/hppa/dev/siop_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop_sgc.c,v 1.1 2007/08/05 19:09:52 kettenis Exp $ */
+/* $OpenBSD: siop_sgc.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -54,7 +54,7 @@ struct siop_sgc_softc {
struct hppa_bus_space_tag sc_bustag;
};
-struct cfattach siop_gedoens_ca = {
+const struct cfattach siop_gedoens_ca = {
sizeof(struct siop_sgc_softc), siop_sgc_match, siop_sgc_attach
};
diff --git a/sys/arch/hppa/dev/ssio.c b/sys/arch/hppa/dev/ssio.c
index 49df0167529..760e8f3e4bd 100644
--- a/sys/arch/hppa/dev/ssio.c
+++ b/sys/arch/hppa/dev/ssio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssio.c,v 1.7 2009/03/08 22:19:04 miod Exp $ */
+/* $OpenBSD: ssio.c,v 1.8 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -114,7 +114,7 @@ struct ssio_softc {
void *sc_ih;
};
-struct cfattach ssio_ca = {
+const struct cfattach ssio_ca = {
sizeof(struct ssio_softc), ssio_match, ssio_attach
};
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index 5e70251b142..6ecfe44ae2d 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.40 2014/08/30 14:42:05 miod Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.41 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -61,7 +61,7 @@ int sti_sgc_probe(struct device *, void *, void *);
void sti_sgc_attach(struct device *, struct device *, void *);
paddr_t sti_sgc_getrom(int, struct confargs *);
-struct cfattach sti_gedoens_ca = {
+const struct cfattach sti_gedoens_ca = {
sizeof(struct sti_softc), sti_sgc_probe, sti_sgc_attach
};
diff --git a/sys/arch/hppa/dev/uturn.c b/sys/arch/hppa/dev/uturn.c
index 513869f208c..a8985908fca 100644
--- a/sys/arch/hppa/dev/uturn.c
+++ b/sys/arch/hppa/dev/uturn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uturn.c,v 1.7 2010/04/29 13:48:29 jsing Exp $ */
+/* $OpenBSD: uturn.c,v 1.8 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2004 Michael Shalayeff
@@ -54,7 +54,7 @@ struct uturn_softc {
int uturnmatch(struct device *, void *, void *);
void uturnattach(struct device *, struct device *, void *);
-struct cfattach uturn_ca = {
+const struct cfattach uturn_ca = {
sizeof(struct uturn_softc), uturnmatch, uturnattach
};
diff --git a/sys/arch/hppa/gsc/com_gsc.c b/sys/arch/hppa/gsc/com_gsc.c
index 4b67f2dbd36..06bcaf6864e 100644
--- a/sys/arch/hppa/gsc/com_gsc.c
+++ b/sys/arch/hppa/gsc/com_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_gsc.c,v 1.21 2007/07/15 19:25:49 kettenis Exp $ */
+/* $OpenBSD: com_gsc.c,v 1.22 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -51,7 +51,7 @@ struct com_gsc_regs {
int com_gsc_probe(struct device *, void *, void *);
void com_gsc_attach(struct device *, struct device *, void *);
-struct cfattach com_gsc_ca = {
+const struct cfattach com_gsc_ca = {
sizeof(struct com_softc), com_gsc_probe, com_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/fdc_gsc.c b/sys/arch/hppa/gsc/fdc_gsc.c
index 0d576bbe475..70926ccc8f7 100644
--- a/sys/arch/hppa/gsc/fdc_gsc.c
+++ b/sys/arch/hppa/gsc/fdc_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdc_gsc.c,v 1.5 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: fdc_gsc.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -45,7 +45,7 @@
int fdc_gsc_probe(struct device *, void *, void *);
void fdc_gsc_attach(struct device *, struct device *, void *);
-struct cfattach fdc_gsc_ca = {
+const struct cfattach fdc_gsc_ca = {
sizeof(struct fdc_softc), fdc_gsc_probe, fdc_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/gsckbc.c b/sys/arch/hppa/gsc/gsckbc.c
index cc26642ba98..439316477e0 100644
--- a/sys/arch/hppa/gsc/gsckbc.c
+++ b/sys/arch/hppa/gsc/gsckbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gsckbc.c,v 1.20 2019/10/12 15:53:24 cheloha Exp $ */
+/* $OpenBSD: gsckbc.c,v 1.21 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -102,7 +102,7 @@ struct gsckbc_softc {
int sc_type;
};
-struct cfattach gsckbc_ca = {
+const struct cfattach gsckbc_ca = {
sizeof(struct gsckbc_softc), gsckbc_match, gsckbc_attach
};
diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c
index c1ba6900ffe..118d89aadba 100644
--- a/sys/arch/hppa/gsc/harmony.c
+++ b/sys/arch/hppa/gsc/harmony.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: harmony.c,v 1.36 2022/02/16 06:21:18 anton Exp $ */
+/* $OpenBSD: harmony.c,v 1.37 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
@@ -1159,6 +1159,6 @@ struct cfdriver harmony_cd = {
NULL, "harmony", DV_DULL
};
-struct cfattach harmony_ca = {
+const struct cfattach harmony_ca = {
sizeof(struct harmony_softc), harmony_match, harmony_attach
};
diff --git a/sys/arch/hppa/gsc/hil_gsc.c b/sys/arch/hppa/gsc/hil_gsc.c
index 9b0e3cb5103..6854b92561a 100644
--- a/sys/arch/hppa/gsc/hil_gsc.c
+++ b/sys/arch/hppa/gsc/hil_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil_gsc.c,v 1.5 2005/12/22 07:09:52 miod Exp $ */
+/* $OpenBSD: hil_gsc.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -51,7 +51,7 @@ struct hil_gsc_softc {
int sc_hil_console;
};
-struct cfattach hil_gsc_ca = {
+const struct cfattach hil_gsc_ca = {
sizeof(struct hil_gsc_softc), hil_gsc_match, hil_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/if_ie_gsc.c b/sys/arch/hppa/gsc/if_ie_gsc.c
index 43029d1cd2d..068cd0c7ba6 100644
--- a/sys/arch/hppa/gsc/if_ie_gsc.c
+++ b/sys/arch/hppa/gsc/if_ie_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie_gsc.c,v 1.29 2015/11/24 17:11:38 mpi Exp $ */
+/* $OpenBSD: if_ie_gsc.c,v 1.30 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -70,7 +70,7 @@ struct ie_gsc_regs {
int ie_gsc_probe(struct device *, void *, void *);
void ie_gsc_attach(struct device *, struct device *, void *);
-struct cfattach ie_gsc_ca = {
+const struct cfattach ie_gsc_ca = {
sizeof(struct ie_softc), ie_gsc_probe, ie_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/lpt_gsc.c b/sys/arch/hppa/gsc/lpt_gsc.c
index 5f31d065c51..e6e43be89b8 100644
--- a/sys/arch/hppa/gsc/lpt_gsc.c
+++ b/sys/arch/hppa/gsc/lpt_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpt_gsc.c,v 1.12 2011/09/16 17:20:07 miod Exp $ */
+/* $OpenBSD: lpt_gsc.c,v 1.13 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -71,7 +71,7 @@
int lpt_gsc_probe(struct device *, void *, void *);
void lpt_gsc_attach(struct device *, struct device *, void *);
-struct cfattach lpt_gsc_ca = {
+const struct cfattach lpt_gsc_ca = {
sizeof(struct lpt_softc), lpt_gsc_probe, lpt_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/mongoose_gsc.c b/sys/arch/hppa/gsc/mongoose_gsc.c
index ec518c8b959..0bcbe831eee 100644
--- a/sys/arch/hppa/gsc/mongoose_gsc.c
+++ b/sys/arch/hppa/gsc/mongoose_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mongoose_gsc.c,v 1.1 2004/10/30 10:26:32 miod Exp $ */
+/* $OpenBSD: mongoose_gsc.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
@@ -45,7 +45,7 @@
void mgattach_gsc(struct device *, struct device *, void *);
int mgmatch_gsc(struct device *, void *, void *);
-struct cfattach mg_gsc_ca = {
+const struct cfattach mg_gsc_ca = {
sizeof(struct mongoose_softc), mgmatch_gsc, mgattach_gsc
};
diff --git a/sys/arch/hppa/gsc/oosiop_gsc.c b/sys/arch/hppa/gsc/oosiop_gsc.c
index 10002805bc1..fddbf66f1d2 100644
--- a/sys/arch/hppa/gsc/oosiop_gsc.c
+++ b/sys/arch/hppa/gsc/oosiop_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: oosiop_gsc.c,v 1.3 2010/04/20 20:21:54 miod Exp $ */
+/* $OpenBSD: oosiop_gsc.c,v 1.4 2022/03/13 08:04:38 mpi Exp $ */
/* $NetBSD: oosiop_gsc.c,v 1.2 2003/07/15 02:29:25 lukem Exp $ */
/*
@@ -82,7 +82,7 @@ int oosiop_gsc_match(struct device *, void *, void *);
void oosiop_gsc_attach(struct device *, struct device *, void *);
int oosiop_gsc_intr(void *);
-struct cfattach oosiop_gsc_ca = {
+const struct cfattach oosiop_gsc_ca = {
sizeof(struct oosiop_softc), oosiop_gsc_match, oosiop_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/osiop_gsc.c b/sys/arch/hppa/gsc/osiop_gsc.c
index 77d11d3540e..d30478a6dc4 100644
--- a/sys/arch/hppa/gsc/osiop_gsc.c
+++ b/sys/arch/hppa/gsc/osiop_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osiop_gsc.c,v 1.12 2005/12/13 23:13:45 mickey Exp $ */
+/* $OpenBSD: osiop_gsc.c,v 1.13 2022/03/13 08:04:38 mpi Exp $ */
/* $NetBSD: osiop_gsc.c,v 1.6 2002/10/02 05:17:50 thorpej Exp $ */
/*
@@ -83,7 +83,7 @@ int osiop_gsc_match(struct device *, void *, void *);
void osiop_gsc_attach(struct device *, struct device *, void *);
int osiop_gsc_intr(void *);
-struct cfattach osiop_gsc_ca = {
+const struct cfattach osiop_gsc_ca = {
sizeof(struct osiop_softc), osiop_gsc_match, osiop_gsc_attach
};
diff --git a/sys/arch/hppa/gsc/siop_gsc.c b/sys/arch/hppa/gsc/siop_gsc.c
index 3c54c8bbba5..2bff40dd420 100644
--- a/sys/arch/hppa/gsc/siop_gsc.c
+++ b/sys/arch/hppa/gsc/siop_gsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop_gsc.c,v 1.4 2007/08/23 21:01:22 kettenis Exp $ */
+/* $OpenBSD: siop_gsc.c,v 1.5 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -54,7 +54,7 @@ struct siop_gsc_softc {
struct hppa_bus_space_tag sc_bustag;
};
-struct cfattach siop_gsc_ca = {
+const struct cfattach siop_gsc_ca = {
sizeof(struct siop_gsc_softc), siop_gsc_match, siop_gsc_attach
};
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c
index f3019e4e430..0009da07193 100644
--- a/sys/arch/hppa/hppa/mainbus.c
+++ b/sys/arch/hppa/hppa/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.89 2021/03/11 11:16:56 jsg Exp $ */
+/* $OpenBSD: mainbus.c,v 1.90 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -57,7 +57,7 @@ struct mainbus_softc {
int mbmatch(struct device *, void *, void *);
void mbattach(struct device *, struct device *, void *);
-struct cfattach mainbus_ca = {
+const struct cfattach mainbus_ca = {
sizeof(struct mainbus_softc), mbmatch, mbattach
};
diff --git a/sys/arch/hppa/hppa/mem.c b/sys/arch/hppa/hppa/mem.c
index 813c341554b..6752427dcf3 100644
--- a/sys/arch/hppa/hppa/mem.c
+++ b/sys/arch/hppa/hppa/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.5 2017/12/30 20:46:59 guenther Exp $ */
+/* $OpenBSD: mem.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -144,7 +144,7 @@ struct mem_softc {
int memmatch(struct device *, void *, void *);
void memattach(struct device *, struct device *, void *);
-struct cfattach mem_ca = {
+const struct cfattach mem_ca = {
sizeof(struct mem_softc), memmatch, memattach
};