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
26 // The rest of the includes
28 #include <Common/FirmwareRevision.h>
30 extern UINT8 PlatformBdsStrings
[];
32 #include "IndustryStandard/Pci22.h"
34 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
35 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[];
36 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformDriverOption
[];
40 END_DEVICE_PATH_TYPE,\
41 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
42 END_DEVICE_PATH_LENGTH,\
47 VENDOR_DEVICE_PATH VendorDevicePath
;
49 } WIN_NT_VENDOR_DEVICE_PATH_NODE
;
52 // Below is the platform console device path
55 VENDOR_DEVICE_PATH NtBus
;
56 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice
;
57 UART_DEVICE_PATH Uart
;
58 VENDOR_DEVICE_PATH TerminalType
;
59 EFI_DEVICE_PATH_PROTOCOL End
;
60 } NT_ISA_SERIAL_DEVICE_PATH
;
63 VENDOR_DEVICE_PATH NtBus
;
64 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice
;
65 EFI_DEVICE_PATH_PROTOCOL End
;
66 } NT_PLATFORM_UGA_DEVICE_PATH
;
69 VENDOR_DEVICE_PATH NtBus
;
70 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice
;
71 EFI_DEVICE_PATH_PROTOCOL End
;
72 } NT_PLATFORM_GOP_DEVICE_PATH
;
75 VENDOR_DEVICE_PATH NtBus
;
76 WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuModelDevice
;
77 EFI_DEVICE_PATH_PROTOCOL End
;
78 } NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH
;
81 VENDOR_DEVICE_PATH NtBus
;
82 WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuSpeedDevice
;
83 EFI_DEVICE_PATH_PROTOCOL End
;
84 } NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH
;
87 VENDOR_DEVICE_PATH NtBus
;
88 WIN_NT_VENDOR_DEVICE_PATH_NODE NtMemoryDeivce
;
89 EFI_DEVICE_PATH_PROTOCOL End
;
90 } NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH
;
93 // Platform BDS Functions
97 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
102 PlatformBdsPolicyBehavior (
103 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
104 IN LIST_ENTRY
*DriverOptionList
,
105 IN LIST_ENTRY
*BootOptionList
110 PlatformBdsGetDriverOption (
111 IN LIST_ENTRY
*BdsDriverLists
117 EXTENDMEM_COVERAGE_LEVEL Level
122 PlatformBdsShowProgress (
123 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground
,
124 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground
,
126 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor
,
133 PlatformBdsConnectSequence (
139 PlatformBdsBootFail (
140 IN BDS_COMMON_OPTION
*Option
,
141 IN EFI_STATUS Status
,
143 IN UINTN ExitDataSize
148 PlatformBdsBootSuccess (
149 IN BDS_COMMON_OPTION
*Option
155 EFI_BOOT_MODE BootMode
160 PlatformBdsConnectConsole (
161 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
166 PlatformBdsNoConsoleAction (
171 #endif // _BDS_PLATFORM_H