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/UefiRuntimeServicesTableLib.h>
31 #include <Library/MemoryAllocationLib.h>
32 #include <Library/BaseLib.h>
33 #include <Library/PcdLib.h>
34 #include <Library/GenericBdsLib.h>
35 #include <Library/PlatformBdsLib.h>
36 #include <Library/DevicePathLib.h>
38 #include <Protocol/UnixThunk.h>
39 #include <Protocol/UnixIo.h>
40 #include <Guid/Logo.h>
41 #include <Guid/UnixSystemConfig.h>
43 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
44 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[];
45 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformDriverOption
[];
49 END_DEVICE_PATH_TYPE,\
50 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
51 END_DEVICE_PATH_LENGTH,\
56 VENDOR_DEVICE_PATH VendorDevicePath
;
58 } UNIX_VENDOR_DEVICE_PATH_NODE
;
61 // Below is the platform console device path
64 VENDOR_DEVICE_PATH UnixBus
;
65 UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice
;
66 UART_DEVICE_PATH Uart
;
67 VENDOR_DEVICE_PATH TerminalType
;
68 EFI_DEVICE_PATH_PROTOCOL End
;
69 } UNIX_ISA_SERIAL_DEVICE_PATH
;
72 VENDOR_DEVICE_PATH UnixBus
;
73 UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice
;
74 EFI_DEVICE_PATH_PROTOCOL End
;
75 } UNIX_PLATFORM_UGA_DEVICE_PATH
;
78 VENDOR_DEVICE_PATH UnixBus
;
79 UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice
;
80 EFI_DEVICE_PATH_PROTOCOL End
;
81 } UNIX_CONSOLE_DEVICE_PATH
;
83 // Platform BDS Functions
86 PlatformBdsGetDriverOption (
87 IN LIST_ENTRY
*BdsDriverLists
93 EXTENDMEM_COVERAGE_LEVEL Level
99 PlatformBdsConnectSequence (
106 EFI_BOOT_MODE BootMode
111 PlatformBdsConnectConsole (
112 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
117 PlatformBdsNoConsoleAction (
123 PlatformBdsEnterFrontPage (
124 IN UINT16 TimeoutDefault
,
125 IN BOOLEAN ConnectAllHappened
128 #endif // _BDS_PLATFORM_H