From 96f5284585e607865edb3e61d295e468e954afea Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sat, 30 Sep 2000 20:12:27 +0000 Subject: More updates to the ACPI code: - Move all register I/O into acpi_io.c - Move event handling into acpi_event.c - Reorganise headers into acpivar/acpireg/acpiio - Move find-RSDT and find-ACPI-owned-memory into acpi_machdep - Allocate all resources (except those detailed only by AML) as real resources. Add infrastructure that will make adding resource support to AML code easy. - Remove all ACPI #ifdefs in non-ACPI code - Removed unnecessary includes - Minor style and commenting fixes Reviewed by: iwasaki --- sys/amd64/include/pc/bios.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/pc/bios.h b/sys/amd64/include/pc/bios.h index 1d8b893dcd55..9df5a0dcaae6 100644 --- a/sys/amd64/include/pc/bios.h +++ b/sys/amd64/include/pc/bios.h @@ -218,3 +218,16 @@ extern int bios16(struct bios_args *, char *, ...); extern int bios16_call(struct bios_regs *, char *); extern int bios32(struct bios_regs *, u_int, u_short); extern void set_bios_selectors(struct bios_segments *, int); + +/* + * Int 15:E820 'SMAP' structure + * + * XXX add constants for type + */ +#define SMAP_SIG 0x534D4150 /* 'SMAP' */ +struct bios_smap { + u_int64_t base; + u_int64_t length; + u_int32_t type; +} __attribute__ ((packed)); + -- cgit v1.3