coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cse_eop.c File Reference
#include <acpi/acpi.h>
#include <bootstate.h>
#include <console/console.h>
#include <intelblocks/cse.h>
#include <intelblocks/pmc_ipc.h>
#include <security/vboot/vboot_common.h>
#include <soc/intel/common/reset.h>
#include <soc/pci_devs.h>
#include <timestamp.h>
#include <types.h>
Include dependency graph for cse_eop.c:

Go to the source code of this file.

Macros

#define CSE_MAX_RETRY_CMD   3
 

Enumerations

enum  cse_cmd_result {
  CSE_CMD_RESULT_GLOBAL_RESET_REQUESTED , CSE_CMD_RESULT_SUCCESS , CSE_CMD_RESULT_ERROR , CSE_CMD_RESULT_DISABLED ,
  CSE_CMD_RESULT_RETRY
}
 

Functions

static enum cse_cmd_result decode_heci_send_receive_error (enum cse_tx_rx_status ret)
 
static enum cse_cmd_result cse_disable_mei_bus (void)
 
static enum cse_cmd_result cse_send_eop (void)
 
static enum cse_cmd_result cse_send_cmd_retries (enum cse_cmd_result(*cse_send_command)(void))
 
static void cse_handle_eop_error (void)
 
static void handle_cse_eop_result (enum cse_cmd_result result)
 
static void do_send_end_of_post (void)
 
void cse_send_end_of_post (void)
 
static void set_cse_end_of_post (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_PAYLOAD_BOOT, BS_ON_ENTRY, set_cse_end_of_post, NULL)
 

Macro Definition Documentation

◆ CSE_MAX_RETRY_CMD

#define CSE_MAX_RETRY_CMD   3

Definition at line 14 of file cse_eop.c.

Enumeration Type Documentation

◆ cse_cmd_result

Enumerator
CSE_CMD_RESULT_GLOBAL_RESET_REQUESTED 
CSE_CMD_RESULT_SUCCESS 
CSE_CMD_RESULT_ERROR 
CSE_CMD_RESULT_DISABLED 
CSE_CMD_RESULT_RETRY 

Definition at line 16 of file cse_eop.c.

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_PAYLOAD_BOOT  ,
BS_ON_ENTRY  ,
set_cse_end_of_post  ,
NULL   
)

◆ cse_disable_mei_bus()

static enum cse_cmd_result cse_disable_mei_bus ( void  )
static

Definition at line 1 of file cse_eop.c.

Referenced by cse_handle_eop_error().

Here is the caller graph for this function:

◆ cse_handle_eop_error()

static void cse_handle_eop_error ( void  )
static

Definition at line 163 of file cse_eop.c.

References cse_disable_mei_bus(), cse_disable_mei_devices(), cse_send_cmd_retries(), and die().

Referenced by handle_cse_eop_result().

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

◆ cse_send_cmd_retries()

static enum cse_cmd_result cse_send_cmd_retries ( enum cse_cmd_result(*)(void cse_send_command)
static

Definition at line 1 of file cse_eop.c.

Referenced by cse_handle_eop_error(), and do_send_end_of_post().

Here is the caller graph for this function:

◆ cse_send_end_of_post()

void cse_send_end_of_post ( void  )

Definition at line 236 of file cse_eop.c.

References do_send_end_of_post().

Referenced by soc_init_pre_device().

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

◆ cse_send_eop()

static enum cse_cmd_result cse_send_eop ( void  )
static

Definition at line 1 of file cse_eop.c.

Referenced by do_send_end_of_post().

Here is the caller graph for this function:

◆ decode_heci_send_receive_error()

static enum cse_cmd_result decode_heci_send_receive_error ( enum cse_tx_rx_status  ret)
static

Definition at line 1 of file cse_eop.c.

◆ do_send_end_of_post()

static void do_send_end_of_post ( void  )
static

◆ handle_cse_eop_result()

static void handle_cse_eop_result ( enum cse_cmd_result  result)
static

◆ set_cse_end_of_post()

static void set_cse_end_of_post ( void unused)
static

Definition at line 241 of file cse_eop.c.

References do_send_end_of_post().

Here is the call graph for this function: