]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/PlatformBds/Generic/FrontPage.h
Unix version of EFI emulator
[mirror_edk2.git] / EdkUnixPkg / Dxe / PlatformBds / Generic / FrontPage.h
diff --git a/EdkUnixPkg/Dxe/PlatformBds/Generic/FrontPage.h b/EdkUnixPkg/Dxe/PlatformBds/Generic/FrontPage.h
new file mode 100644 (file)
index 0000000..5c33252
--- /dev/null
@@ -0,0 +1,100 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  FrontPage.h\r
+\r
+Abstract:\r
+\r
+  FrontPage routines to handle the callbacks and browser calls\r
+\r
+Revision History\r
+\r
+--*/\r
+\r
+#ifndef _FRONT_PAGE_H\r
+#define _FRONT_PAGE_H\r
+\r
+#include "Generic/DeviceMngr/DeviceManager.h"\r
+#include "Generic/BootMaint/BootMaint.h"\r
+#include "Generic/BootMngr/BootManager.h"\r
+\r
+//\r
+// This is the VFR compiler generated header file which defines the\r
+// string identifiers.\r
+//\r
+#include "BdsStrDefs.h"\r
+#define EFI_DISK_DEVICE_CLASS           0x01\r
+#define EFI_VIDEO_DEVICE_CLASS          0x02\r
+#define EFI_NETWORK_DEVICE_CLASS        0x04\r
+#define EFI_INPUT_DEVICE_CLASS          0x08\r
+#define EFI_ON_BOARD_DEVICE_CLASS       0x10\r
+#define EFI_OTHER_DEVICE_CLASS          0x20\r
+#define EFI_VBIOS_CLASS                 0x40\r
+\r
+#define SET_VIDEO_BIOS_TYPE_QUESTION_ID 0x00\r
+\r
+#pragma pack(1)\r
+typedef struct {\r
+  UINT8 VideoBIOS;\r
+} MyDevMgrIfrNVData;\r
+#pragma pack()\r
+\r
+#define EFI_FP_CALLBACK_DATA_SIGNATURE  EFI_SIGNATURE_32 ('F', 'P', 'C', 'B')\r
+#define EFI_FP_CALLBACK_DATA_FROM_THIS(a) \\r
+  CR (a, \\r
+      EFI_FRONTPAGE_CALLBACK_INFO, \\r
+      DevMgrCallback, \\r
+      EFI_FP_CALLBACK_DATA_SIGNATURE \\r
+      )\r
+\r
+typedef struct {\r
+  UINTN                       Signature;\r
+  MyDevMgrIfrNVData           Data;\r
+  EFI_HII_HANDLE              DevMgrHiiHandle;\r
+  EFI_HANDLE                  CallbackHandle;\r
+  EFI_FORM_CALLBACK_PROTOCOL  DevMgrCallback;\r
+} EFI_FRONTPAGE_CALLBACK_INFO;\r
+\r
+//\r
+// These are the VFR compiler generated data representing our VFR data.\r
+//\r
+// BugBug: we should put g in front of these tool generated globals.\r
+//         maybe even gVrf would be a better prefix\r
+//\r
+extern UINT8  FrontPageVfrBin[];\r
+extern UINT8  FrontPageStringsStr[];\r
+extern UINT8  DeviceManagerVfrBin[];\r
+extern UINT8  DeviceManagerStringsStr[];\r
+\r
+#define FRONT_PAGE_QUESTION_ID  0x0000\r
+#define FRONT_PAGE_DATA_WIDTH   0x01\r
+\r
+EFI_STATUS\r
+InitializeFrontPage (\r
+  IN BOOLEAN    ReInitializeStrings\r
+  );\r
+\r
+BOOLEAN\r
+TimeCompare (\r
+  IN EFI_TIME               *FirstTime,\r
+  IN EFI_TIME               *SecondTime\r
+  );\r
+\r
+VOID\r
+PlatformBdsEnterFrontPage (\r
+  IN UINT16                 TimeoutDefault,\r
+  IN BOOLEAN                ConnectAllHappened\r
+  );\r
+\r
+#endif // _FRONT_PAGE_H_\r
+\r