]> git.proxmox.com Git - mirror_edk2.git/blame - UnixPkg/Library/UnixBdsLib/BdsPlatform.h
Fix typo in include file name
[mirror_edk2.git] / UnixPkg / Library / UnixBdsLib / BdsPlatform.h
CommitLineData
804405e7 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name: \r
13\r
14 BdsPlatform.h\r
15\r
16Abstract:\r
17\r
18 Head file for BDS Platform specific code\r
19\r
20--*/\r
21\r
22#ifndef _BDS_PLATFORM_H\r
23#define _BDS_PLATFORM_H\r
24\r
25#include <PiDxe.h>\r
26\r
27#include <Library/DebugLib.h>\r
28#include <Library/BaseMemoryLib.h>\r
29#include <Library/UefiBootServicesTableLib.h>\r
c71b6597 30#include <Library/UefiRuntimeServicesTableLib.h>\r
804405e7 31#include <Library/MemoryAllocationLib.h>\r
32#include <Library/BaseLib.h>\r
33#include <Library/PcdLib.h>\r
34#include <Library/GenericBdsLib.h>\r
35#include <Library/PlatformBdsLib.h>\r
c5085e11 36#include <Library/DevicePathLib.h>\r
804405e7 37\r
38#include <Protocol/UnixThunk.h>\r
39#include <Protocol/UnixIo.h>\r
40#include <Guid/Bmp.h>\r
7d10090a 41#include <Guid/UnixSystemConfig.h>\r
804405e7 42\r
43extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
44extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r
45extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r
46\r
47#define gEndEntire \\r
48 { \\r
49 END_DEVICE_PATH_TYPE,\\r
50 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
51 END_DEVICE_PATH_LENGTH,\\r
52 0\\r
53 }\r
54\r
55typedef struct {\r
56 VENDOR_DEVICE_PATH VendorDevicePath;\r
57 UINT32 Instance;\r
58} UNIX_VENDOR_DEVICE_PATH_NODE;\r
59\r
60//\r
61// Below is the platform console device path\r
62//\r
63typedef struct {\r
64 VENDOR_DEVICE_PATH UnixBus;\r
65 UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice;\r
66 UART_DEVICE_PATH Uart;\r
67 VENDOR_DEVICE_PATH TerminalType;\r
68 EFI_DEVICE_PATH_PROTOCOL End;\r
69} UNIX_ISA_SERIAL_DEVICE_PATH;\r
70\r
71typedef struct {\r
72 VENDOR_DEVICE_PATH UnixBus;\r
73 UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice;\r
74 EFI_DEVICE_PATH_PROTOCOL End;\r
75} UNIX_PLATFORM_UGA_DEVICE_PATH;\r
76\r
77typedef struct {\r
78 VENDOR_DEVICE_PATH UnixBus;\r
79 UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice;\r
80 EFI_DEVICE_PATH_PROTOCOL End;\r
81} UNIX_CONSOLE_DEVICE_PATH;\r
82//\r
83// Platform BDS Functions\r
84//\r
85VOID\r
86PlatformBdsInit (\r
87 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r
88 )\r
89;\r
90\r
91VOID\r
92PlatformBdsPolicyBehavior (\r
93 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,\r
94 IN LIST_ENTRY *DriverOptionList,\r
95 IN LIST_ENTRY *BootOptionList\r
96 )\r
97;\r
98\r
99VOID\r
100PlatformBdsGetDriverOption (\r
101 IN LIST_ENTRY *BdsDriverLists\r
102 )\r
103;\r
104\r
105EFI_STATUS\r
106BdsMemoryTest (\r
107 EXTENDMEM_COVERAGE_LEVEL Level\r
108 )\r
109;\r
110\r
804405e7 111\r
112VOID\r
113PlatformBdsConnectSequence (\r
114 VOID\r
115 )\r
116;\r
117\r
118VOID\r
119PlatformBdsBootFail (\r
120 IN BDS_COMMON_OPTION *Option,\r
121 IN EFI_STATUS Status,\r
122 IN CHAR16 *ExitData,\r
123 IN UINTN ExitDataSize\r
124 )\r
125;\r
126\r
127VOID\r
128PlatformBdsBootSuccess (\r
129 IN BDS_COMMON_OPTION *Option\r
130 )\r
131;\r
132\r
133EFI_STATUS\r
134ProcessCapsules (\r
135 EFI_BOOT_MODE BootMode\r
136 )\r
137;\r
138\r
139EFI_STATUS\r
140PlatformBdsConnectConsole (\r
141 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r
142 )\r
143;\r
144\r
145EFI_STATUS\r
146PlatformBdsNoConsoleAction (\r
147 VOID\r
148 )\r
149;\r
150\r
151VOID\r
152PlatformBdsEnterFrontPage (\r
153 IN UINT16 TimeoutDefault,\r
154 IN BOOLEAN ConnectAllHappened\r
155 );\r
156\r
157#endif // _BDS_PLATFORM_H\r