From 33cafe5bfb440d150e36872d091037fa0785863d Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Mon, 13 Apr 2009 18:07:02 +0000 Subject: Following patch implements ACPI resume support for coreboot. The hardware main hook will come in separate patch perhaps. Signed-off-by: Rudolf Marek Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4101 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/include/arch/acpi.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/arch/i386/include') diff --git a/src/arch/i386/include/arch/acpi.h b/src/arch/i386/include/arch/acpi.h index 1fccd62a7b..99bec4b30c 100644 --- a/src/arch/i386/include/arch/acpi.h +++ b/src/arch/i386/include/arch/acpi.h @@ -16,6 +16,9 @@ #if HAVE_ACPI_TABLES==1 #include + +/* 0 = S0, 1 = S1 ...*/ +extern u8 acpi_slp_type; #define RSDP_SIG "RSD PTR " /* RSDT Pointer signature */ #define RSDP_NAME "RSDP" @@ -27,6 +30,8 @@ #define SRAT_NAME "SRAT" #define SLIT_NAME "SLIT" #define SSDT_NAME "SSDT" +#define FACS_NAME "FACS" +#define FADT_NAME "FACP" #define RSDT_TABLE "RSDT " #define HPET_TABLE "AMD64 " @@ -328,6 +333,10 @@ void acpi_create_facs(acpi_facs_t *facs); void acpi_write_rsdt(acpi_rsdt_t *rsdt); void acpi_write_rsdp(acpi_rsdp_t *rsdp, acpi_rsdt_t *rsdt); +void *acpi_find_wakeup_vector(void); +void *acpi_get_wakeup_rsdp(void); +extern void acpi_jmp_to_realm_wakeup(u32 linear_addr); +void acpi_jump_to_wakeup(void *wakeup_addr); unsigned long acpi_add_ssdt_pstates(acpi_rsdt_t *rsdt, unsigned long current); -- cgit v1.2.3