diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mvme88k/dev/cl.c | 5 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/dart.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 3093775d32a..93354594456 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.41 2004/04/15 08:41:44 miod Exp $ */ +/* $OpenBSD: cl.c,v 1.42 2004/04/15 12:35:20 miod Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -119,7 +119,8 @@ struct clsoftc { struct pcctworeg *sc_pcctwo; int sc_flags; }; -struct { + +const struct { u_int speed; u_char divisor; u_char clock; diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index 46dcc7661c0..e85347b65a2 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.30 2004/02/11 20:41:07 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.31 2004/04/15 12:35:20 miod Exp $ */ /* * Mach Operating System @@ -121,11 +121,11 @@ void dartbreak(dev_t dev, int state); */ #define DART_PORT(dev) minor(dev) -#define dart_tty darttty + struct dart_sv_reg dart_sv_reg; /* speed tables */ -struct dart_s { +const struct dart_s { int kspeed; int dspeed; } dart_speeds[] = { @@ -151,7 +151,7 @@ int dart_speed(speed) int speed; { - struct dart_s *ds = dart_speeds; + const struct dart_s *ds = dart_speeds; while (ds->kspeed != 0xFFFF) { if (ds->kspeed == speed) return ds->dspeed; |