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