3 Copyright (c) 2004 - 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/DevicePathLib.h>
37 #include <Protocol/WinNtThunk.h>
38 #include <Protocol/WinNtIo.h>
41 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
42 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[];
43 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformDriverOption
[];
47 END_DEVICE_PATH_TYPE,\
48 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
49 END_DEVICE_PATH_LENGTH,\
54 VENDOR_DEVICE_PATH VendorDevicePath
;
56 } WIN_NT_VENDOR_DEVICE_PATH_NODE
;
59 // Below is the platform console device path
62 VENDOR_DEVICE_PATH NtBus
;
63 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice
;
64 UART_DEVICE_PATH Uart
;
65 VENDOR_DEVICE_PATH TerminalType
;
66 EFI_DEVICE_PATH_PROTOCOL End
;
67 } NT_ISA_SERIAL_DEVICE_PATH
;
70 VENDOR_DEVICE_PATH NtBus
;
71 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice
;
72 EFI_DEVICE_PATH_PROTOCOL End
;
73 } NT_PLATFORM_UGA_DEVICE_PATH
;
76 VENDOR_DEVICE_PATH NtBus
;
77 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice
;
78 EFI_DEVICE_PATH_PROTOCOL End
;
79 } NT_PLATFORM_GOP_DEVICE_PATH
;
82 PlatformBdsGetDriverOption (
83 IN LIST_ENTRY
*BdsDriverLists
88 EXTENDMEM_COVERAGE_LEVEL Level
92 PlatformBdsConnectSequence (
99 EFI_BOOT_MODE BootMode
103 PlatformBdsConnectConsole (
104 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
108 PlatformBdsNoConsoleAction (
113 PlatformBdsEnterFrontPage (
114 IN UINT16 TimeoutDefault
,
115 IN BOOLEAN ConnectAllHappened
118 #endif // _BDS_PLATFORM_H