]> git.proxmox.com Git - mirror_edk2.git/blob - EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.h
Remove some unnecessary #if/#ifdef from some header files.
[mirror_edk2.git] / EdkUnixPkg / Dxe / PlatformBds / 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 "IndustryStandard/pci22.h"
26
27 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
28 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
29 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
30
31 #define gEndEntire \
32 { \
33 END_DEVICE_PATH_TYPE,\
34 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
35 {\
36 END_DEVICE_PATH_LENGTH,\
37 0\
38 }\
39 }
40
41 typedef struct {
42 VENDOR_DEVICE_PATH VendorDevicePath;
43 UINT32 Instance;
44 } UNIX_VENDOR_DEVICE_PATH_NODE;
45
46 //
47 // Below is the platform console device path
48 //
49 typedef struct {
50 VENDOR_DEVICE_PATH UnixBus;
51 UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice;
52 UART_DEVICE_PATH Uart;
53 VENDOR_DEVICE_PATH TerminalType;
54 EFI_DEVICE_PATH_PROTOCOL End;
55 } UNIX_ISA_SERIAL_DEVICE_PATH;
56
57 typedef struct {
58 VENDOR_DEVICE_PATH UnixBus;
59 UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice;
60 EFI_DEVICE_PATH_PROTOCOL End;
61 } UNIX_PLATFORM_UGA_DEVICE_PATH;
62
63 typedef struct {
64 VENDOR_DEVICE_PATH UnixBus;
65 UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice;
66 EFI_DEVICE_PATH_PROTOCOL End;
67 } UNIX_CONSOLE_DEVICE_PATH;
68 //
69 // Platform BDS Functions
70 //
71 VOID
72 PlatformBdsInit (
73 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
74 )
75 ;
76
77 VOID
78 PlatformBdsPolicyBehavior (
79 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
80 IN LIST_ENTRY *DriverOptionList,
81 IN LIST_ENTRY *BootOptionList
82 )
83 ;
84
85 VOID
86 PlatformBdsGetDriverOption (
87 IN LIST_ENTRY *BdsDriverLists
88 )
89 ;
90
91 EFI_STATUS
92 BdsMemoryTest (
93 EXTENDMEM_COVERAGE_LEVEL Level
94 )
95 ;
96
97 EFI_STATUS
98 PlatformBdsShowProgress (
99 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
100 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
101 CHAR16 *Title,
102 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
103 UINTN Progress,
104 UINTN PreviousValue
105 )
106 ;
107
108 VOID
109 PlatformBdsConnectSequence (
110 VOID
111 )
112 ;
113
114 VOID
115 PlatformBdsBootFail (
116 IN BDS_COMMON_OPTION *Option,
117 IN EFI_STATUS Status,
118 IN CHAR16 *ExitData,
119 IN UINTN ExitDataSize
120 )
121 ;
122
123 VOID
124 PlatformBdsBootSuccess (
125 IN BDS_COMMON_OPTION *Option
126 )
127 ;
128
129 EFI_STATUS
130 ProcessCapsules (
131 EFI_BOOT_MODE BootMode
132 )
133 ;
134
135 EFI_STATUS
136 PlatformBdsConnectConsole (
137 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
138 )
139 ;
140
141 EFI_STATUS
142 PlatformBdsNoConsoleAction (
143 VOID
144 )
145 ;
146
147 #endif // _BDS_PLATFORM_H