diff options
author | robert <robert@FreeBSD.org> | 2001-10-15 09:28:07 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2001-10-15 09:28:07 +0000 |
commit | 8e79c738e5c5a0381353d49bd6075d9c2dd5f8db (patch) | |
tree | c0f7db1be2a55599068fac1689a74b36d4d28f42 /sys/boot | |
parent | e2f56100f9076fb6118d038676da1cb488459555 (diff) | |
download | FreeBSD-src-8e79c738e5c5a0381353d49bd6075d9c2dd5f8db.zip FreeBSD-src-8e79c738e5c5a0381353d49bd6075d9c2dd5f8db.tar.gz |
- Include openfirm.h for phandle_t.
- Add some necessary members to the ofwdisk structure.
- Add a prototype for ofw_parseofwdev.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/ofw/libofw/libofw.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/boot/ofw/libofw/libofw.h b/sys/boot/ofw/libofw/libofw.h index dcb0b0e..b0275ec 100644 --- a/sys/boot/ofw/libofw/libofw.h +++ b/sys/boot/ofw/libofw/libofw.h @@ -25,17 +25,21 @@ * $FreeBSD$ */ +#include "openfirm.h" + /* Note: Must match the 'struct devdesc' in bootstrap.h */ struct ofw_devdesc { struct devsw *d_dev; int d_type; union { struct { - int unit; - char path[64]; - int partition; - int slice; - int bsize; + phandle_t handle; /* OFW handle */ + unsigned long partoff; /* sector offset */ + int unit; /* disk number */ + char path[64]; /* OFW path */ + int slice; /* slice# */ + int partition; /* partition in slice */ + int bsize; /* block size */ } ofwdisk; struct { int unit; @@ -48,8 +52,6 @@ struct ofw_devdesc { * I've made a wild guess as to what goes where, but I have no idea if it's * right. * - * u_long partoff; - * int bsize; * void *dmabuf; */ }; @@ -63,6 +65,7 @@ struct ofw_devdesc { extern int ofw_getdev(void **vdev, const char *devspec, const char **path); extern char *ofw_fmtdev(void *vdev); +extern int ofw_parseofwdev(struct ofw_devdesc *, const char *devspec); extern int ofw_setcurrdev(struct env_var *ev, int flags, void *value); extern struct devsw ofwdisk; |