]> git.proxmox.com Git - mirror_edk2.git/blame - EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h
EmulatorPkg: Remove all trailing whitespace
[mirror_edk2.git] / EmulatorPkg / Library / EmuBdsLib / BdsPlatform.h
CommitLineData
949f388f 1/*++ @file\r
2\r
3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
4Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
d18d8a1d 5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
949f388f 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
37extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
38extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r
39extern 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
50typedef 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
60VOID\r
61PlatformBdsGetDriverOption (\r
62 IN LIST_ENTRY *BdsDriverLists\r
63 );\r
64\r
65EFI_STATUS\r
66BdsMemoryTest (\r
67 EXTENDMEM_COVERAGE_LEVEL Level\r
68 );\r
69\r
70\r
71VOID\r
72PlatformBdsConnectSequence (\r
73 VOID\r
74 );\r
75\r
76EFI_STATUS\r
77ProcessCapsules (\r
78 EFI_BOOT_MODE BootMode\r
79 );\r
80\r
81EFI_STATUS\r
82PlatformBdsConnectConsole (\r
83 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r
84 );\r
85\r
86EFI_STATUS\r
87PlatformBdsNoConsoleAction (\r
88 VOID\r
89 );\r
90\r
91VOID\r
92PlatformBdsEnterFrontPage (\r
93 IN UINT16 TimeoutDefault,\r
94 IN BOOLEAN ConnectAllHappened\r
95 );\r
96\r
97#endif // _BDS_PLATFORM_H\r