1 | /** @file
|
---|
2 | The variable data structures are related to EDK II-specific implementation of UEFI variables.
|
---|
3 | VariableFormat.h defines variable data headers and variable storage region headers.
|
---|
4 |
|
---|
5 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #ifndef __VARIABLE_INDEX_TABLE_H__
|
---|
11 | #define __VARIABLE_INDEX_TABLE_H__
|
---|
12 |
|
---|
13 | typedef struct {
|
---|
14 | VARIABLE_HEADER *CurrPtr;
|
---|
15 | VARIABLE_HEADER *EndPtr;
|
---|
16 | VARIABLE_HEADER *StartPtr;
|
---|
17 | } VARIABLE_POINTER_TRACK;
|
---|
18 |
|
---|
19 | #define VARIABLE_INDEX_TABLE_VOLUME 122
|
---|
20 |
|
---|
21 | #define EFI_VARIABLE_INDEX_TABLE_GUID \
|
---|
22 | { 0x8cfdb8c8, 0xd6b2, 0x40f3, { 0x8e, 0x97, 0x02, 0x30, 0x7c, 0xc9, 0x8b, 0x7c } }
|
---|
23 |
|
---|
24 | extern EFI_GUID gEfiVariableIndexTableGuid;
|
---|
25 |
|
---|
26 | ///
|
---|
27 | /// Use this data structure to store variable-related info, which can decrease
|
---|
28 | /// the cost of access to NV.
|
---|
29 | ///
|
---|
30 | typedef struct {
|
---|
31 | UINT16 Length;
|
---|
32 | UINT16 GoneThrough;
|
---|
33 | VARIABLE_HEADER *EndPtr;
|
---|
34 | VARIABLE_HEADER *StartPtr;
|
---|
35 | ///
|
---|
36 | /// This field is used to store the distance of two neighbouring VAR_ADDED type variables.
|
---|
37 | /// The meaning of the field is implement-dependent.
|
---|
38 | UINT16 Index[VARIABLE_INDEX_TABLE_VOLUME];
|
---|
39 | } VARIABLE_INDEX_TABLE;
|
---|
40 |
|
---|
41 | #endif // __VARIABLE_INDEX_TABLE_H__
|
---|