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