]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Application/PlatOverMngr/PlatOverMngr.h
Change library class PlatDriOverLib to PlatformDriOverrideLib
[mirror_edk2.git] / MdeModulePkg / Application / PlatOverMngr / 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
7 All rights reserved. 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 typedef struct {
51 UINT8 DriSelection[MAX_CHOICE_NUM];
52 UINT8 DriOrder[MAX_CHOICE_NUM];
53 UINT8 PciDeviceFilter;
54 } PLAT_OVER_MNGR_DATA;
55
56 //
57 // Field offset of structure PLAT_OVER_MNGR_DATA
58 //
59 #define VAR_OFFSET(Field) ((UINTN) &(((PLAT_OVER_MNGR_DATA *) 0)->Field))
60 #define DRIVER_SELECTION_VAR_OFFSET (VAR_OFFSET (DriSelection))
61 #define DRIVER_ORDER_VAR_OFFSET (VAR_OFFSET (DriOrder))
62
63 //
64 // Tool automatic generated Question Id start from 1
65 // In order to avoid to conflict them, the Driver Selection and Order QuestionID offset is defined from 0x0500.
66 //
67 #define QUESTION_ID_OFFSET 0x0500
68 #define DRIVER_SELECTION_QUESTION_ID (VAR_OFFSET (DriSelection) + QUESTION_ID_OFFSET)
69 #define DRIVER_ORDER_QUESTION_ID (VAR_OFFSET (DriOrder) + QUESTION_ID_OFFSET)
70
71 #endif