70 "Unknown SMM store v1 command: 0x%02x\n", command);
136 "Unknown SMM store v2 command: 0x%02x\n", command);
static struct sdram_info params
#define printk(level,...)
static uint32_t smmstorev2_exec(uint8_t command, void *param)
uint32_t smmstore_exec(uint8_t command, void *param)
static int range_check(void *start, size_t size)
static uint32_t smmstorev1_exec(uint8_t command, void *param)
static bool smm_points_to_smram(const void *ptr, const size_t len)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define SMMSTORE_CMD_READ
#define SMMSTORE_CMD_APPEND
#define SMMSTORE_RET_FAILURE
#define SMMSTORE_CMD_CLEAR
#define SMMSTORE_CMD_INIT
#define SMMSTORE_CMD_RAW_READ
#define SMMSTORE_CMD_RAW_CLEAR
#define SMMSTORE_RET_UNSUPPORTED
#define SMMSTORE_RET_SUCCESS
#define SMMSTORE_CMD_RAW_WRITE
int smmstore_init(void *buf, size_t len)
Call once before using the store.
int smmstore_append_data(void *key, uint32_t key_sz, void *value, uint32_t value_sz)
int smmstore_read_region(void *buf, ssize_t *bufsize)
int smmstore_clear_region(void)
int smmstore_rawclear_region(uint32_t block_id)
Erases the specified block of the SMMSTORE.
int smmstore_rawread_region(uint32_t block_id, uint32_t offset, uint32_t bufsize)
Reads the specified block of the SMMSTORE and places it in the communication buffer.
int smmstore_rawwrite_region(uint32_t block_id, uint32_t offset, uint32_t bufsize)
Writes the specified block of the SMMSTORE by reading it from the communication buffer.