diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-19 21:34:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-19 21:34:44 +0000 |
commit | a4591103c140486435038d38b1873b078c739ee9 (patch) | |
tree | bf2f39423e915a30c02ad043b59d0fab8c16c912 /sys/arch | |
parent | 573a1b0063785cad158099921624b2c9e100bae4 (diff) |
constify speedtabs and make ttspeedtab() take a const struct speedtab *
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/tc/scc.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/apci.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dca.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dcm.c | 4 | ||||
-rw-r--r-- | sys/arch/luna88k/dev/siotty.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/qbus/dhu.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/qbus/dz.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/vsa/dc.c | 4 |
8 files changed, 16 insertions, 16 deletions
diff --git a/sys/arch/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c index 82fcc24a18e..00aa9a6b1e2 100644 --- a/sys/arch/alpha/tc/scc.c +++ b/sys/arch/alpha/tc/scc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scc.c,v 1.19 2003/10/03 16:44:49 miod Exp $ */ +/* $OpenBSD: scc.c,v 1.20 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: scc.c,v 1.58 2002/03/17 19:40:27 atatat Exp $ */ /* @@ -136,7 +136,7 @@ struct scc_softc { * * Speed selections with Pclk=7.3728MHz, clock x16 */ -struct speedtab sccspeedtab[] = { +const struct speedtab sccspeedtab[] = { { 0, 0, }, { 50, 4606, }, { 75, 3070, }, diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c index e73f11fd17f..6b2b911dd1e 100644 --- a/sys/arch/hp300/dev/apci.c +++ b/sys/arch/hp300/dev/apci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apci.c,v 1.15 2003/10/03 16:44:49 miod Exp $ */ +/* $OpenBSD: apci.c,v 1.16 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */ /*- @@ -166,7 +166,7 @@ cdev_decl(apci); int apcidefaultrate = TTYDEF_SPEED; -struct speedtab apcispeedtab[] = { +const struct speedtab apcispeedtab[] = { { 0, 0 }, { 50, APCIBRD(50) }, { 75, APCIBRD(75) }, diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c index 621c29d40b6..3b72eaa29ec 100644 --- a/sys/arch/hp300/dev/dca.c +++ b/sys/arch/hp300/dev/dca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dca.c,v 1.18 2003/10/03 16:44:49 miod Exp $ */ +/* $OpenBSD: dca.c,v 1.19 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */ /* @@ -128,7 +128,7 @@ void dcacnputc(dev_t, int); static struct dcadevice *dca_cn = NULL; /* pointer to hardware */ static int dcaconsinit; /* has been initialized */ -struct speedtab dcaspeedtab[] = { +const struct speedtab dcaspeedtab[] = { { 0, 0 }, { 50, DCABRD(50) }, { 75, DCABRD(75) }, diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c index cfee8db6ddf..038f321ba65 100644 --- a/sys/arch/hp300/dev/dcm.c +++ b/sys/arch/hp300/dev/dcm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dcm.c,v 1.17 2003/12/22 20:38:07 jmc Exp $ */ +/* $OpenBSD: dcm.c,v 1.18 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */ /* @@ -77,7 +77,7 @@ #define DEFAULT_BAUD_RATE 9600 #endif -struct speedtab dcmspeedtab[] = { +const struct speedtab dcmspeedtab[] = { { 0, BR_0 }, { 50, BR_50 }, { 75, BR_75 }, diff --git a/sys/arch/luna88k/dev/siotty.c b/sys/arch/luna88k/dev/siotty.c index bb8f5fabeea..e4ebf35aeb6 100644 --- a/sys/arch/luna88k/dev/siotty.c +++ b/sys/arch/luna88k/dev/siotty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siotty.c,v 1.1 2004/04/21 15:23:55 aoyama Exp $ */ +/* $OpenBSD: siotty.c,v 1.2 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: siotty.c,v 1.9 2002/03/17 19:40:43 atatat Exp $ */ /*- @@ -65,7 +65,7 @@ static const u_int8_t ch0_regs[6] = { WR5_TX8BIT | WR5_TXENBL | WR5_DTR | WR5_RTS, /* Tx */ }; -static struct speedtab siospeedtab[] = { +static const struct speedtab siospeedtab[] = { { 2400, WR4_BAUD24, }, { 4800, WR4_BAUD48, }, { 9600, WR4_BAUD96, }, diff --git a/sys/arch/vax/qbus/dhu.c b/sys/arch/vax/qbus/dhu.c index 87884c4712e..ebcfd18277b 100644 --- a/sys/arch/vax/qbus/dhu.c +++ b/sys/arch/vax/qbus/dhu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhu.c,v 1.11 2004/07/07 23:10:45 deraadt Exp $ */ +/* $OpenBSD: dhu.c,v 1.12 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: dhu.c,v 1.19 2000/06/04 06:17:01 matt Exp $ */ /* * Copyright (c) 2003, Hugh Graham. @@ -109,7 +109,7 @@ struct dhu_softc { /* a baud rate from the same group. So limiting to B is likely */ /* best, although clone boards like the ABLE QHV allow all settings. */ -static struct speedtab dhuspeedtab[] = { +static const struct speedtab dhuspeedtab[] = { { 0, 0 }, /* Groups */ { 50, DHU_LPR_B50 }, /* A */ { 75, DHU_LPR_B75 }, /* B */ diff --git a/sys/arch/vax/qbus/dz.c b/sys/arch/vax/qbus/dz.c index c80204fac20..0001eae092a 100644 --- a/sys/arch/vax/qbus/dz.c +++ b/sys/arch/vax/qbus/dz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz.c,v 1.11 2004/07/07 23:10:46 deraadt Exp $ */ +/* $OpenBSD: dz.c,v 1.12 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: dz.c,v 1.23 2000/06/04 02:14:12 matt Exp $ */ /* * Copyright (c) 1996 Ken C. Wellsch. All rights reserved. @@ -83,7 +83,7 @@ #define DML_RI TIOCM_RI #define DML_BRK 0100000 /* no equivalent, we will mask */ -static struct speedtab dzspeedtab[] = +static const struct speedtab dzspeedtab[] = { { 0, 0 }, { 50, DZ_LPR_B50 }, diff --git a/sys/arch/vax/vsa/dc.c b/sys/arch/vax/vsa/dc.c index 4d0d6b936c6..1e2e9e7ca19 100644 --- a/sys/arch/vax/vsa/dc.c +++ b/sys/arch/vax/vsa/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.10 2004/01/29 21:34:17 deraadt Exp $ */ +/* $OpenBSD: dc.c,v 1.11 2004/09/19 21:34:42 mickey Exp $ */ /* $NetBSD: dc.c,v 1.4 1996/10/13 03:36:10 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -173,7 +173,7 @@ struct timeout dc_timeout; */ struct pdma dcpdma[NDCLINE]; -struct speedtab dcspeedtab[] = { +const struct speedtab dcspeedtab[] = { 0, 0, 50, LPR_B50, 75, LPR_B75, |