From c6a19035f34fee74d181a54fe95a498ab865d9d2 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Wed, 11 Oct 2006 17:18:11 +0000 Subject: define some functions to go here, quiet warnings --- sys/arch/landisk/stand/bootxx/boot1.c | 20 +++++++++++++++++--- 1 file 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); @@ -110,6 +113,17 @@ boot1(uint32_t *sector) return 0; } +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) { -- cgit v1.2.3