]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h
99a2a4ccf99fdebebccc38406a714e30f2754c6a
[mirror_edk2.git] / Nt32Pkg / Library / Nt32BdsLib / BdsPlatform.h
1 /**@file
2
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
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 #include <PiDxe.h>
26
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>
37
38 #include <Protocol/WinNtThunk.h>
39 #include <Protocol/WinNtIo.h>
40 #include <Guid/Bmp.h>
41 #include <Guid/UnixSystemConfig.h>
42
43 extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
44 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];
45 extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];
46
47 #define gEndEntire \
48 { \
49 END_DEVICE_PATH_TYPE,\
50 END_ENTIRE_DEVICE_PATH_SUBTYPE,\
51 END_DEVICE_PATH_LENGTH,\
52 0\
53 }
54
55 typedef struct {
56 VENDOR_DEVICE_PATH VendorDevicePath;
57 UINT32 Instance;
58 } WIN_NT_VENDOR_DEVICE_PATH_NODE;
59
60 //
61 // Below is the platform console device path
62 //
63 typedef struct {
64 VENDOR_DEVICE_PATH NtBus;
65 WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;
66 UART_DEVICE_PATH Uart;
67 VENDOR_DEVICE_PATH TerminalType;
68 EFI_DEVICE_PATH_PROTOCOL End;
69 } NT_ISA_SERIAL_DEVICE_PATH;
70
71 typedef struct {
72 VENDOR_DEVICE_PATH NtBus;
73 WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice;
74 EFI_DEVICE_PATH_PROTOCOL End;
75 } NT_PLATFORM_UGA_DEVICE_PATH;
76
77 typedef struct {
78 VENDOR_DEVICE_PATH NtBus;
79 WIN_NT_VENDOR_DEVICE_PATH_NODE NtGopDevice;
80 EFI_DEVICE_PATH_PROTOCOL End;
81 } NT_PLATFORM_GOP_DEVICE_PATH;
82
83 VOID
84 PlatformBdsGetDriverOption (
85 IN LIST_ENTRY *BdsDriverLists
86 );
87
88 EFI_STATUS
89 BdsMemoryTest (
90 EXTENDMEM_COVERAGE_LEVEL Level
91 );
92
93 VOID
94 PlatformBdsConnectSequence (
95 VOID
96 );
97
98
99 EFI_STATUS
100 ProcessCapsules (
101 EFI_BOOT_MODE BootMode
102 );
103
104 EFI_STATUS
105 PlatformBdsConnectConsole (
106 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
107 );
108
109 EFI_STATUS
110 PlatformBdsNoConsoleAction (
111 VOID
112 );
113
114 VOID
115 PlatformBdsEnterFrontPage (
116 IN UINT16 TimeoutDefault,
117 IN BOOLEAN ConnectAllHappened
118 );
119
120 #endif // _BDS_PLATFORM_H