]>
Commit | Line | Data |
---|---|---|
bc11b829 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | FrontPage.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | FrontPage routines to handle the callbacks and browser calls\r | |
19 | \r | |
20 | Revision History\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _FRONT_PAGE_H\r | |
25 | #define _FRONT_PAGE_H\r | |
26 | \r | |
27 | //\r | |
28 | // Include common header file for this module.\r | |
29 | //\r | |
30 | #include "CommonHeader.h"\r | |
31 | \r | |
32 | #include "Generic/DeviceMngr/DeviceManager.h"\r | |
33 | #include "Generic/BootMaint/BootMaint.h"\r | |
34 | #include "Generic/BootMngr/BootManager.h"\r | |
35 | \r | |
36 | //\r | |
37 | // This is the VFR compiler generated header file which defines the\r | |
38 | // string identifiers.\r | |
39 | //\r | |
40 | #include "BdsStrDefs.h"\r | |
41 | #define EFI_DISK_DEVICE_CLASS 0x01\r | |
42 | #define EFI_VIDEO_DEVICE_CLASS 0x02\r | |
43 | #define EFI_NETWORK_DEVICE_CLASS 0x04\r | |
44 | #define EFI_INPUT_DEVICE_CLASS 0x08\r | |
45 | #define EFI_ON_BOARD_DEVICE_CLASS 0x10\r | |
46 | #define EFI_OTHER_DEVICE_CLASS 0x20\r | |
47 | #define EFI_VBIOS_CLASS 0x40\r | |
48 | \r | |
49 | #define SET_VIDEO_BIOS_TYPE_QUESTION_ID 0x00\r | |
50 | \r | |
51 | #pragma pack(1)\r | |
52 | typedef struct {\r | |
53 | UINT8 VideoBIOS;\r | |
54 | } MyDevMgrIfrNVData;\r | |
55 | #pragma pack()\r | |
56 | \r | |
57 | #define EFI_FP_CALLBACK_DATA_SIGNATURE EFI_SIGNATURE_32 ('F', 'P', 'C', 'B')\r | |
58 | #define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \\r | |
59 | CR (a, \\r | |
60 | EFI_FRONTPAGE_CALLBACK_INFO, \\r | |
61 | DevMgrCallback, \\r | |
62 | EFI_FP_CALLBACK_DATA_SIGNATURE \\r | |
63 | )\r | |
64 | \r | |
65 | typedef struct {\r | |
66 | UINTN Signature;\r | |
67 | MyDevMgrIfrNVData Data;\r | |
68 | EFI_HII_HANDLE DevMgrHiiHandle;\r | |
69 | EFI_HANDLE CallbackHandle;\r | |
70 | EFI_FORM_CALLBACK_PROTOCOL DevMgrCallback;\r | |
71 | } EFI_FRONTPAGE_CALLBACK_INFO;\r | |
72 | \r | |
73 | //\r | |
74 | // These are the VFR compiler generated data representing our VFR data.\r | |
75 | //\r | |
76 | // BugBug: we should put g in front of these tool generated globals.\r | |
77 | // maybe even gVrf would be a better prefix\r | |
78 | //\r | |
79 | extern UINT8 FrontPageVfrBin[];\r | |
80 | extern UINT8 FrontPageStringsStr[];\r | |
81 | extern UINT8 DeviceManagerVfrBin[];\r | |
82 | extern UINT8 DeviceManagerStringsStr[];\r | |
83 | \r | |
84 | #define FRONT_PAGE_QUESTION_ID 0x0000\r | |
85 | #define FRONT_PAGE_DATA_WIDTH 0x01\r | |
86 | \r | |
87 | EFI_STATUS\r | |
88 | InitializeFrontPage (\r | |
89 | IN BOOLEAN ReInitializeStrings\r | |
90 | );\r | |
91 | \r | |
92 | BOOLEAN\r | |
93 | TimeCompare (\r | |
94 | IN EFI_TIME *FirstTime,\r | |
95 | IN EFI_TIME *SecondTime\r | |
96 | );\r | |
97 | \r | |
98 | VOID\r | |
99 | PlatformBdsEnterFrontPage (\r | |
100 | IN UINT16 TimeoutDefault,\r | |
101 | IN BOOLEAN ConnectAllHappened\r | |
102 | );\r | |
103 | \r | |
104 | #endif // _FRONT_PAGE_H_\r | |
105 | \r |