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

Go to the source code of this file.

Data Structures

struct  smm_trigger_info
 
struct  smm_register
 
struct  smm_register_info
 

Macros

#define SMM_TRIGGER_IO   0
 
#define SMM_TRIGGER_MEM   1
 
#define SMM_TRIGGER_BYTE   0
 
#define SMM_TRIGGER_WORD   1
 
#define SMM_TRIGGER_DWORD   2
 
#define PSPSTS_SUCCESS   0
 
#define PSPSTS_NOBASE   1
 
#define PSPSTS_HALTED   2
 
#define PSPSTS_RECOVERY   3
 
#define PSPSTS_SEND_ERROR   4
 
#define PSPSTS_INIT_TIMEOUT   5
 
#define PSPSTS_CMD_TIMEOUT   6
 
#define PSPSTS_UNSUPPORTED   7
 
#define PSPSTS_INVALID_NAME   8
 
#define PSPSTS_INVALID_BLOB   9
 

Enumerations

enum  psp_blob_type { BLOB_SMU_FW , BLOB_SMU_FW2 }
 

Functions

void soc_fill_smm_trig_info (struct smm_trigger_info *trig)
 
void soc_fill_smm_reg_info (struct smm_register_info *reg)
 
int psp_notify_dram (void)
 
int psp_notify_smm (void)
 
void psp_notify_sx_info (u8 sleep_type)
 
int psp_load_named_blob (enum psp_blob_type type, const char *name)
 

Variables

struct smm_trigger_info __packed
 

Macro Definition Documentation

◆ PSPSTS_CMD_TIMEOUT

#define PSPSTS_CMD_TIMEOUT   6

Definition at line 48 of file psp.h.

◆ PSPSTS_HALTED

#define PSPSTS_HALTED   2

Definition at line 44 of file psp.h.

◆ PSPSTS_INIT_TIMEOUT

#define PSPSTS_INIT_TIMEOUT   5

Definition at line 47 of file psp.h.

◆ PSPSTS_INVALID_BLOB

#define PSPSTS_INVALID_BLOB   9

Definition at line 52 of file psp.h.

◆ PSPSTS_INVALID_NAME

#define PSPSTS_INVALID_NAME   8

Definition at line 51 of file psp.h.

◆ PSPSTS_NOBASE

#define PSPSTS_NOBASE   1

Definition at line 43 of file psp.h.

◆ PSPSTS_RECOVERY

#define PSPSTS_RECOVERY   3

Definition at line 45 of file psp.h.

◆ PSPSTS_SEND_ERROR

#define PSPSTS_SEND_ERROR   4

Definition at line 46 of file psp.h.

◆ PSPSTS_SUCCESS

#define PSPSTS_SUCCESS   0

Definition at line 42 of file psp.h.

◆ PSPSTS_UNSUPPORTED

#define PSPSTS_UNSUPPORTED   7

Definition at line 50 of file psp.h.

◆ SMM_TRIGGER_BYTE

#define SMM_TRIGGER_BYTE   0

Definition at line 11 of file psp.h.

◆ SMM_TRIGGER_DWORD

#define SMM_TRIGGER_DWORD   2

Definition at line 13 of file psp.h.

◆ SMM_TRIGGER_IO

#define SMM_TRIGGER_IO   0

Definition at line 8 of file psp.h.

◆ SMM_TRIGGER_MEM

#define SMM_TRIGGER_MEM   1

Definition at line 9 of file psp.h.

◆ SMM_TRIGGER_WORD

#define SMM_TRIGGER_WORD   1

Definition at line 12 of file psp.h.

Enumeration Type Documentation

◆ psp_blob_type

Enumerator
BLOB_SMU_FW 
BLOB_SMU_FW2 

Definition at line 65 of file psp.h.

Function Documentation

◆ psp_load_named_blob()

int psp_load_named_blob ( enum psp_blob_type  type,
const char *  name 
)

Definition at line 153 of file psp_gen1.c.

References BIOS_DEBUG, BIOS_ERR, BLOB_SMU_FW, BLOB_SMU_FW2, cbfs_map(), cbfs_unmap(), CONFIG, MBOX_BIOS_CMD_SMU_FW, MBOX_BIOS_CMD_SMU_FW2, name, NULL, printk, psp_print_cmd_status(), PSPSTS_INVALID_BLOB, PSPSTS_INVALID_NAME, PSPSTS_UNSUPPORTED, send_psp_command(), and type.

Referenced by car_stage_entry(), and earliest_ramstage().

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

◆ psp_notify_dram()

int psp_notify_dram ( void  )

Definition at line 197 of file psp_gen1.c.

References BIOS_DEBUG, buffer, MBOX_BIOS_CMD_DRAM_INFO, printk, psp_print_cmd_status(), and send_psp_command().

Referenced by car_stage_entry().

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

◆ psp_notify_smm()

int psp_notify_smm ( void  )

◆ psp_notify_sx_info()

void psp_notify_sx_info ( u8  sleep_type)

Definition at line 77 of file psp_smm.c.

References BIOS_DEBUG, BIOS_ERR, buffer, c2p_buffer, clear_smm_flag(), MBOX_BIOS_CMD_SX_INFO, MBOX_BIOS_CMD_SX_INFO_SLEEP_TYPE_MAX, memset(), printk, psp_print_cmd_status(), send_psp_command(), set_smm_flag(), and mbox_cmd_sx_info_buffer::sleep_type.

Referenced by fch_slp_typ_handler().

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

◆ soc_fill_smm_reg_info()

◆ soc_fill_smm_trig_info()

Variable Documentation

◆ __packed