summaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofdisk.c
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2001-08-25 19:05:04 +0000
committermatt <matt@NetBSD.org>2001-08-25 19:05:04 +0000
commit3ec769dff664e378eb22716f08231b4eb9ec91de (patch)
treec2b494b5a2fc7a9ddb95729792f3c401d8f3f8af /sys/dev/ofw/ofdisk.c
parentd38ac3477c7a6058e3315fa61df3a3446d38e989 (diff)
Make this compile with -Wmissing-prototypes by adding appropriate
cdev_decl, bdev_decl, cons_decl
Diffstat (limited to 'sys/dev/ofw/ofdisk.c')
-rw-r--r--sys/dev/ofw/ofdisk.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c
index 68d10b522e7..3a123759b22 100644
--- a/sys/dev/ofw/ofdisk.c
+++ b/sys/dev/ofw/ofdisk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ofdisk.c,v 1.15 2001/01/08 02:03:47 fvdl Exp $ */
+/* $NetBSD: ofdisk.c,v 1.16 2001/08/25 19:05:04 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -34,6 +34,7 @@
#include <sys/param.h>
#include <sys/buf.h>
#include <sys/device.h>
+#include <sys/conf.h>
#include <sys/disklabel.h>
#include <sys/disk.h>
#include <sys/fcntl.h>
@@ -55,6 +56,9 @@ struct ofdisk_softc {
char sc_name[16];
};
+bdev_decl(ofdisk_);
+cdev_decl(ofdisk_);
+
/* sc_flags */
#define OFDF_ISFLOPPY 0x01 /* we are a floppy drive */
@@ -289,17 +293,19 @@ ofminphys(bp)
}
int
-ofdisk_read(dev, uio)
+ofdisk_read(dev, uio, flags)
dev_t dev;
struct uio *uio;
+ int flags;
{
return physio(ofdisk_strategy, NULL, dev, B_READ, ofminphys, uio);
}
int
-ofdisk_write(dev, uio)
+ofdisk_write(dev, uio, flags)
dev_t dev;
struct uio *uio;
+ int flags;
{
return physio(ofdisk_strategy, NULL, dev, B_WRITE, ofminphys, uio);
}