Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Constify the speedtab arrays
details: https://anonhg.NetBSD.org/src/rev/3110d2b373b4
branches: trunk
changeset: 566003:3110d2b373b4
user: matt <matt%NetBSD.org@localhost>
date: Sun Apr 25 06:23:40 2004 +0000
description:
Constify the speedtab arrays
diffstat:
sys/arch/amiga/dev/mfc.c | 12 ++++++------
sys/arch/amiga/dev/msc.c | 10 +++++-----
sys/arch/hp300/dev/dcm.c | 6 +++---
sys/arch/luna68k/dev/siotty.c | 6 +++---
sys/arch/pmax/dev/dc.c | 6 +++---
sys/arch/pmax/tc/scc.c | 6 +++---
sys/compat/common/tty_43.c | 8 ++++----
sys/compat/sunos/sunos_ioctl.c | 8 ++++----
sys/compat/sunos32/sunos32_ioctl.c | 8 ++++----
sys/compat/ultrix/ultrix_ioctl.c | 8 ++++----
sys/dev/dec/dz.c | 6 +++---
sys/dev/qbus/dhu.c | 6 +++---
12 files changed, 45 insertions(+), 45 deletions(-)
diffs (truncated from 405 to 300 lines):
diff -r a9bb3feff358 -r 3110d2b373b4 sys/arch/amiga/dev/mfc.c
--- a/sys/arch/amiga/dev/mfc.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/amiga/dev/mfc.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfc.c,v 1.34 2004/03/28 18:59:39 mhitch Exp $ */
+/* $NetBSD: mfc.c,v 1.35 2004/04/25 06:23:41 matt Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -58,7 +58,7 @@
#include "opt_kgdb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfc.c,v 1.34 2004/03/28 18:59:39 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfc.c,v 1.35 2004/04/25 06:23:41 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -265,7 +265,7 @@
* baud rate tables for BRG set 1 [not used yet]
*/
-struct speedtab mfcs3speedtab1[] = {
+const struct speedtab mfcs3speedtab1[] = {
{ 0, 0 },
{ 100, 0x00 },
{ 220, 0x11 },
@@ -284,7 +284,7 @@
* baud rate tables for BRG set 1 [not used yet]
*/
-struct speedtab mfcs2speedtab1[] = {
+const struct speedtab mfcs2speedtab1[] = {
{ 0, 0 },
{ 50, 0x00 },
{ 110, 0x11 },
@@ -305,7 +305,7 @@
* baud rate tables for BRG set 2
*/
-struct speedtab mfcs3speedtab2[] = {
+const struct speedtab mfcs3speedtab2[] = {
{ 0, 0 },
{ 150, 0x00 },
{ 200, 0x11 },
@@ -325,7 +325,7 @@
* baud rate tables for BRG set 2
*/
-struct speedtab mfcs2speedtab2[] = {
+const struct speedtab mfcs2speedtab2[] = {
{ 0, 0 },
{ 75, 0x00 },
{ 100, 0x11 },
diff -r a9bb3feff358 -r 3110d2b373b4 sys/arch/amiga/dev/msc.c
--- a/sys/arch/amiga/dev/msc.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/amiga/dev/msc.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msc.c,v 1.27 2003/08/07 16:26:42 agc Exp $ */
+/* $NetBSD: msc.c,v 1.28 2004/04/25 06:23:41 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msc.c,v 1.27 2003/08/07 16:26:42 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msc.c,v 1.28 2004/04/25 06:23:41 matt Exp $");
#include "msc.h"
@@ -160,7 +160,7 @@
struct vbl_node msc_vbl_node[NMSC]; /* vbl interrupt node per board */
-struct speedtab mscspeedtab_normal[] = {
+const struct speedtab mscspeedtab_normal[] = {
{ 0, 0 },
{ 50, MSCPARAM_B50 },
{ 75, MSCPARAM_B75 },
@@ -181,7 +181,7 @@
{ -1, -1 }
};
-struct speedtab mscspeedtab_turbo[] = {
+const struct speedtab mscspeedtab_turbo[] = {
{ 0, 0 },
{ 100, MSCPARAM_B50 },
{ 150, MSCPARAM_B75 },
@@ -202,7 +202,7 @@
{ -1, -1 }
};
-struct speedtab *mscspeedtab;
+const struct speedtab *mscspeedtab;
int mscmctl(dev_t dev, int bits, int howto);
void mscmint(register void *data);
diff -r a9bb3feff358 -r 3110d2b373b4 sys/arch/hp300/dev/dcm.c
--- a/sys/arch/hp300/dev/dcm.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/hp300/dev/dcm.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dcm.c,v 1.63 2003/11/17 14:37:59 tsutsui Exp $ */
+/* $NetBSD: dcm.c,v 1.64 2004/04/25 06:23:41 matt Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dcm.c,v 1.63 2003/11/17 14:37:59 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dcm.c,v 1.64 2004/04/25 06:23:41 matt Exp $");
#include "opt_kgdb.h"
@@ -152,7 +152,7 @@
#define DEFAULT_BAUD_RATE 9600
#endif
-struct speedtab dcmspeedtab[] = {
+const struct speedtab dcmspeedtab[] = {
{ 0, BR_0 },
{ 50, BR_50 },
{ 75, BR_75 },
diff -r a9bb3feff358 -r 3110d2b373b4 sys/arch/luna68k/dev/siotty.c
--- a/sys/arch/luna68k/dev/siotty.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/luna68k/dev/siotty.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siotty.c,v 1.13 2003/03/28 14:10:56 he Exp $ */
+/* $NetBSD: siotty.c,v 1.14 2004/04/25 06:23:41 matt Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.13 2003/03/28 14:10:56 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.14 2004/04/25 06:23:41 matt Exp $");
#include "opt_ddb.h"
@@ -71,7 +71,7 @@
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 -r a9bb3feff358 -r 3110d2b373b4 sys/arch/pmax/dev/dc.c
--- a/sys/arch/pmax/dev/dc.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/pmax/dev/dc.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dc.c,v 1.77 2003/10/31 03:32:19 simonb Exp $ */
+/* $NetBSD: dc.c,v 1.78 2004/04/25 06:23:41 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.77 2003/10/31 03:32:19 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.78 2004/04/25 06:23:41 matt Exp $");
/*
* devDC7085.c --
@@ -150,7 +150,7 @@
* Pdma structures for fast output code
*/
-struct speedtab dcspeedtab[] = {
+const struct speedtab dcspeedtab[] = {
{ 0, 0, },
{ 50, LPR_B50 },
{ 75, LPR_B75 },
diff -r a9bb3feff358 -r 3110d2b373b4 sys/arch/pmax/tc/scc.c
--- a/sys/arch/pmax/tc/scc.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/arch/pmax/tc/scc.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scc.c,v 1.83 2003/09/28 17:25:07 chs Exp $ */
+/* $NetBSD: scc.c,v 1.84 2004/04/25 06:23:41 matt Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: scc.c,v 1.83 2003/09/28 17:25:07 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scc.c,v 1.84 2004/04/25 06:23:41 matt Exp $");
/*
* Intel 82530 dual usart chip driver. Supports the serial port(s) on the
@@ -161,7 +161,7 @@
*
* Speed selections with Pclk=7.3728Mhz, clock x16
*/
-struct speedtab sccspeedtab[] = {
+const struct speedtab sccspeedtab[] = {
{ 0, 0, },
{ 50, 4606, },
{ 75, 3070, },
diff -r a9bb3feff358 -r 3110d2b373b4 sys/compat/common/tty_43.c
--- a/sys/compat/common/tty_43.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/compat/common/tty_43.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_43.c,v 1.17 2003/08/07 16:30:36 agc Exp $ */
+/* $NetBSD: tty_43.c,v 1.18 2004/04/25 06:23:40 matt Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.17 2003/08/07 16:30:36 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.18 2004/04/25 06:23:40 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -57,7 +57,7 @@
int ttydebug = 0;
-static struct speedtab compatspeeds[] = {
+static const struct speedtab compatspeeds[] = {
#define MAX_SPEED 17
{ 115200, 17 },
{ 57600, 16 },
@@ -79,7 +79,7 @@
{ 0, 0 },
{ -1, -1 },
};
-static int compatspcodes[] = {
+static const int compatspcodes[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200,
1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200
};
diff -r a9bb3feff358 -r 3110d2b373b4 sys/compat/sunos/sunos_ioctl.c
--- a/sys/compat/sunos/sunos_ioctl.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/compat/sunos/sunos_ioctl.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_ioctl.c,v 1.47 2003/06/29 22:29:44 fvdl Exp $ */
+/* $NetBSD: sunos_ioctl.c,v 1.48 2004/04/25 06:23:40 matt Exp $ */
/*
* Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.47 2003/06/29 22:29:44 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.48 2004/04/25 06:23:40 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_execfmt.h"
@@ -65,7 +65,7 @@
* Support gets added as things turn up....
*/
-static struct speedtab sptab[] = {
+static const struct speedtab sptab[] = {
{ 0, 0 },
{ 50, 1 },
{ 75, 2 },
@@ -86,7 +86,7 @@
{ -1, -1 }
};
-static u_long s2btab[] = {
+static const u_long s2btab[] = {
0,
50,
75,
diff -r a9bb3feff358 -r 3110d2b373b4 sys/compat/sunos32/sunos32_ioctl.c
--- a/sys/compat/sunos32/sunos32_ioctl.c Sun Apr 25 06:19:49 2004 +0000
+++ b/sys/compat/sunos32/sunos32_ioctl.c Sun Apr 25 06:23:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_ioctl.c,v 1.13 2003/06/29 22:29:45 fvdl Exp $ */
+/* $NetBSD: sunos32_ioctl.c,v 1.14 2004/04/25 06:23:40 matt Exp $ */
/* from: NetBSD: sunos_ioctl.c,v 1.35 2001/02/03 22:20:02 mrg Exp */
/*
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.13 2003/06/29 22:29:45 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.14 2004/04/25 06:23:40 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd32.h"
@@ -99,7 +99,7 @@
* Support gets added as things turn up....
*/
Home |
Main Index |
Thread Index |
Old Index