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
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.
18 Head file for BDS Platform specific code
22 #ifndef _BDS_PLATFORM_H
23 #define _BDS_PLATFORM_H
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/GraphicsLib.h>
36 #include <Library/DevicePathLib.h>
38 #include <Protocol/UnixThunk.h>
39 #include <Protocol/UnixIo.h>
42 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
43 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[];
44 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformDriverOption
[];
48 END_DEVICE_PATH_TYPE,\
49 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
50 END_DEVICE_PATH_LENGTH,\
55 VENDOR_DEVICE_PATH VendorDevicePath
;
57 } UNIX_VENDOR_DEVICE_PATH_NODE
;
60 // Below is the platform console device path
63 VENDOR_DEVICE_PATH UnixBus
;
64 UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice
;
65 UART_DEVICE_PATH Uart
;
66 VENDOR_DEVICE_PATH TerminalType
;
67 EFI_DEVICE_PATH_PROTOCOL End
;
68 } UNIX_ISA_SERIAL_DEVICE_PATH
;
71 VENDOR_DEVICE_PATH UnixBus
;
72 UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice
;
73 EFI_DEVICE_PATH_PROTOCOL End
;
74 } UNIX_PLATFORM_UGA_DEVICE_PATH
;
77 VENDOR_DEVICE_PATH UnixBus
;
78 UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice
;
79 EFI_DEVICE_PATH_PROTOCOL End
;
80 } UNIX_CONSOLE_DEVICE_PATH
;
82 // Platform BDS Functions
86 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
91 PlatformBdsPolicyBehavior (
92 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
93 IN LIST_ENTRY
*DriverOptionList
,
94 IN LIST_ENTRY
*BootOptionList
99 PlatformBdsGetDriverOption (
100 IN LIST_ENTRY
*BdsDriverLists
106 EXTENDMEM_COVERAGE_LEVEL Level
111 PlatformBdsShowProgress (
112 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground
,
113 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground
,
115 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor
,
122 PlatformBdsConnectSequence (
128 PlatformBdsBootFail (
129 IN BDS_COMMON_OPTION
*Option
,
130 IN EFI_STATUS Status
,
132 IN UINTN ExitDataSize
137 PlatformBdsBootSuccess (
138 IN BDS_COMMON_OPTION
*Option
144 EFI_BOOT_MODE BootMode
149 PlatformBdsConnectConsole (
150 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
155 PlatformBdsNoConsoleAction (
161 PlatformBdsEnterFrontPage (
162 IN UINT16 TimeoutDefault
,
163 IN BOOLEAN ConnectAllHappened
166 #endif // _BDS_PLATFORM_H