diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-26 02:37:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-26 02:37:08 +0000 |
commit | 40fa393c45fd6ea6f962a70da026768f6ad9ffa1 (patch) | |
tree | 69f7cd34483c7a70b31288f975bde4cbc95e5340 /sys/arch/mvme88k/dev/dart.c | |
parent | a313e244b1d4ef436b53f164be90abf5f0e7104f (diff) |
Add prototypes, fix compilation warnings, random style fixes.
Diffstat (limited to 'sys/arch/mvme88k/dev/dart.c')
-rw-r--r-- | sys/arch/mvme88k/dev/dart.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index 3c9cfee53d6..1e6dae463e8 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.9 2001/08/24 19:32:06 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.10 2001/08/26 02:37:07 miod Exp $ */ /* * Mach Operating System @@ -98,6 +98,14 @@ int dartcnprobe __P((struct consdev *cp)); int dartcninit __P((struct consdev *cp)); int dartcngetc __P((dev_t dev)); void dartcnputc __P((dev_t dev, char c)); +int dart_speed __P((int)); +struct tty* darttty __P((dev_t)); +void dartstart __P((struct tty *)); +int dartmctl __P((dev_t, int, int)); +int dartparam __P((struct tty *, struct termios *)); +void dartmodemtrans __P((struct dartsoftc *, unsigned int, unsigned int)); +void dartrint __P((struct dartsoftc *, int)); +void dartxint __P((struct dartsoftc *, int)); int dartopen __P((dev_t dev, int flag, int mode, struct proc *p)); int dartclose __P((dev_t dev, int flag, int mode, struct proc *p)); @@ -180,7 +188,7 @@ dartmatch(parent, vcf, args) if (cputyp != CPU_188) return (0); ca->ca_vaddr = ca->ca_paddr; /* 1:1 */ addr = (union dartreg *)ca->ca_vaddr; - if (badvaddr(addr, 2) <= 0) { + if (badvaddr((vaddr_t)addr, 2) <= 0) { printf("==> dart: failed address check.\n"); return (0); } @@ -1233,7 +1241,10 @@ dartcngetc(dev) int c; /* received character */ int s; int port; +#if 1 +#else m88k_psr_type psr; +#endif char buf[] = "char x"; port = DART_PORT(dev); |