summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw/libofw/libofw.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-05-11 21:30:46 +0000
committerjake <jake@FreeBSD.org>2002-05-11 21:30:46 +0000
commit9b110cfade29b1b5f79ac073d1939f8dde64487e (patch)
tree3551ce2d663f550e5e46c4d08dc37d4ecf43af6b /sys/boot/ofw/libofw/libofw.h
parent6aad34df02289444642787c1282319835d8defa7 (diff)
downloadFreeBSD-src-9b110cfade29b1b5f79ac073d1939f8dde64487e.zip
FreeBSD-src-9b110cfade29b1b5f79ac073d1939f8dde64487e.tar.gz
Change the disk probing so that it will actually find disks other
than the first one on a controller, and work for secondary controllers. Due to the prom not having nodes for each disk, but a catch-all one, we have to iterate over each device, trying to open it to determine whether it is actually present. Since probing this way takese some time (and spews some spurious warnings), it should maybe be short-circuited if we use the device we were booted from. Implement lazy device probing, and correct slice/partiniton handling in the ofwd_open() code. With this, I can now actually boot a kernel from disk, and the loader does not create unnecessary delays. Submitted by: tmm
Diffstat (limited to 'sys/boot/ofw/libofw/libofw.h')
-rw-r--r--sys/boot/ofw/libofw/libofw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/libofw.h b/sys/boot/ofw/libofw/libofw.h
index 249aa09..c65c84a 100644
--- a/sys/boot/ofw/libofw/libofw.h
+++ b/sys/boot/ofw/libofw/libofw.h
@@ -71,7 +71,7 @@ extern int ofw_setcurrdev(struct env_var *ev, int flags, void *value);
extern struct devsw ofwdisk;
extern struct netif_driver ofwnet;
-int ofwd_getunit(const char *);
+void ofwd_enter_dev(const char *);
int ofwn_getunit(const char *);
ssize_t ofw_copyin(const void *src, vm_offset_t dest, const size_t len);
OpenPOWER on IntegriCloud