coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootmode.h File Reference
#include <stdbool.h>
Include dependency graph for bootmode.h:

Go to the source code of this file.

Functions

int get_write_protect_state (void)
 Only used if CONFIG(CHROMEOS) is set. More...
 
int get_recovery_mode_switch (void)
 HACK: Use Fn-Key as recovery mode switch. More...
 
int get_recovery_mode_retrain_switch (void)
 
int clear_recovery_mode_switch (void)
 
int get_wipeout_mode_switch (void)
 
int get_lid_switch (void)
 
int get_ec_is_trusted (void)
 
int display_init_required (void)
 
int gfx_get_init_done (void)
 
void gfx_set_init_done (int done)
 
int platform_is_resuming (void)
 

Function Documentation

◆ clear_recovery_mode_switch()

int clear_recovery_mode_switch ( void  )

Definition at line 53 of file switches.c.

References EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, elog_add_recovery_mode_switch_event(), and google_chromeec_clear_events_b().

Referenced by do_clear_recovery_mode_switch().

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

◆ display_init_required()

int display_init_required ( void  )

Definition at line 22 of file bootmode.c.

References CONFIG, dead_code, and vboot_get_context().

Referenced by display_startup(), enable_tegra210_dev(), gma_init(), load_vbt(), mainboard_init(), setup_usb(), should_run_oprom(), soc_init(), tcss_configure_dp_mode(), variant_chip_display_init(), variant_ramstage_init(), vbt_get(), and wa_init_display_signal().

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

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 25 of file chromeos.c.

References board_id(), CONFIG, EC_IN_RW, EC_IN_RW_GPIO, EC_IN_RW_PAD, get_gpio(), GPIO, GPIO_D17, GPIO_EC_IN_RW, GPIO_EC_IN_RW_ODL, GPIO_ECINRW, gpio_get(), gpio_get_value(), GPIO_X23, score_get_gpio(), and UNDEFINED_STRAPPING_ID.

Referenced by verstage_main().

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

◆ get_lid_switch()

int get_lid_switch ( void  )

Definition at line 37 of file chromeos.c.

References CONFIG, EC_GPI_LID_STAT_BIT, EC_HW_GPI_STATUS, ec_mem_read(), ec_read(), EC_SWITCH_LID_OPEN, get_gpio(), google_chromeec_get_switches(), and GPIO_LID.

Referenced by fill_lb_gpios(), and verstage_main().

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

◆ get_recovery_mode_retrain_switch()

int get_recovery_mode_retrain_switch ( void  )

Definition at line 29 of file switches.c.

References EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, and google_chromeec_get_events_b().

Referenced by invalidate_normal_cache(), mrc_cache_find_current(), and mt_mem_init_run().

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

◆ get_recovery_mode_switch()

◆ get_wipeout_mode_switch()

int get_wipeout_mode_switch ( void  )

Definition at line 151 of file chromeos.c.

References get_switch_state(), and wipeout_req.

Referenced by verstage_main().

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

◆ get_write_protect_state()

int get_write_protect_state ( void  )

Only used if CONFIG(CHROMEOS) is set.

Always zero as the WP pin of the flash is tied high.

CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)

Definition at line 39 of file vboot.c.

References get_gpio(), get_wp_status_gpio_pin(), GPIO, GPIO_D16, gpio_get(), gpio_get_value(), GPIO_PCH_WP, GPIO_SPI_WP, GPIO_WP, GPIO_X30, GPP_E15, read_gpio(), WP_GPIO, wp_polarity, WP_SW, WRITE_PROTECT, and WRITE_PROTECT_L.

Referenced by nvm_is_write_protected().

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

◆ gfx_get_init_done()

int gfx_get_init_done ( void  )

Definition at line 10 of file bootmode.c.

References gfx_init_done.

Referenced by fill_lb_gpios(), and igd_init().

Here is the caller graph for this function:

◆ gfx_set_init_done()

void gfx_set_init_done ( int  done)

Definition at line 17 of file bootmode.c.

References gfx_init_done.

Referenced by fsp_run_silicon_init(), gma_func0_init(), gma_init(), gma_ngi(), and igd_init().

Here is the caller graph for this function:

◆ platform_is_resuming()

int platform_is_resuming ( void  )

Definition at line 101 of file acpi.c.

References ACPI_BASE_ADDRESS, acpi_get_sleep_type(), acpi_read16(), ACPI_S3, BIOS_ERR, get_pmbase(), inl(), inw(), MMIO_ACPI_PM1_STS, PM1_CNT, PM1_STS, pmc_read_pm1_control(), printk, read_pmbase16(), svc_get_boot_mode(), and WAK_STS.

Referenced by handle_digest_result(), southbridge_detect_s3_resume(), and verstage_main().

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