]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.h
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / BootMngr / BootManager.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 BootManager.h
15
16 Abstract:
17
18 The platform boot manager reference implement
19
20 Revision History
21
22 --*/
23
24 #ifndef _EFI_BOOT_MANAGER_H
25 #define _EFI_BOOT_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 BOOT_MANAGER_FORMSET_GUID \
34 { \
35 0x847bc3fe, 0xb974, 0x446d, {0x94, 0x49, 0x5a, 0xd5, 0x41, 0x2e, 0x99, 0x3b} \
36 }
37
38 #define BOOT_MANAGER_FORM_ID 0x1000
39
40 #define LABEL_BOOT_OPTION 0x00
41
42 //
43 // These are the VFR compiler generated data representing our VFR data.
44 //
45 extern UINT8 BootManagerVfrBin[];
46
47 #define BOOT_MANAGER_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('B', 'M', 'C', 'B')
48
49 typedef struct {
50 UINTN Signature;
51
52 //
53 // HII relative handles
54 //
55 EFI_HII_HANDLE HiiHandle;
56 EFI_HANDLE DriverHandle;
57
58 //
59 // Produced protocols
60 //
61 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
62 } BOOT_MANAGER_CALLBACK_DATA;
63
64 EFI_STATUS
65 EFIAPI
66 BootManagerCallback (
67 IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This,
68 IN EFI_BROWSER_ACTION Action,
69 IN EFI_QUESTION_ID QuestionId,
70 IN UINT8 Type,
71 IN EFI_IFR_TYPE_VALUE *Value,
72 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
73 )
74 ;
75
76 EFI_STATUS
77 InitializeBootManager (
78 VOID
79 )
80 ;
81
82 VOID
83 CallBootManager (
84 VOID
85 )
86 ;
87
88 #endif