9 #define SMMSTORE_RET_SUCCESS 0
10 #define SMMSTORE_RET_FAILURE 1
11 #define SMMSTORE_RET_UNSUPPORTED 2
14 #define SMMSTORE_CMD_CLEAR 1
15 #define SMMSTORE_CMD_READ 2
16 #define SMMSTORE_CMD_APPEND 3
19 #define SMMSTORE_CMD_INIT 4
20 #define SMMSTORE_CMD_RAW_READ 5
21 #define SMMSTORE_CMD_RAW_WRITE 6
22 #define SMMSTORE_CMD_RAW_CLEAR 7
44 #define SMM_BLOCK_SIZE (64 * KiB)
struct arm64_kernel_header header
static struct smmstore_params_info info
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)
uint32_t smmstore_exec(uint8_t command, void *param)
int smmstore_read_region(void *buf, ssize_t *bufsize)
struct smmstore_params_init __packed
void lb_smmstorev2(struct lb_header *header)
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.