]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/PlatformBdsDxe/BdsPlatform.h
Merger trackers #7807 and #8372.
[mirror_edk2.git] / Nt32Pkg / PlatformBdsDxe / BdsPlatform.h
1 /*++
2
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
8
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.
11
12 Module Name:
13
14 BdsPlatform.h
15
16 Abstract:
17
18 Head file for BDS Platform specific code
19
20 --*/
21
22 #ifndef _BDS_PLATFORM_H
23 #define _BDS_PLATFORM_H
24
25 #define FIRMWARE_REVISION 0
26
27 extern UINT8 PlatformBdsStrings[];
28
29 #include <IndustryStandard/Pci22.h>
30
31 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
32 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
33 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
34
35 #define gEndEntire \
36 { \
37 END_DEVICE_PATH_TYPE,\
38 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
39 END_DEVICE_PATH_LENGTH,\
40 0\
41 }
42
43 typedef struct {
44 VENDOR_DEVICE_PATH VendorDevicePath;
45 UINT32 Instance;
46 } WIN_NT_VENDOR_DEVICE_PATH_NODE;
47
48 //
49 // Below is the platform console device path
50 //
51 typedef struct {
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;
58
59 typedef struct {
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;
64
65 typedef struct {
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;
70
71 typedef struct {
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;
76
77 typedef struct {
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;
82
83 typedef struct {
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;
88
89 //
90 // Platform BDS Functions
91 //
92 VOID
93 PlatformBdsInit (
94 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
95 )
96 ;
97
98 VOID
99 PlatformBdsPolicyBehavior (
100 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
101 IN LIST_ENTRY *DriverOptionList,
102 IN LIST_ENTRY *BootOptionList
103 )
104 ;
105
106 VOID
107 PlatformBdsGetDriverOption (
108 IN LIST_ENTRY *BdsDriverLists
109 )
110 ;
111
112 EFI_STATUS
113 BdsMemoryTest (
114 EXTENDMEM_COVERAGE_LEVEL Level
115 )
116 ;
117
118 EFI_STATUS
119 PlatformBdsShowProgress (
120 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
121 EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
122 CHAR16 *Title,
123 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
124 UINTN Progress,
125 UINTN PreviousValue
126 )
127 ;
128
129 VOID
130 PlatformBdsConnectSequence (
131 VOID
132 )
133 ;
134
135 VOID
136 PlatformBdsBootFail (
137 IN BDS_COMMON_OPTION *Option,
138 IN EFI_STATUS Status,
139 IN CHAR16 *ExitData,
140 IN UINTN ExitDataSize
141 )
142 ;
143
144 VOID
145 PlatformBdsBootSuccess (
146 IN BDS_COMMON_OPTION *Option
147 )
148 ;
149
150 EFI_STATUS
151 ProcessCapsules (
152 EFI_BOOT_MODE BootMode
153 )
154 ;
155
156 EFI_STATUS
157 PlatformBdsConnectConsole (
158 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
159 )
160 ;
161
162 EFI_STATUS
163 PlatformBdsNoConsoleAction (
164 VOID
165 )
166 ;
167
168 #endif // _BDS_PLATFORM_H