]> git.proxmox.com Git - mirror_edk2.git/blob - EdkNt32Pkg/Dxe/PlatformBds/Generic/FrontPage.h
Remove USER_DEFINED in IncludePkgHeader in spd files as it does not make sense to...
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / FrontPage.h
1 /*++
2
3 Copyright (c) 2006, 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 FrontPage.h
15
16 Abstract:
17
18 FrontPage routines to handle the callbacks and browser calls
19
20 Revision History
21
22 --*/
23
24 #ifndef _FRONT_PAGE_H
25 #define _FRONT_PAGE_H
26
27 #include "Generic/DeviceMngr/DeviceManager.h"
28 #include "Generic/BootMaint/BootMaint.h"
29 #include "Generic/BootMngr/BootManager.h"
30
31 //
32 // This is the VFR compiler generated header file which defines the
33 // string identifiers.
34 //
35 #include "BdsStrDefs.h"
36 #define EFI_DISK_DEVICE_CLASS 0x01
37 #define EFI_VIDEO_DEVICE_CLASS 0x02
38 #define EFI_NETWORK_DEVICE_CLASS 0x04
39 #define EFI_INPUT_DEVICE_CLASS 0x08
40 #define EFI_ON_BOARD_DEVICE_CLASS 0x10
41 #define EFI_OTHER_DEVICE_CLASS 0x20
42 #define EFI_VBIOS_CLASS 0x40
43
44 #define SET_VIDEO_BIOS_TYPE_QUESTION_ID 0x00
45
46 #pragma pack(1)
47 typedef struct {
48 UINT8 VideoBIOS;
49 } MyDevMgrIfrNVData;
50 #pragma pack()
51
52 #define EFI_FP_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('F', 'P', 'C', 'B')
53 #define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \
54 CR (a, \
55 EFI_FRONTPAGE_CALLBACK_INFO, \
56 DevMgrCallback, \
57 EFI_FP_CALLBACK_DATA_SIGNATURE \
58 )
59
60 typedef struct {
61 UINTN Signature;
62 MyDevMgrIfrNVData Data;
63 EFI_HII_HANDLE DevMgrHiiHandle;
64 EFI_HANDLE CallbackHandle;
65 EFI_FORM_CALLBACK_PROTOCOL DevMgrCallback;
66 } EFI_FRONTPAGE_CALLBACK_INFO;
67
68 //
69 // These are the VFR compiler generated data representing our VFR data.
70 //
71 // BugBug: we should put g in front of these tool generated globals.
72 // maybe even gVrf would be a better prefix
73 //
74 extern UINT8 FrontPageVfrBin[];
75 extern UINT8 FrontPageStringsStr[];
76 extern UINT8 DeviceManagerVfrBin[];
77 extern UINT8 DeviceManagerStringsStr[];
78
79 #define FRONT_PAGE_QUESTION_ID 0x0000
80 #define FRONT_PAGE_DATA_WIDTH 0x01
81
82 EFI_STATUS
83 InitializeFrontPage (
84 IN BOOLEAN ReInitializeStrings
85 );
86
87 BOOLEAN
88 TimeCompare (
89 IN EFI_TIME *FirstTime,
90 IN EFI_TIME *SecondTime
91 );
92
93 VOID
94 PlatformBdsEnterFrontPage (
95 IN UINT16 TimeoutDefault,
96 IN BOOLEAN ConnectAllHappened
97 );
98
99 #endif // _FRONT_PAGE_H_
100