2.7 VFR Variable Store Definition

2.7.1 VFR Buffer Store Definition

1
vfrStatementVarStoreLinear ::=
2
"varstore"
3
(
4
StringIdentifier ","
5
| "UINT8" ","
6
| "UINT16" ","
7
| "UINT32" ","
8
| "UINT64" ","
9
| "EFI_HII_DATE" ","
10
| "EFI_HII_TIME" ","
11
| "EFI_HII_REF" ","
12
)
13
{ "varid" "=" Number "," }
14
"name" "=" StringIdentifier ","
15
"guid" "=" guidDefinition ";"
Copied!

BEHAVIORS AND RESTRICTIONS

Note: The StringIdentifier following varstore is the referred data structure name. The StringIdentifier of name is the varstore name.
Note: name and guid are used jointly to specify the variable store.

Example

1
varstore MyData, name = RefName, guid = FORMSET_GUID;
Copied!

2.7.2 VFR EFI Variable Store Definition

1
vfrStatementVarStoreEfi ::=
2
"efivarstore"
3
(
4
StringIdentifier ","
5
| "UINT8" ","
6
| "UINT16" ","
7
| "UINT32" ","
8
| "UINT64" ","
9
| "EFI_HII_DATE" ","
10
| "EFI_HII_TIME" ","
11
| "EFI_HII_REF" ","
12
)
13
{ "varid" "=" Number "," }
14
"attribute" "=" Number ( "|" Number )* ","
15
"name" "=" StringIdentifier ","
16
"guid" "=" guidDefinition ";"
Copied!

BEHAVIORS AND RESTRICTIONS

Note: The StringIdentifier following efivarstore is the referred data structure name. The StringIdentifier of name is the varstore name.
Note: name and guid are used jointly to specify the efi variable store.

Example

1
efivarstore EfiDataStructure
2
attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS,
3
name = EfiData,
4
guid = GUID;
Copied!

2.7.3 VFR Variable Name Store Definition

1
vfrStatementVarStoreNameValue ::=
2
"namevaluevarstore" StringIdentifier ","
3
{ "varid" "=" Number "," }
4
( "name" "=" getStringId "," )+
5
"guid" "=" guidDefinition ";"
Copied!

BEHAVIORS AND RESTRICTIONS

Example

1
namevaluevarstore NameValueVarStore,
2
name = STRING_TOKEN(STR_NAMEVALUE_TABLE_ITEM1),
3
name = STRING_TOKEN(STR_NAMEVALUE_TABLE_ITEM2),
4
name = STRING_TOKEN(STR_NAMEVALUE_TABLE_ITEM3),
5
guid = GUID;
Copied!