From 7a9e3739a66bd0fadfdc611c72e879fcc6f9ef01 Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Tue, 14 Oct 1997 01:04:26 +0000 Subject: Support for bios memory maps. --- sys/arch/i386/include/biosvar.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h index 94a24b087d2..0eb4ee8a081 100644 --- a/sys/arch/i386/include/biosvar.h +++ b/sys/arch/i386/include/biosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosvar.h,v 1.15 1997/10/12 23:55:12 mickey Exp $ */ +/* $OpenBSD: biosvar.h,v 1.16 1997/10/14 01:04:25 weingart Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -54,6 +54,15 @@ #define BIOSM_F144K 0xf0 /* floppy ds/hd 18 spt 3.50" */ #define BIOSM_OTHER 0xf0 /* any other */ +/* + * BIOS memory maps + */ +#define BIOS_MAP_END 0x00 /* End of array XXX - special */ +#define BIOS_MAP_FREE 0x01 /* Usable memory */ +#define BIOS_MAP_RES 0x02 /* Reseved memory */ +#define BIOS_MAP_ACPI 0x03 /* ACPI Reclaim memory */ +#define BIOS_MAP_NVS 0x04 /* ACPI NVS memory */ + /* * CTL_BIOS definitions. */ @@ -115,6 +124,12 @@ struct EDD_CB { u_int64_t edd_daddr; /* starting block */ }; +struct BIOS_MAP { + u_int32_t addr; /* Beginning of block */ + u_int32_t size; /* Size of block */ + int type; /* Type of block */ +}; + #ifdef _KERNEL #include -- cgit v1.2.3