diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-03-08 00:03:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-03-08 00:03:16 +0000 |
commit | aea1fc865c99ac9305a3e480b9515fa515c4c236 (patch) | |
tree | 0476fa27f493434d76aa82df5f5052d7d75489a8 /sys/arch/mvme88k/dev/nvram.c | |
parent | 956a2d3274c29598b59ffab23e3e3ef4b87d7ef7 (diff) |
Some warning hunting.
Define new include files for convenience, for use by drivers who can
attach either to pcctwo or syscon, or need bug console routines.
Diffstat (limited to 'sys/arch/mvme88k/dev/nvram.c')
-rw-r--r-- | sys/arch/mvme88k/dev/nvram.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/sys/arch/mvme88k/dev/nvram.c b/sys/arch/mvme88k/dev/nvram.c index dbcc962c228..97f51e5e57c 100644 --- a/sys/arch/mvme88k/dev/nvram.c +++ b/sys/arch/mvme88k/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.7 2001/01/04 04:01:59 smurph Exp $ */ +/* $OpenBSD: nvram.c,v 1.8 2001/03/08 00:03:14 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -49,6 +49,8 @@ #include <machine/cpu.h> #include <machine/mioctl.h> #include <machine/vmparam.h> + +#include <mvme88k/dev/memdevs.h> #include <mvme88k/dev/nvramreg.h> #include <mvme88k/dev/pcctworeg.h> @@ -71,13 +73,22 @@ struct cfdriver nvram_cd = { NULL, "nvram", DV_DULL, 0 }; +int nvramopen __P((dev_t dev, int flag, int mode)); +int nvramclose __P((dev_t dev, int flag, int mode)); +int nvramioctl __P((dev_t dev, int cmd, caddr_t data, int flag, + struct proc *p)); +int nvramread __P((dev_t dev, struct uio *uio, int flags)); +int nvramwrite __P((dev_t dev, struct uio *uio, int flags)); +int nvrammmap __P((dev_t dev, int off, int prot)); + int nvrammatch(parent, vcf, args) struct device *parent; void *vcf, *args; { +#if 0 int ret; - struct cfdata *cf = vcf; +#endif struct confargs *ca = args; struct bugrtc rtc; ca->ca_vaddr = ca->ca_paddr; /* map 1:1 */ @@ -233,8 +244,11 @@ struct chiptime { int year; }; +void timetochip __P((struct chiptime *c)); + +void timetochip(c) -register struct chiptime *c; + register struct chiptime *c; { register int t, t2, t3, now = time.tv_sec; @@ -417,10 +431,11 @@ int flag, mode; /*ARGSUSED*/ int nvramioctl(dev, cmd, data, flag, p) -dev_t dev; -caddr_t data; -int cmd, flag; -struct proc *p; + dev_t dev; + int cmd; + caddr_t data; + int flag; + struct proc *p; { int unit = minor(dev); struct nvramsoftc *sc = (struct nvramsoftc *) nvram_cd.cd_devs[unit]; |