summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-10-11 17:18:11 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-10-11 17:18:11 +0000
commitc6a19035f34fee74d181a54fe95a498ab865d9d2 (patch)
tree93c1f1e0dd37e50f4fee70a0da60329b6bee2ebf
parent2570617f4e76e45a2a05ba9b09d4dfd2e965dd19 (diff)
define some functions to go here, quiet warnings
-rw-r--r--sys/arch/landisk/stand/bootxx/boot1.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/sys/arch/landisk/stand/bootxx/boot1.c b/sys/arch/landisk/stand/bootxx/boot1.c
index 63d46325739..7c1cdbd7b11 100644
--- a/sys/arch/landisk/stand/bootxx/boot1.c
+++ b/sys/arch/landisk/stand/bootxx/boot1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot1.c,v 1.1 2006/10/06 21:48:50 mickey Exp $ */
+/* $OpenBSD: boot1.c,v 1.2 2006/10/11 17:18:10 drahn Exp $ */
/* $NetBSD: boot1.c,v 1.1 2006/09/01 21:26:19 uwe Exp $ */
/*-
@@ -52,17 +52,20 @@ const char *boot1(uint32_t *);
void putstr(const char *str);
int raise(int sig);
int blkdevstrategy(void *, int, daddr_t, size_t, void *, size_t *);
+int blkdevopen(struct open_file *, ...);
+int blkdevclose(struct open_file *);
+
extern struct disklabel ptn_disklabel;
struct fs_ops file_system[] = {
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek,
- ufs_stat, nullsys },
+ ufs_stat, ufs_readdir },
};
int nfsys = NENTS(file_system);
struct devsw devsw[] = {
- { "dk", blkdevstrategy, nullsys, nullsys, noioctl },
+ { "dk", blkdevstrategy, blkdevopen, blkdevclose, noioctl },
};
int ndevs = NENTS(devsw);
@@ -111,6 +114,17 @@ boot1(uint32_t *sector)
}
int
+blkdevopen(struct open_file *f, ...)
+{
+ return 0;
+}
+int
+blkdevclose(struct open_file *f)
+{
+ return 0;
+}
+
+int
blkdevstrategy(void *devdata, int flag, daddr_t dblk, size_t size, void *buf, size_t *rsize)
{