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
25 #define FIRMWARE_REVISION 0
27 extern UINT8 PlatformBdsStrings
[];
29 #include "IndustryStandard/Pci22.h"
31 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole
[];
32 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformConnectSequence
[];
33 extern EFI_DEVICE_PATH_PROTOCOL
*gPlatformDriverOption
[];
37 END_DEVICE_PATH_TYPE,\
38 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
39 END_DEVICE_PATH_LENGTH,\
44 VENDOR_DEVICE_PATH VendorDevicePath
;
46 } WIN_NT_VENDOR_DEVICE_PATH_NODE
;
49 // Below is the platform console device path
52 VENDOR_DEVICE_PATH NtBus
;
53 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice
;
54 UART_DEVICE_PATH Uart
;
55 VENDOR_DEVICE_PATH TerminalType
;
56 EFI_DEVICE_PATH_PROTOCOL End
;
57 } NT_ISA_SERIAL_DEVICE_PATH
;
60 VENDOR_DEVICE_PATH NtBus
;
61 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice
;
62 EFI_DEVICE_PATH_PROTOCOL End
;
63 } NT_PLATFORM_UGA_DEVICE_PATH
;
66 VENDOR_DEVICE_PATH NtBus
;
67 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice
;
68 EFI_DEVICE_PATH_PROTOCOL End
;
69 } NT_PLATFORM_GOP_DEVICE_PATH
;
72 VENDOR_DEVICE_PATH NtBus
;
73 WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuModelDevice
;
74 EFI_DEVICE_PATH_PROTOCOL End
;
75 } NT_PLATFORM_CPU_MODEL_VIRTUAL_DEVICE_PATH
;
78 VENDOR_DEVICE_PATH NtBus
;
79 WIN_NT_VENDOR_DEVICE_PATH_NODE NtCpuSpeedDevice
;
80 EFI_DEVICE_PATH_PROTOCOL End
;
81 } NT_PLATFORM_CPU_SPEED_VIRTUAL_DEVICE_PATH
;
84 VENDOR_DEVICE_PATH NtBus
;
85 WIN_NT_VENDOR_DEVICE_PATH_NODE NtMemoryDeivce
;
86 EFI_DEVICE_PATH_PROTOCOL End
;
87 } NT_PLATFORM_MEMORY_VIRTUAL_DEVICE_PATH
;
90 // Platform BDS Functions
94 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
99 PlatformBdsPolicyBehavior (
100 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
101 IN LIST_ENTRY
*DriverOptionList
,
102 IN LIST_ENTRY
*BootOptionList
107 PlatformBdsGetDriverOption (
108 IN LIST_ENTRY
*BdsDriverLists
114 EXTENDMEM_COVERAGE_LEVEL Level
119 PlatformBdsShowProgress (
120 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground
,
121 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground
,
123 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor
,
130 PlatformBdsConnectSequence (
136 PlatformBdsBootFail (
137 IN BDS_COMMON_OPTION
*Option
,
138 IN EFI_STATUS Status
,
140 IN UINTN ExitDataSize
145 PlatformBdsBootSuccess (
146 IN BDS_COMMON_OPTION
*Option
152 EFI_BOOT_MODE BootMode
157 PlatformBdsConnectConsole (
158 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
163 PlatformBdsNoConsoleAction (
168 #endif // _BDS_PLATFORM_H