diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2009-04-13 18:07:02 +0000 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2009-04-13 18:07:02 +0000 |
commit | 33cafe5bfb440d150e36872d091037fa0785863d (patch) | |
tree | 66380579c3a3f0f33da895634b9bad17a096cab3 /src/arch/i386/include | |
parent | 497c8effceb9510ca89561a8fcc87cbc0acb8b08 (diff) | |
download | coreboot-33cafe5bfb440d150e36872d091037fa0785863d.tar.xz |
Following patch implements ACPI resume support for coreboot. The hardware main
hook will come in separate patch perhaps.
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4101 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r-- | src/arch/i386/include/arch/acpi.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdint.h> + +/* 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); |