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