]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.h
add in PlatformBds.inf
[mirror_edk2.git] / Nt32Pkg / PlatformBdsDxe / 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 //
28 // Include common header file for this module.
29 //
30 #include "CommonHeader.h"
31
32 #include "Generic/DeviceMngr/DeviceManager.h"
33 #include "Generic/BootMaint/BootMaint.h"
34 #include "Generic/BootMngr/BootManager.h"
35
36 //
37 // This is the VFR compiler generated header file which defines the
38 // string identifiers.
39 //
40 #include "BdsStrDefs.h"
41 #define EFI_DISK_DEVICE_CLASS 0x01
42 #define EFI_VIDEO_DEVICE_CLASS 0x02
43 #define EFI_NETWORK_DEVICE_CLASS 0x04
44 #define EFI_INPUT_DEVICE_CLASS 0x08
45 #define EFI_ON_BOARD_DEVICE_CLASS 0x10
46 #define EFI_OTHER_DEVICE_CLASS 0x20
47 #define EFI_VBIOS_CLASS 0x40
48
49 #define SET_VIDEO_BIOS_TYPE_QUESTION_ID 0x00
50
51 #pragma pack(1)
52 typedef struct {
53 UINT8 VideoBIOS;
54 } MyDevMgrIfrNVData;
55 #pragma pack()
56
57 #define EFI_FP_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('F', 'P', 'C', 'B')
58 #define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \
59 CR (a, \
60 EFI_FRONTPAGE_CALLBACK_INFO, \
61 DevMgrCallback, \
62 EFI_FP_CALLBACK_DATA_SIGNATURE \
63 )
64
65 typedef struct {
66 UINTN Signature;
67 MyDevMgrIfrNVData Data;
68 EFI_HII_HANDLE DevMgrHiiHandle;
69 EFI_HANDLE CallbackHandle;
70 EFI_FORM_CALLBACK_PROTOCOL DevMgrCallback;
71 } EFI_FRONTPAGE_CALLBACK_INFO;
72
73 //
74 // These are the VFR compiler generated data representing our VFR data.
75 //
76 // BugBug: we should put g in front of these tool generated globals.
77 // maybe even gVrf would be a better prefix
78 //
79 extern UINT8 FrontPageVfrBin[];
80 extern UINT8 FrontPageStringsStr[];
81 extern UINT8 DeviceManagerVfrBin[];
82 extern UINT8 DeviceManagerStringsStr[];
83
84 #define FRONT_PAGE_QUESTION_ID 0x0000
85 #define FRONT_PAGE_DATA_WIDTH 0x01
86
87 EFI_STATUS
88 InitializeFrontPage (
89 IN BOOLEAN ReInitializeStrings
90 );
91
92 BOOLEAN
93 TimeCompare (
94 IN EFI_TIME *FirstTime,
95 IN EFI_TIME *SecondTime
96 );
97
98 VOID
99 PlatformBdsEnterFrontPage (
100 IN UINT16 TimeoutDefault,
101 IN BOOLEAN ConnectAllHappened
102 );
103
104 #endif // _FRONT_PAGE_H_
105