2 The platform device manager reference implement
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _DEVICE_MANAGER_H
16 #define _DEVICE_MANAGER_H
19 #include "FrontPage.h"
22 // These are defined as the same with vfr file
24 #define DEVICE_MANAGER_FORMSET_GUID \
26 0x3ebfa8e6, 0x511d, 0x4b5b, {0xa9, 0x5f, 0xfb, 0x38, 0x26, 0xf, 0x1c, 0x27} \
29 #define LABEL_VBIOS 0x0040
31 #define DEVICE_MANAGER_FORM_ID 0x1000
33 #define DEVICE_KEY_OFFSET 0x1000
34 #define DEVICE_MANAGER_KEY_VBIOS 0x2000
37 // These are the VFR compiler generated data representing our VFR data.
39 extern UINT8 DeviceManagerVfrBin
[];
41 #define DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('D', 'M', 'C', 'B')
47 // HII relative handles
49 EFI_HII_HANDLE HiiHandle
;
50 EFI_HANDLE DriverHandle
;
55 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess
;
61 } DEVICE_MANAGER_CALLBACK_DATA
;
63 #define DEVICE_MANAGER_CALLBACK_DATA_FROM_THIS(a) \
65 DEVICE_MANAGER_CALLBACK_DATA, \
67 DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE \
70 EFI_STRING_ID StringId
;
72 } DEVICE_MANAGER_MENU_ITEM
;
75 EDES_TODO: Add function description.
77 @param This EDES_TODO: Add parameter description
78 @param Action EDES_TODO: Add parameter description
79 @param QuestionId EDES_TODO: Add parameter description
80 @param Type EDES_TODO: Add parameter description
81 @param Value EDES_TODO: Add parameter description
82 @param ActionRequest EDES_TODO: Add parameter description
84 @return EDES_TODO: Add description for return value
89 DeviceManagerCallback (
90 IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL
*This
,
91 IN EFI_BROWSER_ACTION Action
,
92 IN EFI_QUESTION_ID QuestionId
,
94 IN EFI_IFR_TYPE_VALUE
*Value
,
95 OUT EFI_BROWSER_ACTION_REQUEST
*ActionRequest
100 EDES_TODO: Add function description.
102 @param VOID EDES_TODO: Add parameter description
104 @return EDES_TODO: Add description for return value
108 InitializeDeviceManager (
114 EDES_TODO: Add function description.
116 @param VOID EDES_TODO: Add parameter description
118 @return EDES_TODO: Add description for return value