summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-04-15 12:35:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-04-15 12:35:21 +0000
commit8be43ea150d934792cac3d8166f580234d920995 (patch)
treea8c4a970d907f6976cbc6855d8f5a125ec37d093 /sys/arch/mvme88k/dev
parente37d10b0876ac1c7c28f00dbeacb9e0618423534 (diff)
constify baud rate to hardware parameters structures.
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r--sys/arch/mvme88k/dev/cl.c5
-rw-r--r--sys/arch/mvme88k/dev/dart.c8
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;