summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/biosvar.h
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1997-10-17 15:03:29 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1997-10-17 15:03:29 +0000
commit41093f286d691912ac4dbf211375b21dbff49e4e (patch)
tree2921090c2b4c87b93ba68120400a50ef8a5cfec7 /sys/arch/i386/include/biosvar.h
parent82b80c5d2e1dea90de4bcb7b3dda8c4854d6564a (diff)
Use BIOS to probe for memory map.
Probe for BIOS supported disks. Use BIOS to get geometry for supported disks. All in preparation to passing the whole thing to the kernel.
Diffstat (limited to 'sys/arch/i386/include/biosvar.h')
-rw-r--r--sys/arch/i386/include/biosvar.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h
index 0eb4ee8a081..1aa6add713b 100644
--- a/sys/arch/i386/include/biosvar.h
+++ b/sys/arch/i386/include/biosvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosvar.h,v 1.16 1997/10/14 01:04:25 weingart Exp $ */
+/* $OpenBSD: biosvar.h,v 1.17 1997/10/17 15:03:15 weingart Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -130,6 +130,26 @@ struct BIOS_MAP {
int type; /* Type of block */
};
+/* Info about disk from the bios, plus the mapping from
+ * BIOS numbers to BSD major (driver?) number.
+ *
+ * Also, do not bother with BIOSN*() macros, just parcel
+ * the info out, and use it like this. This makes for less
+ * of a dependance on BIOSN*() macros having to be the same
+ * across /boot, /bsd, and userland.
+ */
+typedef struct _bios_diskinfo {
+ /* BIOS section */
+ signed int bios_number; /* BIOS number of drive (or -1) */
+ unsigned int bios_cylinders; /* BIOS cylinders */
+ unsigned int bios_heads; /* BIOS heads */
+ unsigned int bios_sectors; /* BIOS sectors */
+
+ /* BSD section */
+ signed int bsd_major; /* Major number of driver (or -1) */
+} bios_diskinfo_t;
+
+
#ifdef _KERNEL
#include <machine/bus.h>