]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h
MdeModulePkg: Convert non DOS format files to DOS format and remove unused module...
[mirror_edk2.git] / MdeModulePkg / Universal / PlatformDriOverrideDxe / PlatOverMngr.h
CommitLineData
a6f164a7 1/** @file\r
68dbca6c
LG
2 \r
3 The defintions are required both by Source code and Vfr file.\r
4 The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined. \r
a6f164a7 5\r
17e95ca9 6Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
e5eed7d3 7This program and the accompanying materials\r
a6f164a7 8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
a6f164a7 15**/\r
16\r
17#ifndef _PLAT_OVER_MNGR_H_\r
18#define _PLAT_OVER_MNGR_H_\r
19\r
c8ad2d7a 20#include <Guid/PlatDriOverrideHii.h>\r
a6f164a7 21\r
68dbca6c
LG
22//\r
23// The max number of the supported driver list.\r
68dbca6c 24//\r
17e95ca9 25#define MAX_CHOICE_NUM 0x00FF\r
68dbca6c 26#define UPDATE_DATA_SIZE 0x1000\r
a6f164a7 27\r
68dbca6c 28#define FORM_ID_DEVICE 0x1100\r
a6f164a7 29#define FORM_ID_DRIVER 0x1200\r
30#define FORM_ID_ORDER 0x1500\r
31\r
32#define KEY_VALUE_DEVICE_OFFSET 0x0100\r
17e95ca9 33#define KEY_VALUE_DRIVER_OFFSET 0x0300\r
a6f164a7 34\r
35#define KEY_VALUE_DEVICE_REFRESH 0x1234\r
36#define KEY_VALUE_DEVICE_FILTER 0x1235\r
37#define KEY_VALUE_DEVICE_CLEAR 0x1236\r
38\r
39#define KEY_VALUE_DRIVER_GOTO_PREVIOUS 0x1300\r
40#define KEY_VALUE_DRIVER_GOTO_ORDER 0x1301\r
41\r
42#define KEY_VALUE_ORDER_GOTO_PREVIOUS 0x2000\r
43#define KEY_VALUE_ORDER_SAVE_AND_EXIT 0x1800\r
44\r
45#define VARSTORE_ID_PLAT_OVER_MNGR 0x1000\r
46\r
7e3bcccb
LG
47#define LABEL_END 0xffff\r
48\r
68dbca6c 49typedef struct {\r
68dbca6c
LG
50 UINT8 DriOrder[MAX_CHOICE_NUM];\r
51 UINT8 PciDeviceFilter;\r
52} PLAT_OVER_MNGR_DATA;\r
53\r
a6f164a7 54//\r
68dbca6c 55// Field offset of structure PLAT_OVER_MNGR_DATA\r
a6f164a7 56//\r
57#define VAR_OFFSET(Field) ((UINTN) &(((PLAT_OVER_MNGR_DATA *) 0)->Field))\r
a6f164a7 58#define DRIVER_ORDER_VAR_OFFSET (VAR_OFFSET (DriOrder))\r
59\r
68dbca6c
LG
60//\r
61// Tool automatic generated Question Id start from 1\r
62// In order to avoid to conflict them, the Driver Selection and Order QuestionID offset is defined from 0x0500.\r
63//\r
64#define QUESTION_ID_OFFSET 0x0500\r
a6f164a7 65#define DRIVER_ORDER_QUESTION_ID (VAR_OFFSET (DriOrder) + QUESTION_ID_OFFSET)\r
66\r
a6f164a7 67#endif\r