summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-29 19:13:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-29 19:13:06 +0000
commit6fe8266d8d3c760335dd024dfa80aa880c3fc0d8 (patch)
tree4e1703427d99ea4aad8add80c8c84df261bc32ae /sys/arch/vax
parent71c4abfe2bd2d33c0d831259139378950239f72f (diff)
Sync /dev/mem prototypes with the real interface here too.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/mem.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/vax/vax/mem.c b/sys/arch/vax/vax/mem.c
index f2864c38de2..d99dbed18bb 100644
--- a/sys/arch/vax/vax/mem.c
+++ b/sys/arch/vax/vax/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.11 2002/03/14 01:26:49 millert Exp $ */
+/* $OpenBSD: mem.c,v 1.12 2002/04/29 19:13:05 miod Exp $ */
/* $NetBSD: mem.c,v 1.15 1999/03/24 05:51:17 mrg Exp $ */
/*
@@ -61,17 +61,16 @@
extern unsigned int avail_end;
caddr_t zeropage;
-int mmopen(dev_t, int, int);
-int mmclose(dev_t, int, int);
-int mmrw(dev_t, struct uio *, int);
-paddr_t mmmmap(dev_t, off_t, int);
-
+#define mmread mmrw
+#define mmwrite mmrw
+cdev_decl(mm);
/*ARGSUSED*/
int
-mmopen(dev, flag, mode)
+mmopen(dev, flag, mode, p)
dev_t dev;
int flag, mode;
+ struct proc *p;
{
switch (minor(dev)) {
@@ -87,9 +86,10 @@ mmopen(dev, flag, mode)
/*ARGSUSED*/
int
-mmclose(dev, flag, mode)
+mmclose(dev, flag, mode, p)
dev_t dev;
int flag, mode;
+ struct proc *p;
{
return (0);
@@ -184,11 +184,11 @@ mmmmap(dev, off, prot)
int
mmioctl(dev, cmd, data, flags, p)
- dev_t dev;
- u_long cmd;
- caddr_t data;
- int flags;
- struct proc *p;
+ dev_t dev;
+ u_long cmd;
+ caddr_t data;
+ int flags;
+ struct proc *p;
{
- return (EOPNOTSUPP);
+ return (EOPNOTSUPP);
}