]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.h
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / DeviceMngr / DeviceManager.h
1 /*++
2
3 Copyright (c) 2004 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 DeviceManager.c
15
16 Abstract:
17
18 The platform device manager reference implement
19
20 Revision History
21
22 --*/
23
24 #ifndef _DEVICE_MANAGER_H
25 #define _DEVICE_MANAGER_H
26
27 #include "Bds.h"
28 #include "FrontPage.h"
29
30 //
31 // These are defined as the same with vfr file
32 //
33 #define DEVICE_MANAGER_FORMSET_GUID \
34 { \
35 0x3ebfa8e6, 0x511d, 0x4b5b, {0xa9, 0x5f, 0xfb, 0x38, 0x26, 0xf, 0x1c, 0x27} \
36 }
37
38 #define LABEL_VBIOS 0x0040
39
40 #define DEVICE_MANAGER_FORM_ID 0x1000
41
42 #define DEVICE_KEY_OFFSET 0x1000
43 #define DEVICE_MANAGER_KEY_VBIOS 0x2000
44
45 //
46 // These are the VFR compiler generated data representing our VFR data.
47 //
48 extern UINT8 DeviceManagerVfrBin[];
49
50 #define DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('D', 'M', 'C', 'B')
51
52 typedef struct {
53 UINTN Signature;
54
55 //
56 // HII relative handles
57 //
58 EFI_HII_HANDLE HiiHandle;
59 EFI_HANDLE DriverHandle;
60
61 //
62 // Produced protocols
63 //
64 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
65
66 //
67 // Configuration data
68 //
69 UINT8 VideoBios;
70 } DEVICE_MANAGER_CALLBACK_DATA;
71
72 #define DEVICE_MANAGER_CALLBACK_DATA_FROM_THIS(a) \
73 CR (a, \
74 DEVICE_MANAGER_CALLBACK_DATA, \
75 ConfigAccess, \
76 DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE \
77 )
78
79 typedef struct {
80 EFI_STRING_ID StringId;
81 UINT16 Class;
82 } DEVICE_MANAGER_MENU_ITEM;
83
84 EFI_STATUS
85 EFIAPI
86 DeviceManagerCallback (
87 IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This,
88 IN EFI_BROWSER_ACTION Action,
89 IN EFI_QUESTION_ID QuestionId,
90 IN UINT8 Type,
91 IN EFI_IFR_TYPE_VALUE *Value,
92 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
93 )
94 ;
95
96 EFI_STATUS
97 InitializeDeviceManager (
98 VOID
99 )
100 ;
101
102 EFI_STATUS
103 CallDeviceManager (
104 VOID
105 )
106 ;
107
108 #endif