]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h
Update the copyright notice format
[mirror_edk2.git] / MdeModulePkg / Universal / PlatformDriOverrideDxe / PlatOverMngr.h
1 /** @file
2
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.
5
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
11
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.
14
15 **/
16
17 #ifndef _PLAT_OVER_MNGR_H_
18 #define _PLAT_OVER_MNGR_H_
19
20 #define PLAT_OVER_MNGR_GUID \
21 { \
22 0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \
23 }
24
25 //
26 // The max number of the supported driver list.
27 //
28 #define MAX_CHOICE_NUM 0x00ff
29 #define UPDATE_DATA_SIZE 0x1000
30
31 #define FORM_ID_DEVICE 0x1100
32 #define FORM_ID_DRIVER 0x1200
33 #define FORM_ID_ORDER 0x1500
34
35 #define KEY_VALUE_DEVICE_OFFSET 0x0100
36 #define KEY_VALUE_DEVICE_MAX (KEY_VALUE_DEVICE_OFFSET + MAX_CHOICE_NUM)
37
38 #define KEY_VALUE_DEVICE_REFRESH 0x1234
39 #define KEY_VALUE_DEVICE_FILTER 0x1235
40 #define KEY_VALUE_DEVICE_CLEAR 0x1236
41
42 #define KEY_VALUE_DRIVER_GOTO_PREVIOUS 0x1300
43 #define KEY_VALUE_DRIVER_GOTO_ORDER 0x1301
44
45 #define KEY_VALUE_ORDER_GOTO_PREVIOUS 0x2000
46 #define KEY_VALUE_ORDER_SAVE_AND_EXIT 0x1800
47
48 #define VARSTORE_ID_PLAT_OVER_MNGR 0x1000
49
50 #define LABEL_END 0xffff
51
52 typedef struct {
53 UINT8 DriSelection[MAX_CHOICE_NUM];
54 UINT8 DriOrder[MAX_CHOICE_NUM];
55 UINT8 PciDeviceFilter;
56 } PLAT_OVER_MNGR_DATA;
57
58 //
59 // Field offset of structure PLAT_OVER_MNGR_DATA
60 //
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))
64
65 //
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.
68 //
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)
72
73 #endif