2015-08-25 05:11:06 +02:00
|
|
|
/** @file
|
|
|
|
Include file for platform variable cleanup HII.
|
|
|
|
|
|
|
|
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-08-25 05:11:06 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _PLAT_VAR_CLEANUP_HII_
|
|
|
|
#define _PLAT_VAR_CLEANUP_HII_
|
|
|
|
|
|
|
|
//
|
|
|
|
// {24F14D8A-D7A8-4991-91E0-96C3B7DB8456}
|
|
|
|
//
|
|
|
|
#define VARIABLE_CLEANUP_HII_GUID \
|
|
|
|
{ \
|
|
|
|
0x24f14d8a, 0xd7a8, 0x4991, { 0x91, 0xe0, 0x96, 0xc3, 0xb7, 0xdb, 0x84, 0x56 } \
|
|
|
|
}
|
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define MAX_USER_VARIABLE_COUNT 0x1000
|
2015-08-25 05:11:06 +02:00
|
|
|
|
|
|
|
typedef struct {
|
2021-12-05 23:54:02 +01:00
|
|
|
UINT8 SelectAll;
|
2015-08-25 05:11:06 +02:00
|
|
|
//
|
|
|
|
// FALSE is to not delete, TRUE is to delete.
|
|
|
|
//
|
2021-12-05 23:54:02 +01:00
|
|
|
UINT8 UserVariable[MAX_USER_VARIABLE_COUNT];
|
2015-08-25 05:11:06 +02:00
|
|
|
} VARIABLE_CLEANUP_DATA;
|
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define VARIABLE_CLEANUP_VARSTORE_ID 0x8000
|
2015-08-25 05:11:06 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Field offset of structure VARIABLE_CLEANUP_DATA
|
|
|
|
//
|
2021-12-05 23:54:02 +01:00
|
|
|
#define VAR_OFFSET(Field) ((UINTN) &(((VARIABLE_CLEANUP_DATA *) 0)->Field))
|
|
|
|
#define USER_VARIABLE_VAR_OFFSET (VAR_OFFSET (UserVariable))
|
2015-08-25 05:11:06 +02:00
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define FORM_ID_VARIABLE_CLEANUP 0x8000
|
2015-08-25 05:11:06 +02:00
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define LABEL_START 0x0000
|
|
|
|
#define LABEL_END 0xFFFF
|
2015-08-25 05:11:06 +02:00
|
|
|
|
2021-12-05 23:54:02 +01:00
|
|
|
#define SELECT_ALL_QUESTION_ID 0x7FFD
|
|
|
|
#define SAVE_AND_EXIT_QUESTION_ID 0x7FFE
|
|
|
|
#define NO_SAVE_AND_EXIT_QUESTION_ID 0x7FFF
|
2015-08-25 05:11:06 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Tool automatic generated Question Id start from 1.
|
|
|
|
// In order to avoid to conflict them, the user variable QuestionID offset is defined from 0x8000.
|
|
|
|
//
|
2021-12-05 23:54:02 +01:00
|
|
|
#define USER_VARIABLE_QUESTION_ID 0x8000
|
2015-08-25 05:11:06 +02:00
|
|
|
|
|
|
|
#endif
|