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

Go to the source code of this file.

Data Structures

struct  smm_save_state_ops
 

Macros

#define SMM_REV_INVALID   0xffffffff
 

Enumerations

enum  cpu_reg { RAX , RBX , RCX , RDX }
 

Functions

int get_apmc_node (u8 cmd)
 
int get_save_state_reg (const enum cpu_reg reg, const int node, void *out, const uint8_t length)
 
int set_save_state_reg (const enum cpu_reg reg, const int node, void *in, const uint8_t length)
 

Macro Definition Documentation

◆ SMM_REV_INVALID

#define SMM_REV_INVALID   0xffffffff

Definition at line 15 of file save_state.h.

Enumeration Type Documentation

◆ cpu_reg

enum cpu_reg
Enumerator
RAX 
RBX 
RCX 
RDX 

Definition at line 8 of file save_state.h.

Function Documentation

◆ get_apmc_node()

int get_apmc_node ( u8  cmd)

Definition at line 49 of file save_state.c.

References smm_save_state_ops::apmc_node, init_save_state(), and save_state.

Here is the call graph for this function:

◆ get_save_state_reg()

int get_save_state_reg ( const enum cpu_reg  reg,
const int  node,
void out,
const uint8_t  length 
)

Definition at line 57 of file save_state.c.

References smm_save_state_ops::get_reg, init_save_state(), length, and save_state.

Here is the call graph for this function:

◆ set_save_state_reg()

int set_save_state_reg ( const enum cpu_reg  reg,
const int  node,
void in,
const uint8_t  length 
)

Definition at line 68 of file save_state.c.

References init_save_state(), length, save_state, and smm_save_state_ops::set_reg.

Here is the call graph for this function: