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

Go to the source code of this file.

Data Structures

struct  second_gen_efs
 
struct  embedded_firmware
 

Macros

#define EFS_OFFSET   (0xffffff - (0x80000 << CONFIG_AMD_FWM_POSITION_INDEX) + 0x20000 + 1)
 
#define EMBEDDED_FW_SIGNATURE   0x55aa55aa
 
#define EFS_SECOND_GEN   0
 

Functions

bool efs_is_valid (void)
 
bool read_efs_spi_settings (uint8_t *mode, uint8_t *speed)
 

Macro Definition Documentation

◆ EFS_OFFSET

#define EFS_OFFSET   (0xffffff - (0x80000 << CONFIG_AMD_FWM_POSITION_INDEX) + 0x20000 + 1)

Definition at line 9 of file psp_efs.h.

◆ EFS_SECOND_GEN

#define EFS_SECOND_GEN   0

Definition at line 32 of file psp_efs.h.

◆ EMBEDDED_FW_SIGNATURE

#define EMBEDDED_FW_SIGNATURE   0x55aa55aa

Definition at line 11 of file psp_efs.h.

Function Documentation

◆ efs_is_valid()

bool efs_is_valid ( void  )

Definition at line 11 of file psp_efs.c.

References boot_device_ro(), efs, EFS_OFFSET, EMBEDDED_FW_SIGNATURE, rdev_mmap(), and embedded_firmware::signature.

Referenced by read_efs_spi_settings().

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

◆ read_efs_spi_settings()

bool read_efs_spi_settings ( uint8_t mode,
uint8_t speed 
)

Definition at line 22 of file psp_efs.c.

References efs, and efs_is_valid().

Referenced by fch_spi_config_modes().

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