diff options
Diffstat (limited to 'sys/boot/i386/libi386/libi386.h')
-rw-r--r-- | sys/boot/i386/libi386/libi386.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/libi386.h b/sys/boot/i386/libi386/libi386.h index 3f83bdc..cabe735 100644 --- a/sys/boot/i386/libi386/libi386.h +++ b/sys/boot/i386/libi386/libi386.h @@ -45,6 +45,11 @@ struct i386_devdesc int partition; void *data; } biosdisk; + struct + { + int unit; + void *data; + } bioscd; struct { int unit; /* XXX net layer lives over these? */ @@ -61,10 +66,15 @@ extern struct devdesc currdev; /* our current device */ #define MAXDEV 31 /* maximum number of distinct devices */ /* exported devices XXX rename? */ +extern struct devsw bioscd; extern struct devsw biosdisk; extern struct devsw pxedisk; extern struct fs_ops pxe_fsops; +int bc_add(int biosdev); /* Register CD booted from. */ +int bc_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */ +int bc_bios2unit(int biosdev); /* xlate BIOS device -> bioscd unit */ +int bc_unit2bios(int unit); /* xlate bioscd unit -> BIOS device */ u_int32_t bd_getbigeom(int bunit); /* return geometry in bootinfo format */ int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */ int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */ |