summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/libi386/libi386.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-05 18:58:33 +0000
committerjhb <jhb@FreeBSD.org>2001-11-05 18:58:33 +0000
commit094cb29b1151595b1d62c786f4f942d3a11fe157 (patch)
tree0052d165cb914858205c5e81032180dff27ccb6e /sys/boot/i386/libi386/libi386.h
parentc077e35a66d15f941c73fdf96aeb87b7a6387c51 (diff)
downloadFreeBSD-src-094cb29b1151595b1d62c786f4f942d3a11fe157.zip
FreeBSD-src-094cb29b1151595b1d62c786f4f942d3a11fe157.tar.gz
Add a device driver for the BIOS device for CD-ROM's booted via El Torito
no emulation mode. Unlike other BIOS devices, this device uses 2048 byte sectors. Also, the bioscd driver does not have to worry about slices or partitions.
Diffstat (limited to 'sys/boot/i386/libi386/libi386.h')
-rw-r--r--sys/boot/i386/libi386/libi386.h10
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 */
OpenPOWER on IntegriCloud