From 11a9947f1a68e23001690955d8d0975ad4d6cf0c Mon Sep 17 00:00:00 2001 From: rtm Date: Fri, 21 Jul 2006 13:18:04 +0000 Subject: bread iget mkfs makes a file system image put this in your .bochsrc: ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1 --- defs.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'defs.h') diff --git a/defs.h b/defs.h index beed68a..0ed71bb 100644 --- a/defs.h +++ b/defs.h @@ -87,6 +87,14 @@ void fd_incref(struct fd *fd); // ide.c void ide_init(void); void ide_intr(void); -void* ide_start_read(uint secno, void *dst, uint nsecs); +void* ide_start_read(int diskno, uint secno, void *dst, uint nsecs); int ide_finish_read(void *); +// bio.c +struct buf; +struct buf *bread(uint, uint); +void brelse(struct buf *); + +// fs.c +struct inode * iget(uint dev, uint inum); +void iput(struct inode *ip); -- cgit v1.2.3