summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vmel.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-28 15:17:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-28 15:17:10 +0000
commit1ac9a556597ce64c5abec60c16f447023193bf93 (patch)
tree19969f7eaa579380bb53d480af3eaaff4d1e0c3c /sys/arch/mvme88k/dev/vmel.c
parent2d3e356666ed15077c646db498b8315e158ec3bf (diff)
Use the prototypes defined via cdev_decl() macros, instead of rolling our
own; thus fix a lot of foo_open(), foo_close() and foo_ioctl() prototypes in the process.
Diffstat (limited to 'sys/arch/mvme88k/dev/vmel.c')
-rw-r--r--sys/arch/mvme88k/dev/vmel.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/sys/arch/mvme88k/dev/vmel.c b/sys/arch/mvme88k/dev/vmel.c
index 7881d1e1295..d80c17def69 100644
--- a/sys/arch/mvme88k/dev/vmel.c
+++ b/sys/arch/mvme88k/dev/vmel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmel.c,v 1.9 2002/03/14 03:15:57 millert Exp $ */
+/* $OpenBSD: vmel.c,v 1.10 2002/04/28 15:17:09 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -31,15 +31,16 @@
*/
#include <sys/param.h>
-#include <sys/conf.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/device.h>
-#include <machine/cpu.h>
#include <machine/autoconf.h>
+#include <machine/conf.h>
+#include <machine/cpu.h>
+
#include <mvme88k/dev/vme.h>
/*
@@ -60,12 +61,6 @@ struct cfdriver vmel_cd = {
};
int vmelscan(struct device *, void *, void *);
-int vmelopen(dev_t, int, int);
-int vmelclose(dev_t, int, int);
-int vmelioctl(dev_t, int, caddr_t, int, struct proc *);
-int vmelread(dev_t, struct uio *, int);
-int vmelwrite(dev_t, struct uio *, int);
-paddr_t vmelmmap(dev_t, off_t, int);
int
vmelmatch(parent, cf, args)
@@ -99,9 +94,10 @@ vmelattach(parent, self, args)
/*ARGSUSED*/
int
-vmelopen(dev, flag, mode)
+vmelopen(dev, flag, mode, p)
dev_t dev;
int flag, mode;
+ struct proc *p;
{
if (minor(dev) >= vmel_cd.cd_ndevs ||
vmel_cd.cd_devs[minor(dev)] == NULL)
@@ -111,9 +107,10 @@ vmelopen(dev, flag, mode)
/*ARGSUSED*/
int
-vmelclose(dev, flag, mode)
+vmelclose(dev, flag, mode, p)
dev_t dev;
int flag, mode;
+ struct proc *p;
{
return (0);
@@ -122,9 +119,10 @@ vmelclose(dev, flag, mode)
/*ARGSUSED*/
int
vmelioctl(dev, cmd, data, flag, p)
- dev_t dev;
+ dev_t dev;
+ u_long cmd;
caddr_t data;
- int cmd, flag;
+ int flag;
struct proc *p;
{
int error = 0;