coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
heci.h File Reference
#include <stdint.h>
Include dependency graph for heci.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REG_SEC_FW_STS0   0x40
 
#define MASK_SEC_FIRMWARE_COMPLETE   (1 << 9)
 
#define MASK_SEC_STATUS   0xf
 

Enumerations

enum  sec_status {
  SEC_STATE_RESET = 0 , SEC_STATE_INIT , SEC_STATE_RECOVERY , SEC_STATE_UNKNOWN0 ,
  SEC_STATE_UNKNOWN1 , SEC_STATE_NORMAL , SEC_STATE_DISABLE_WAIT , SEC_STATE_TRANSITION ,
  SEC_STATE_INVALID_CPU
}
 

Functions

uint32_t heci_fw_sts (void)
 
bool heci_cse_normal (void)
 
bool heci_cse_done (void)
 
void heci_cse_lockdown (void)
 

Macro Definition Documentation

◆ MASK_SEC_FIRMWARE_COMPLETE

#define MASK_SEC_FIRMWARE_COMPLETE   (1 << 9)

Definition at line 21 of file heci.h.

◆ MASK_SEC_STATUS

#define MASK_SEC_STATUS   0xf

Definition at line 22 of file heci.h.

◆ REG_SEC_FW_STS0

#define REG_SEC_FW_STS0   0x40

Definition at line 20 of file heci.h.

Enumeration Type Documentation

◆ sec_status

enum sec_status
Enumerator
SEC_STATE_RESET 
SEC_STATE_INIT 
SEC_STATE_RECOVERY 
SEC_STATE_UNKNOWN0 
SEC_STATE_UNKNOWN1 
SEC_STATE_NORMAL 
SEC_STATE_DISABLE_WAIT 
SEC_STATE_TRANSITION 
SEC_STATE_INVALID_CPU 

Definition at line 8 of file heci.h.

Function Documentation

◆ heci_cse_done()

bool heci_cse_done ( void  )

Definition at line 19 of file heci.c.

References heci_fw_sts(), and MASK_SEC_FIRMWARE_COMPLETE.

Referenced by cf9_reset_prepare().

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

◆ heci_cse_lockdown()

void heci_cse_lockdown ( void  )

Definition at line 201 of file cse.c.

References CONFIG, dump_cse_state(), and heci1_disable().

Referenced by platform_fsp_notify_status().

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

◆ heci_cse_normal()

bool heci_cse_normal ( void  )

Definition at line 14 of file heci.c.

References heci_fw_sts(), MASK_SEC_STATUS, and SEC_STATE_NORMAL.

Referenced by cf9_reset_prepare().

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

◆ heci_fw_sts()

uint32_t heci_fw_sts ( void  )

Definition at line 9 of file heci.c.

References PCH_DEV_CSE, pci_read_config32(), and REG_SEC_FW_STS0.

Referenced by heci_cse_done(), and heci_cse_normal().

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