]>
git.proxmox.com Git - mirror_edk2.git/blob - PlatOverMngr.h
385ef8da40cd980666238e841154d3816ca44f90
3 The defintions are required both by Source code and Vfr file.
4 The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined.
6 Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef _PLAT_OVER_MNGR_H_
18 #define _PLAT_OVER_MNGR_H_
20 #define PLAT_OVER_MNGR_GUID \
22 0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \
26 // The max number of the supported driver list.
28 #define MAX_CHOICE_NUM 0x00ff
29 #define UPDATE_DATA_SIZE 0x1000
31 #define FORM_ID_DEVICE 0x1100
32 #define FORM_ID_DRIVER 0x1200
33 #define FORM_ID_ORDER 0x1500
35 #define KEY_VALUE_DEVICE_OFFSET 0x0100
36 #define KEY_VALUE_DEVICE_MAX (KEY_VALUE_DEVICE_OFFSET + MAX_CHOICE_NUM)
38 #define KEY_VALUE_DEVICE_REFRESH 0x1234
39 #define KEY_VALUE_DEVICE_FILTER 0x1235
40 #define KEY_VALUE_DEVICE_CLEAR 0x1236
42 #define KEY_VALUE_DRIVER_GOTO_PREVIOUS 0x1300
43 #define KEY_VALUE_DRIVER_GOTO_ORDER 0x1301
45 #define KEY_VALUE_ORDER_GOTO_PREVIOUS 0x2000
46 #define KEY_VALUE_ORDER_SAVE_AND_EXIT 0x1800
48 #define VARSTORE_ID_PLAT_OVER_MNGR 0x1000
50 #define LABEL_END 0xffff
53 UINT8 DriSelection
[MAX_CHOICE_NUM
];
54 UINT8 DriOrder
[MAX_CHOICE_NUM
];
55 UINT8 PciDeviceFilter
;
56 } PLAT_OVER_MNGR_DATA
;
59 // Field offset of structure PLAT_OVER_MNGR_DATA
61 #define VAR_OFFSET(Field) ((UINTN) &(((PLAT_OVER_MNGR_DATA *) 0)->Field))
62 #define DRIVER_SELECTION_VAR_OFFSET (VAR_OFFSET (DriSelection))
63 #define DRIVER_ORDER_VAR_OFFSET (VAR_OFFSET (DriOrder))
66 // Tool automatic generated Question Id start from 1
67 // In order to avoid to conflict them, the Driver Selection and Order QuestionID offset is defined from 0x0500.
69 #define QUESTION_ID_OFFSET 0x0500
70 #define DRIVER_SELECTION_QUESTION_ID (VAR_OFFSET (DriSelection) + QUESTION_ID_OFFSET)
71 #define DRIVER_ORDER_QUESTION_ID (VAR_OFFSET (DriOrder) + QUESTION_ID_OFFSET)