coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
wakeup.c File Reference
#include <stdint.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include <console/console.h>
#include "i82371eb.h"
Include dependency graph for wakeup.c:

Go to the source code of this file.

Functions

int acpi_get_sleep_type (void)
 

Variables

static const u8 acpi_sus_to_slp_typ [8]
 

Function Documentation

◆ acpi_get_sleep_type()

int acpi_get_sleep_type ( void  )

Definition at line 30 of file wakeup.c.

References acpi_read16(), acpi_sus_to_slp_typ, BIOS_DEBUG, DEFAULT_PMBASE, inw(), MMIO_ACPI_PM1_CNT_BLK, PMCNTRL, and printk.

Referenced by acpi_is_wakeup_s3(), bootblock_mainboard_early_init(), do_send_end_of_post(), mainboard_final(), and soc_core_init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ acpi_sus_to_slp_typ

const u8 acpi_sus_to_slp_typ[8]
static
Initial value:
= {
5, 3, 2, 1, 1, 0, 0, 0
}

Definition at line 26 of file wakeup.c.

Referenced by acpi_get_sleep_type().