#include <Library/PeiServicesLib.h>\r
\r
#include <Guid/VariableFormat.h>\r
-\r
-typedef struct {\r
- VARIABLE_HEADER *CurrPtr;\r
- VARIABLE_HEADER *EndPtr;\r
- VARIABLE_HEADER *StartPtr;\r
-} VARIABLE_POINTER_TRACK;\r
-\r
-#define VARIABLE_INDEX_TABLE_VOLUME 122\r
-\r
-#define EFI_VARIABLE_INDEX_TABLE_GUID \\r
- { 0x8cfdb8c8, 0xd6b2, 0x40f3, { 0x8e, 0x97, 0x02, 0x30, 0x7c, 0xc9, 0x8b, 0x7c } }\r
-\r
-///\r
-/// Use this data structure to store variable-related info, which can decrease\r
-/// the cost of access to NV.\r
-///\r
-typedef struct {\r
- UINT16 Length;\r
- UINT16 GoneThrough;\r
- VARIABLE_HEADER *EndPtr;\r
- VARIABLE_HEADER *StartPtr;\r
- ///\r
- /// This field is used to store the distance of two neighbouring VAR_ADDED type variables.\r
- /// The meaning of the field is implement-dependent.\r
- UINT16 Index[VARIABLE_INDEX_TABLE_VOLUME];\r
-} VARIABLE_INDEX_TABLE;\r
-\r
-\r
+#include <Guid/VariableIndexTable.h>\r
//\r
// Functions\r
//\r