]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
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 | |
5 | \r | |
6 | Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _PLAT_OVER_MNGR_H_\r | |
18 | #define _PLAT_OVER_MNGR_H_\r | |
19 | \r | |
20 | #include <Guid/PlatDriOverrideHii.h>\r | |
21 | \r | |
22 | //\r | |
23 | // The max number of the supported driver list.\r | |
24 | //\r | |
25 | #define MAX_CHOICE_NUM 0x00FF\r | |
26 | #define UPDATE_DATA_SIZE 0x1000\r | |
27 | \r | |
28 | #define FORM_ID_DEVICE 0x1100\r | |
29 | #define FORM_ID_DRIVER 0x1200\r | |
30 | #define FORM_ID_ORDER 0x1500\r | |
31 | \r | |
32 | #define KEY_VALUE_DEVICE_OFFSET 0x0100\r | |
33 | #define KEY_VALUE_DRIVER_OFFSET 0x0300\r | |
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 | |
47 | #define LABEL_END 0xffff\r | |
48 | \r | |
49 | typedef struct {\r | |
50 | UINT8 DriOrder[MAX_CHOICE_NUM];\r | |
51 | UINT8 PciDeviceFilter;\r | |
52 | } PLAT_OVER_MNGR_DATA;\r | |
53 | \r | |
54 | //\r | |
55 | // Field offset of structure PLAT_OVER_MNGR_DATA\r | |
56 | //\r | |
57 | #define VAR_OFFSET(Field) ((UINTN) &(((PLAT_OVER_MNGR_DATA *) 0)->Field))\r | |
58 | #define DRIVER_ORDER_VAR_OFFSET (VAR_OFFSET (DriOrder))\r | |
59 | \r | |
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 | |
65 | #define DRIVER_ORDER_QUESTION_ID (VAR_OFFSET (DriOrder) + QUESTION_ID_OFFSET)\r | |
66 | \r | |
67 | #endif\r |