1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SMMSTORETOOL__VS_H__
4 #define SMMSTORETOOL__VS_H__
11 // Variable store is part of firmware volume. This unit doesn't deal with its
12 // header only with data that follows.
19 size_t name_size
; // in bytes
21 size_t data_size
; // in bytes
30 struct var_store_t
vs_load(struct mem_range_t vs_data
, bool auth_vars
);
32 bool vs_store(struct var_store_t
*vs
, struct mem_range_t vs_data
);
34 struct var_t
*vs_new_var(struct var_store_t
*vs
);
36 struct var_t
*vs_find(struct var_store_t
*vs
,
38 const EFI_GUID
*guid
);
40 void vs_delete(struct var_store_t
*vs
, struct var_t
*var
);
42 void vs_free(struct var_store_t
*vs
);
44 #endif // SMMSTORETOOL__VS_H__