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