]>
Commit | Line | Data |
---|---|---|
949f388f | 1 | /*++ @file\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
4 | Portions copyright (c) 2011, Apple Inc. All rights reserved.\r | |
5 | This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _BDS_PLATFORM_H\r | |
16 | #define _BDS_PLATFORM_H\r | |
17 | \r | |
18 | #include <PiDxe.h>\r | |
19 | \r | |
20 | #include <Guid/EmuSystemConfig.h>\r | |
21 | #include <Protocol/EmuThunk.h>\r | |
22 | #include <Protocol/EmuIoThunk.h>\r | |
23 | #include <Protocol/EmuGraphicsWindow.h>\r | |
24 | \r | |
25 | #include <Library/DebugLib.h>\r | |
26 | #include <Library/BaseMemoryLib.h>\r | |
27 | #include <Library/UefiBootServicesTableLib.h>\r | |
28 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
29 | #include <Library/MemoryAllocationLib.h>\r | |
30 | #include <Library/BaseLib.h>\r | |
31 | #include <Library/PcdLib.h>\r | |
32 | #include <Library/GenericBdsLib.h>\r | |
33 | #include <Library/PlatformBdsLib.h>\r | |
34 | #include <Library/DevicePathLib.h>\r | |
35 | \r | |
36 | \r | |
37 | extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r | |
38 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r | |
39 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r | |
40 | \r | |
41 | #define gEndEntire \\r | |
42 | { \\r | |
43 | END_DEVICE_PATH_TYPE,\\r | |
44 | END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r | |
45 | END_DEVICE_PATH_LENGTH,\\r | |
46 | 0\\r | |
47 | }\r | |
48 | \r | |
49 | \r | |
50 | typedef struct {\r | |
51 | EMU_VENDOR_DEVICE_PATH_NODE EmuBus;\r | |
52 | EMU_VENDOR_DEVICE_PATH_NODE EmuGraphicsWindow;\r | |
53 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
54 | } EMU_PLATFORM_UGA_DEVICE_PATH;\r | |
55 | \r | |
56 | \r | |
57 | //\r | |
58 | // Platform BDS Functions\r | |
59 | //\r | |
60 | VOID\r | |
61 | PlatformBdsGetDriverOption (\r | |
62 | IN LIST_ENTRY *BdsDriverLists\r | |
63 | );\r | |
64 | \r | |
65 | EFI_STATUS\r | |
66 | BdsMemoryTest (\r | |
67 | EXTENDMEM_COVERAGE_LEVEL Level\r | |
68 | );\r | |
69 | \r | |
70 | \r | |
71 | VOID\r | |
72 | PlatformBdsConnectSequence (\r | |
73 | VOID\r | |
74 | );\r | |
75 | \r | |
76 | EFI_STATUS\r | |
77 | ProcessCapsules (\r | |
78 | EFI_BOOT_MODE BootMode\r | |
79 | );\r | |
80 | \r | |
81 | EFI_STATUS\r | |
82 | PlatformBdsConnectConsole (\r | |
83 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
84 | );\r | |
85 | \r | |
86 | EFI_STATUS\r | |
87 | PlatformBdsNoConsoleAction (\r | |
88 | VOID\r | |
89 | );\r | |
90 | \r | |
91 | VOID\r | |
92 | PlatformBdsEnterFrontPage (\r | |
93 | IN UINT16 TimeoutDefault,\r | |
94 | IN BOOLEAN ConnectAllHappened\r | |
95 | );\r | |
96 | \r | |
97 | #endif // _BDS_PLATFORM_H\r |